:root{--bg:#07101b;--surface:#0c1826;--surface2:#102235;--line:#20364b;--text:#f4f8fb;--muted:#8ea5ba;--accent:#37d7c5;--accent2:#8bffef;--danger:#ff5b68;--warn:#ffc857;--ok:#58dc8b;--shadow:0 22px 70px rgba(0,0,0,.35);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color-scheme:dark}
*{box-sizing:border-box}body{margin:0;background:radial-gradient(circle at 80% 0,#102e40 0,transparent 30%),var(--bg);color:var(--text);min-height:100vh}button,input,select,textarea{font:inherit}button{cursor:pointer}.hidden{display:none!important}.muted{color:var(--muted)}
.topbar{height:76px;padding:0 max(24px,calc((100vw - 1440px)/2));display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);background:rgba(7,16,27,.9);backdrop-filter:blur(18px);position:sticky;top:0;z-index:20}.brand,.header-actions{display:flex;align-items:center;gap:12px}.brand div{display:flex;flex-direction:column}.brand small,.hero-status small{color:var(--muted);margin-top:2px}.brand-mark{display:grid;place-items:center;width:64px;height:64px;border-radius:18px;background:linear-gradient(145deg,var(--accent2),var(--accent));color:#03211d;font-weight:900;letter-spacing:-1px;box-shadow:0 12px 35px rgba(55,215,197,.22)}.brand-mark.small{width:42px;height:42px;border-radius:12px}.header-actions form{margin:0}.timezone{font-size:.82rem;color:var(--muted)}
.shell{max-width:1440px;margin:0 auto;padding:42px 24px 100px}.hero{display:flex;justify-content:space-between;align-items:flex-end;padding:28px 4px 36px}.hero h1{font-size:clamp(2rem,4vw,4.1rem);letter-spacing:-.055em;margin:3px 0 10px;line-height:1}.hero p{color:var(--muted);margin:0}.eyebrow,.step{font-size:.72rem;letter-spacing:.18em;font-weight:800;color:var(--accent);margin:0 0 9px}.hero-status{display:flex;align-items:center;gap:12px;background:rgba(16,34,53,.7);border:1px solid var(--line);padding:15px 18px;border-radius:16px}.hero-status div{display:flex;flex-direction:column}.status-dot{width:10px;height:10px;border-radius:50%;background:var(--ok);box-shadow:0 0 0 6px rgba(88,220,139,.12)}
.panel{background:linear-gradient(145deg,rgba(15,31,47,.98),rgba(9,22,35,.98));border:1px solid var(--line);border-radius:22px;box-shadow:var(--shadow)}.import-panel{padding:25px 28px}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}.panel-heading h2{margin:0;font-size:1.35rem}.date-row{display:flex;gap:14px;margin-bottom:18px}label{display:flex;flex-direction:column;gap:8px;color:#c7d3df;font-size:.82rem;font-weight:650}.date-row label{width:220px}input,select,textarea{border:1px solid #294057;background:#091522;color:var(--text);border-radius:11px;padding:11px 13px;outline:none;transition:border .2s,box-shadow .2s}input:focus,select:focus,textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px rgba(55,215,197,.1)}textarea{resize:vertical}.league-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:9px}.league-chip{position:relative}.league-chip input{position:absolute;opacity:0;pointer-events:none}.league-chip span{display:flex;align-items:center;min-height:42px;padding:8px 12px;border-radius:11px;border:1px solid var(--line);background:#091522;color:#aebdca;font-size:.8rem;transition:.18s}.league-chip span:before{content:"";width:8px;height:8px;border-radius:50%;background:#36516b;margin-right:9px}.league-chip input:checked+span{border-color:var(--accent);background:rgba(55,215,197,.1);color:var(--text)}.league-chip input:checked+span:before{background:var(--accent);box-shadow:0 0 0 4px rgba(55,215,197,.12)}.import-actions{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);margin-top:22px;padding-top:20px}.import-actions p{color:var(--muted);font-size:.82rem;margin:0}
.poster-url-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px}.poster-button{white-space:nowrap;background:rgba(55,215,197,.1);border-color:rgba(55,215,197,.45);color:var(--accent)}
.btn{border:1px solid transparent;border-radius:11px;padding:10px 16px;font-weight:750;color:var(--text);background:#15283a;transition:.18s}.btn:hover{transform:translateY(-1px);filter:brightness(1.08)}.btn:disabled{opacity:.45;cursor:not-allowed;transform:none}.btn.primary{background:var(--accent);color:#03221e;box-shadow:0 8px 26px rgba(55,215,197,.17)}.btn.danger{background:var(--danger);color:#260408}.btn.ghost{border-color:var(--line);background:transparent}.btn.wide{width:100%;margin-top:5px}
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:18px 0}.stats article{padding:18px 20px;background:#0d1b2a;border:1px solid var(--line);border-radius:16px}.stats span{display:block;font-size:1.8rem;font-weight:800;letter-spacing:-.04em}.stats small{color:var(--muted)}
.events-panel{padding:25px 0 0;overflow:hidden}.events-panel>.panel-heading,.events-panel>.filters,.league-filter-panel{padding-left:28px;padding-right:28px}.selection-count{color:var(--muted);font-size:.82rem}.selection-count strong{color:var(--accent);font-size:1.2rem}.league-filter-panel{display:grid;grid-template-columns:210px 1fr;gap:18px;align-items:start;margin-bottom:15px}.league-filter-panel>div:first-child{display:flex;flex-direction:column;gap:4px;padding-top:7px}.league-filter-panel small{color:var(--muted);font-size:.74rem;line-height:1.35}.league-filter-panel.secondary{padding-bottom:18px;border-bottom:1px solid var(--line)}.league-filters{display:flex;flex-wrap:wrap;gap:7px;max-height:116px;overflow:auto;padding:2px 3px 5px}.league-filter-chip{border:1px solid var(--line);border-radius:999px;background:#091522;color:#9db0c1;padding:7px 11px;font-size:.72rem;font-weight:700;white-space:nowrap}.league-filter-chip.active{border-color:var(--accent);background:rgba(55,215,197,.12);color:#d9fffa}.filters{display:grid;grid-template-columns:1fr 220px 160px;gap:10px;margin-bottom:18px}.table-wrap{overflow:auto;border-top:1px solid var(--line)}table{width:100%;border-collapse:collapse;min-width:1020px}th{text-align:left;color:#7f97ac;font-size:.7rem;text-transform:uppercase;letter-spacing:.1em;padding:13px 15px;background:#091522;position:sticky;top:0}td{padding:13px 15px;border-top:1px solid rgba(32,54,75,.72);vertical-align:middle;font-size:.85rem}tbody tr{transition:background .18s}tbody tr:hover{background:rgba(55,215,197,.035)}td:first-child,th:first-child{width:48px;text-align:center}input[type=checkbox]{accent-color:var(--accent)}.event-cell{display:flex;align-items:center;gap:13px;min-width:350px}.event-cell img{width:58px;height:80px;object-fit:cover;border-radius:8px;border:1px solid var(--line);background:#07101b}.event-cell div{display:flex;flex-direction:column;gap:4px}.event-cell strong{font-size:.85rem;max-width:390px}.event-cell small,.date-cell small{color:var(--muted)}.date-cell{white-space:nowrap}.classification-cell{display:flex;flex-direction:column;align-items:flex-start;gap:6px}.classification-cell small{color:var(--muted)}.league-badge,.state-badge{display:inline-flex;border-radius:999px;padding:6px 9px;font-size:.7rem;font-weight:750;white-space:nowrap}.league-badge{color:#bffcf4;background:rgba(55,215,197,.09);border:1px solid rgba(55,215,197,.25)}.state-badge.draft{color:var(--warn);background:rgba(255,200,87,.08)}.state-badge.ready{color:var(--ok);background:rgba(88,220,139,.08)}.state-badge.published{color:#8bbcff;background:rgba(80,144,255,.1)}.url-preview{max-width:240px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--muted)}.edit-button{border:1px solid var(--line);background:#102235;color:var(--text);border-radius:9px;padding:7px 12px}.empty-state{text-align:center;padding:70px 20px;border-top:1px solid var(--line)}.empty-state h3{margin:14px 0 6px}.empty-state p{margin:0;color:var(--muted)}.empty-icon{width:56px;height:56px;border-radius:18px;display:grid;place-items:center;margin:auto;background:rgba(55,215,197,.1);color:var(--accent);font-size:2rem}.bulk-bar{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:16px 28px;border-top:1px solid var(--line);background:#091522}.bulk-bar div{display:flex;flex-direction:column}.bulk-bar small{color:var(--muted);margin-top:3px}
dialog{width:min(680px,calc(100vw - 30px));max-height:92vh;overflow:auto;background:#0b1826;color:var(--text);border:1px solid var(--line);border-radius:22px;padding:0;box-shadow:0 30px 100px rgba(0,0,0,.65)}dialog::backdrop{background:rgba(1,7,12,.78);backdrop-filter:blur(7px)}#edit-form{padding:27px;display:flex;flex-direction:column;gap:16px}.dialog-heading,.dialog-actions{display:flex;align-items:center;justify-content:space-between;gap:15px}.dialog-heading h2{margin:0}.icon-button{border:0;background:transparent;color:var(--muted);font-size:2rem}.poster-preview{height:350px;border-radius:15px;overflow:hidden;position:relative;background:#06101a;display:flex;justify-content:center}.poster-preview img{width:auto;max-width:100%;height:100%;aspect-ratio:4/5;object-fit:cover}.poster-preview>div{position:absolute;inset:auto 18px 17px;display:flex;flex-direction:column;text-shadow:0 2px 8px #000;background:rgba(3,12,20,.74);padding:9px 12px;border-radius:10px;max-width:calc(100% - 36px)}.poster-preview small{color:#b3c3d0}.poster-preview strong{font-size:1.1rem}.two-columns{display:grid;grid-template-columns:1fr 1fr;gap:14px}.event-settings{display:grid;grid-template-columns:1fr 1fr 120px;gap:14px}.switch-label{justify-content:flex-end}.switch{height:42px;display:flex;align-items:center}.switch input{position:absolute;opacity:0}.switch i{width:46px;height:25px;border-radius:20px;background:#263c50;position:relative;transition:.2s}.switch i:after{content:"";position:absolute;width:19px;height:19px;border-radius:50%;background:white;left:3px;top:3px;transition:.2s}.switch input:checked+i{background:var(--accent)}.switch input:checked+i:after{transform:translateX(21px)}.locked-fields{display:flex;flex-wrap:wrap;gap:8px}.locked-fields span{padding:8px 10px;border-radius:9px;background:#091522;color:var(--muted);font-size:.75rem}.locked-fields strong{color:var(--text)}.confirm-dialog{text-align:center;padding:32px}.warning-mark{width:60px;height:60px;border-radius:50%;display:grid;place-items:center;margin:auto;background:rgba(255,91,104,.13);color:var(--danger);font-size:2rem;font-weight:900}.confirm-dialog .dialog-actions{justify-content:center;margin-top:22px}.toast-region{position:fixed;right:24px;bottom:24px;z-index:100;display:flex;flex-direction:column;gap:9px}.toast{width:min(390px,calc(100vw - 48px));padding:14px 16px;border-radius:12px;background:#12263a;border:1px solid var(--line);box-shadow:var(--shadow);animation:toast-in .25s ease}.toast.error{border-color:rgba(255,91,104,.5)}.toast.success{border-color:rgba(88,220,139,.5)}.alert{padding:11px 13px;border-radius:10px;margin:14px 0}.alert.error{background:rgba(255,91,104,.1);color:#ff9fa7;border:1px solid rgba(255,91,104,.28)}
.link-editor{display:flex;flex-direction:column;gap:11px}.link-editor-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.link-editor-heading>div{display:flex;flex-direction:column;gap:3px}.link-editor-heading strong{font-size:.82rem;color:#c7d3df}.link-editor-heading small{color:var(--muted)}.add-link-button{width:38px;height:38px;border-radius:11px;border:1px solid var(--accent);background:rgba(55,215,197,.1);color:var(--accent);font-size:1.5rem;line-height:1}.edit-links{display:flex;flex-direction:column;gap:9px}.link-row{display:grid;grid-template-columns:60px 1fr 38px;gap:9px;align-items:center}.link-option{height:42px;display:grid;place-items:center;border-radius:10px;background:#091522;border:1px solid var(--line);font-size:.72rem;font-weight:800;color:var(--accent)}.link-row input{width:100%}.remove-link{height:38px;border-radius:10px;border:1px solid rgba(255,91,104,.3);background:rgba(255,91,104,.08);color:#ff99a1;font-size:1.15rem}.remove-link:disabled{opacity:.25;cursor:not-allowed}.url-count{color:var(--accent);font-weight:750}
.league-total{font-size:.75rem;color:var(--accent);border:1px solid rgba(55,215,197,.25);background:rgba(55,215,197,.07);border-radius:999px;padding:7px 11px}.calendar-note{display:flex;align-items:center;justify-content:space-between;gap:20px;border-top:1px solid var(--line);margin-top:20px;padding-top:20px}.calendar-note>div:first-child{display:flex;flex-direction:column;gap:4px}.calendar-note p{margin:0;color:var(--muted);font-size:.82rem}.calendar-buttons{display:flex;flex-direction:row!important;gap:10px}.dropdown-filter-panel{display:grid;grid-template-columns:minmax(220px,1fr) minmax(260px,2fr);gap:12px;padding:0 28px 18px;border-bottom:1px solid var(--line);margin-bottom:18px}.field-help{color:var(--muted);font-weight:500}.state-badge.inactive{color:#94a1ad;background:rgba(148,161,173,.08)}.events-panel td:first-child,.events-panel th:first-child{width:auto;text-align:left}.review-dialog{width:min(980px,calc(100vw - 30px));padding:28px}.review-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:20px 0}.review-stat{padding:13px;border-radius:12px;background:#091522;border:1px solid var(--line)}.review-stat strong{display:block;font-size:1.35rem}.review-stat small{color:var(--muted)}.review-list{display:flex;flex-direction:column;gap:10px;max-height:52vh;overflow:auto;padding-right:4px}.review-event{display:grid;grid-template-columns:74px 1fr;gap:14px;padding:13px;border:1px solid var(--line);border-radius:14px;background:#0d1c2b}.review-event>img{width:74px;height:102px;object-fit:cover;border-radius:10px}.review-event-head{display:flex;justify-content:space-between;gap:15px}.review-event-head h3{font-size:.9rem;margin:0}.review-event-head span{font-size:.7rem;color:var(--accent);white-space:nowrap}.review-options{display:flex;flex-direction:column;gap:5px;margin-top:9px}.review-option{display:grid;grid-template-columns:minmax(230px,1fr) minmax(180px,.75fr) auto;gap:10px;align-items:center;padding:7px 9px;border-radius:8px;background:#081421;font-size:.74rem}.review-option code{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted)}.review-option .ok{color:var(--ok)}.review-option .missing{color:var(--danger)}.review-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;border-top:1px solid var(--line);margin-top:18px;padding-top:18px}.review-footer p{margin:0;font-size:.8rem}
.login-page{display:grid;place-items:center;padding:24px}.login-card{width:min(430px,100%);padding:38px;background:linear-gradient(145deg,#102235,#0a1623);border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow)}.login-card .brand-mark{margin-bottom:24px}.login-card h1{font-size:2rem;letter-spacing:-.04em;margin:0 0 8px}.login-card>p{line-height:1.55}.login-form{display:flex;flex-direction:column;gap:16px;margin-top:24px}#manual-form{padding:27px;display:flex;flex-direction:column;gap:16px}
@keyframes toast-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@media(max-width:1000px){.league-grid{grid-template-columns:repeat(3,1fr)}.filters{grid-template-columns:1fr 1fr}.stats{grid-template-columns:repeat(2,1fr)}.league-filter-panel{grid-template-columns:1fr}.league-filter-panel>div:first-child{padding-top:0}}
@media(max-width:680px){.topbar{padding:0 14px}.timezone{display:none}.shell{padding:24px 12px 90px}.hero{display:block}.hero-status{margin-top:24px}.import-panel{padding:20px}.league-grid{grid-template-columns:repeat(2,1fr)}.date-row{display:grid;grid-template-columns:1fr 1fr}.date-row label{width:auto}.import-actions{align-items:flex-start;gap:16px;flex-direction:column}.filters,.league-filter-panel{grid-template-columns:1fr;padding-left:18px!important;padding-right:18px!important}.events-panel>.panel-heading{padding-left:18px;padding-right:18px}.stats article{padding:14px}.bulk-bar{padding:14px 18px}.bulk-bar small{display:none}.two-columns,.event-settings{grid-template-columns:1fr}.poster-preview{height:300px}.login-card{padding:27px}}
@media(max-width:680px){.date-row{grid-template-columns:1fr}.calendar-note,.review-footer{align-items:flex-start;flex-direction:column}.calendar-buttons{width:100%;flex-direction:column!important}.calendar-buttons .btn,.review-footer .dialog-actions{width:100%}.dropdown-filter-panel{grid-template-columns:1fr;padding-left:18px;padding-right:18px}.review-summary{grid-template-columns:repeat(2,1fr)}.review-event{grid-template-columns:1fr}.review-event>img{width:100%;height:110px}.review-option{grid-template-columns:1fr}.review-dialog{padding:20px}.review-event-head{flex-direction:column;gap:5px}.poster-url-row{grid-template-columns:1fr}.poster-button{width:100%}}
