.studio-extras{margin-top:20px;padding-top:16px;border-top:1px solid #dfe7ee}.studio-speed{display:flex;justify-content:space-between;gap:16px;align-items:center}.studio-speed label{display:flex;align-items:center;gap:8px;font-size:13px;color:#50677c}.studio-speed select,.studio-extras input{min-height:44px;padding:8px 10px;border:1px solid #d6e0e9;border-radius:8px;background:#fff;color:#203e54;font:inherit;min-width:0}.studio-speed select{font-size:14px}.keyframe-details,.studio-templates{border-top:1px solid #e2e9ef;margin-top:16px;padding-top:8px}.keyframe-details>summary,.studio-templates>summary{cursor:pointer;min-height:48px;padding:14px 0;color:#243d53;font-size:14px;font-weight:600}.studio-templates>summary>span{float:right;color:#63768a;font-weight:400}.frame-editor-heading{display:flex;justify-content:space-between;align-items:center;margin:8px 0 12px;color:#5c7185;font-size:12px}.frame-editor-heading h3{font-size:14px;color:#263f53;margin:0}.frame-strip{display:flex;gap:8px;overflow:auto;padding:3px 3px 12px;scrollbar-color:#a6b7c5 transparent}.frame-strip button{flex:0 0 70px;border:1px solid #d8e2ec;border-radius:8px;background:#fff;color:#4c647a;display:flex;flex-direction:column;gap:5px;align-items:center;padding:10px 6px;cursor:pointer}.frame-strip button[aria-pressed=true]{border-color:#315dc1;background:#eef3ff;color:#234d9e}.frame-strip b{font:600 17px Manrope,sans-serif}.frame-strip span{font:12px Manrope,sans-serif}.frame-actions{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:10px;align-items:end}.frame-actions label,.frame-hold label{display:flex;flex-direction:column;gap:7px;color:#50677c;font-size:12px}.frame-actions input{width:100%}.frame-actions .btn{font-size:12px;min-height:44px;padding:8px 12px}.frame-actions .text-link{min-height:44px;font-size:12px}.frame-hold{display:flex;align-items:end;gap:16px;margin-top:14px}.frame-hold input{width:110px}.frame-hold button{min-height:44px}.frame-empty{display:block;padding:14px 0;color:#62778b;font-size:13px}.studio-extras [data-template-form]{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;margin:10px 0 16px}.studio-extras [data-template-form] .form-error{grid-column:1/-1}.studio-extras [data-template-form] .btn{font-size:12px;padding:10px}.template-list>div{display:flex;gap:14px;align-items:center;padding:14px 0;border-top:1px solid #e7edf2}.template-list>div>span{margin-right:auto;min-width:0}.template-list strong{display:block;font-size:14px;overflow-wrap:anywhere}.template-list small{display:block;color:#63798b;margin-top:5px;font-size:12px}.row-menu{position:relative;flex-shrink:0}.row-menu>summary{list-style:none;color:#526d83;font-size:12px;padding:10px;min-height:44px;cursor:pointer}.row-menu>summary::-webkit-details-marker{display:none}.row-menu>div{position:absolute;right:0;top:100%;min-width:125px;padding:6px;background:#fff;border-radius:10px;box-shadow:0 10px 30px #10293a26;z-index:20}.row-menu>div>button{display:block;width:100%;text-align:left;border:0;background:none;padding:12px 14px;min-height:44px;font:inherit;font-size:13px;color:#2d465d;cursor:pointer}.row-menu>div>button.danger{color:#9d3838}.row-menu>div>button:hover{background:#f0f4fa}.saved-tactic-actions.row-menu{display:block;border:0;padding:0}.saved-tactic{position:relative;overflow:visible}.saved-tactic>.saved-tactic-open{padding-right:55px}.saved-tactic>.row-menu{position:absolute;right:5px;top:20px}.studio-extras button:disabled{opacity:.4;cursor:default}.fixture-row{background:#fff;border-radius:12px;padding:20px 24px;margin-top:14px}.match-fixture-date{display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:12px;color:#60758a}.match-fixture-date time{font:600 16px Manrope,sans-serif;color:#28475f}.fixture-teams{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:24px;margin:24px 0}.fixture-teams>strong{font-size:18px;overflow-wrap:anywhere}.fixture-home{display:flex;align-items:center;gap:14px;font-size:18px;min-width:0}.fixture-home img{width:46px;height:46px;object-fit:contain}.fixture-home strong{overflow-wrap:anywhere}.fixture-result{font:600 30px Manrope,sans-serif;color:#25435b;white-space:nowrap}.fixture-result.scheduled{font-size:17px;color:#62798d}.fixture-meta{display:flex;gap:16px;justify-content:space-between;align-items:center;padding-top:16px;border-top:1px solid #e6edf2;color:#5b7288;font-size:13px}.fixture-meta button{display:flex;align-items:center;gap:8px;min-height:44px;white-space:nowrap}.fixture-meta .icon{width:16px;height:16px}.fixture-upcoming{background:#1a3849;color:#fff}.fixture-upcoming .match-fixture-date{color:#c0d0dc}.fixture-upcoming .match-fixture-date time,.fixture-upcoming .fixture-result{color:#d0deeb}.fixture-upcoming .fixture-meta{color:#bed0dd;border-color:#446171}.fixture-upcoming .fixture-meta button{color:#e1eafb}.player-history{margin-top:20px;padding:20px 24px}.player-history .panel-head>span{font-size:12px;color:#63778a}.history-match{display:block;width:100%;padding:18px 0;border:0;border-top:1px solid #e5edf3;background:none;text-align:left;color:#294259;cursor:pointer}.history-match-top{display:flex;align-items:center;justify-content:space-between;gap:16px}.history-match-top strong{display:block;font-size:15px}.history-match-top small{display:block;font-size:12px;color:#60778a;margin-top:6px}.history-score{font:600 24px Manrope,sans-serif;white-space:nowrap}.history-match-stats{display:flex;flex-wrap:wrap;gap:12px 18px;margin-top:14px;color:#556f85;font-size:12px}.history-match-stats b{color:#2e4b62}.history-match-stats .history-mvp{color:#8b651f}.history-match:hover{background:#f7f9fc}.card-count.yellow-card{color:#856316}.card-count.red-card{color:#a13d3d}.crop-backdrop{position:fixed;inset:0;background:rgba(10,25,36,.88);display:grid;place-items:center;z-index:100;padding:20px;overflow:auto;overscroll-behavior:contain}.avatar-crop{width:min(100%,420px);background:#fff;border-radius:14px;padding:22px;max-height:calc(100dvh - 30px);overflow:auto}.avatar-crop .modal-head{margin-bottom:18px}.crop-stage{position:relative;width:100%;aspect-ratio:1;overflow:hidden;background:#d7e0e8;border-radius:8px}.crop-stage canvas{display:block;width:100%;height:100%;touch-action:none;cursor:grab}.crop-stage canvas:active{cursor:grabbing}.crop-guide{position:absolute;inset:0;pointer-events:none;background:linear-gradient(to right,transparent 33.1%,#ffffff75 33.3%,transparent 33.5%,transparent 66.4%,#ffffff75 66.6%,transparent 66.8%),linear-gradient(to bottom,transparent 33.1%,#ffffff75 33.3%,transparent 33.5%,transparent 66.4%,#ffffff75 66.6%,transparent 66.8%);box-shadow:inset 0 0 0 1px #fff8}.crop-zoom{display:flex;gap:18px;align-items:center;margin:22px 0;font-size:14px;color:#50697e}.crop-zoom input{flex:1;min-width:0;accent-color:#315dc1;min-height:44px}.crop-actions{display:flex;justify-content:flex-end;gap:12px}.crop-actions .btn{min-height:46px}.crop-stage canvas:focus-visible{outline:3px solid #3764c8;outline-offset:-3px}.tactic-opponent{position:absolute;transform:translate(-50%,-50%);width:43px;height:43px;display:grid;place-items:center;z-index:5;border:2px solid #fff;background:#a6403d;color:#fff;border-radius:50%;font:600 13px Manrope,sans-serif;touch-action:none;cursor:grab}.opponent-layer{position:absolute;inset:0;pointer-events:none;z-index:5}.opponent-layer button{pointer-events:auto}.tactics-pitch[data-tool=pass] .tactic-opponent,.tactics-pitch[data-tool=run] .tactic-opponent{pointer-events:none}
@keyframes sheet-arrive{from{transform:translateY(12px)}to{transform:translateY(0)}}.modal,.avatar-crop{animation:sheet-arrive 180ms cubic-bezier(.16,1,.3,1)}.btn,.fixture-meta button,.frame-strip button{transition:background-color 140ms ease-out,border-color 140ms ease-out,color 140ms ease-out}.row-menu>summary:focus-visible,.studio-extras button:focus-visible,.history-match:focus-visible{outline:2px solid #4369cd;outline-offset:3px}.substitution-option b{font-size:12px;white-space:nowrap}
@media(max-width:780px){.fixture-row{padding:18px 16px}.fixture-teams{gap:12px;margin:24px 0 18px}.fixture-home{font-size:15px;gap:8px}.fixture-home img{width:32px;height:32px}.fixture-teams>strong{font-size:15px}.fixture-result{font-size:25px}.fixture-meta{font-size:12px;gap:10px}.match-fixture-date{font-size:11px}.match-fixture-date time{font-size:15px}.fixture-meta button{font-size:12px}.player-history{padding:18px 16px}.frame-actions{grid-template-columns:minmax(0,1fr) auto}.frame-actions>button:last-child{grid-column:1/-1;justify-self:end}.studio-speed{gap:10px}.studio-speed label,.studio-speed .text-link{font-size:12px}.studio-extras input{font-size:16px}.frame-hold input{width:95px}.studio-extras [data-template-form]{grid-template-columns:1fr}.studio-extras [data-template-form] .btn{justify-self:start}.crop-backdrop{padding:12px}.avatar-crop{padding:18px;width:min(100%,390px)}.crop-actions .btn{flex:1}.tactic-opponent{width:36px;height:36px;font-size:11px}.pitch-tools{gap:5px}.pitch-tools button{flex:1 1 29%;font-size:12px}.fixture-home strong{min-width:0}.history-match-stats{gap:10px 14px}}
@media(prefers-reduced-motion:reduce){.modal,.avatar-crop{animation:none}.btn,.fixture-meta button,.frame-strip button{transition:none}html{scroll-behavior:auto}}

.fixture-upcoming{background:linear-gradient(90deg,rgba(12,33,48,.94),rgba(12,33,48,.78)),url("assets/club-pitch.jpg") center 65%/cover}.template-rename-form{display:flex;gap:8px;min-width:0}.template-rename-form input{width:100%;min-width:0}.template-rename-form button{min-height:44px}

.template-context{display:flex;gap:12px;align-items:center;justify-content:space-between;font-size:13px;color:#526b80;margin-top:18px}.template-context .text-link{min-height:44px}
