/* Spielanalyse: Video und Markieren links, Szenen / Schusskarte / Zahlen rechts */
.an-grid { display:grid; grid-template-columns:minmax(0, 1.25fr) minmax(320px, 1fr); gap:16px; align-items:start; }
.an-main { display:grid; gap:10px; min-width:0; }
.an-video { position:relative; aspect-ratio:16 / 9; background:#0b131b; border-radius:12px; overflow:hidden; }
.an-video iframe { position:absolute; inset:0; width:100%; height:100%; border:0; }
.an-videoform input { flex:1 1 220px; min-width:0; }
.an-controls { display:grid; gap:10px; }
.an-time { display:inline-flex; align-items:center; gap:6px; font-size:12px; color:var(--ink-2); }
.an-time input { width:92px; text-align:center; font-weight:700; }
.an-buttons { display:grid; grid-template-columns:repeat(auto-fill, minmax(112px, 1fr)); gap:6px; }
.an-mark { display:flex; align-items:center; justify-content:space-between; gap:6px; min-height:46px; padding:6px 10px; border:1px solid var(--line-strong); border-radius:10px; background:var(--surface); color:var(--ink); cursor:pointer; font-size:14px; }
.an-mark:hover { border-color:var(--accent); color:var(--accent); }
.an-mark:active { background:var(--accent-soft); }
.an-mark kbd { font-family:var(--mono); font-size:11px; color:var(--ink-3); border:1px solid var(--line); border-radius:5px; padding:0 5px; background:var(--surface-2); }
.an-mark-goal { border-color:var(--green); }
.an-mark-penalty { border-color:var(--red); }
.an-ctx .seg button.on { background:var(--accent); color:var(--on-color); }
.an-side { min-width:0; display:grid; gap:10px; position:sticky; top:74px; max-height:calc(100vh - 90px); overflow:auto; }
.an-filter select { width:auto; max-width:100%; }
.an-tag { display:flex; align-items:center; gap:8px; padding:7px 8px; border:1px solid var(--line); border-radius:8px; margin-top:6px; background:var(--surface); cursor:pointer; }
.an-tag.on { border-color:var(--accent); background:var(--accent-soft); }
.an-tag-t { border:0; background:var(--accent); color:var(--on-color); border-radius:6px; padding:4px 8px; font-weight:700; cursor:pointer; flex:0 0 auto; }
.an-rink { display:block; width:100%; height:auto; background:#eef3f9; border:1px solid var(--line); border-radius:10px; cursor:crosshair; touch-action:manipulation; }
.an-rink .an-dot { cursor:pointer; }
.an-rink .an-dot.on { stroke-width:0.5; }
@media (max-width:980px) {
  .an-grid { grid-template-columns:minmax(0, 1fr); }
  .an-side { position:static; max-height:none; }
  .an-buttons { grid-template-columns:repeat(3, minmax(0, 1fr)); }
  .an-mark kbd { display:none; }
}
@media (max-width:560px) { .an-tag { flex-wrap:wrap; } .an-tag .grow { flex:1 1 calc(100% - 80px); } .an-tag .btn:first-of-type { margin-left:auto; } }
/* Besprechung am Beamer: Video füllt den Bildschirm, unten die Szene mit großen Knöpfen. */
.an-beamer-bar { display:none; }
body.an-present { overflow:hidden; }
body.an-present .an-video { position:fixed; inset:0; z-index:4000; border-radius:0; aspect-ratio:auto; background:#000; }
body.an-present .an-video iframe { height:calc(100% - 104px); }
body.an-present .an-beamer-bar { display:flex; position:absolute; left:0; right:0; bottom:0; height:104px; padding:10px 18px; gap:18px; align-items:center; justify-content:space-between; background:#0b131b; color:#fff; }
.an-bm-info { display:grid; gap:2px; min-width:0; flex:1 1 auto; }
.an-bm-count { font-size:14px; color:#9fb3c8; }
.an-bm-title { font-size:24px; line-height:1.2; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.an-bm-note { font-size:17px; color:#d6e2ee; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-height:1.3em; }
.an-bm-btns { display:flex; gap:8px; flex:0 0 auto; }
.an-bm-btns button { font:inherit; font-weight:700; font-size:16px; min-height:52px; padding:8px 16px; border-radius:10px; border:1px solid #3b4d60; background:#17232f; color:#fff; cursor:pointer; white-space:nowrap; }
.an-bm-btns button:hover:not(:disabled), .an-bm-btns button:focus-visible { border-color:#fff; }
.an-bm-btns button:disabled { opacity:.4; cursor:default; }
.an-bm-btns .an-bm-next { background:var(--accent); border-color:var(--accent); min-width:120px; }
.an-bm-btns button.on { background:#fff; color:#0b131b; }
@media (max-width:900px) {
  body.an-present .an-video iframe { height:calc(100% - 150px); }
  body.an-present .an-beamer-bar { height:150px; flex-direction:column; align-items:stretch; gap:6px; padding:8px 10px; }
  .an-bm-title { font-size:18px; } .an-bm-note { font-size:14px; }
  .an-bm-btns { justify-content:space-between; gap:4px; }
  .an-bm-btns button { font-size:13px; padding:6px 8px; min-height:44px; }
}
/* Szene nachzeichnen: durchsichtige Fläche über dem Video zum Antippen, Bezugspunkte und Positionen auf dem kleinen Feld */
.an-trace-ov { position:absolute; inset:0; z-index:2; cursor:crosshair; touch-action:manipulation; background:rgba(0, 92, 169, .06); outline:2px dashed rgba(255, 255, 255, .55); outline-offset:-4px; }
.an-trace-ov[hidden] { display:none; }
.an-ov-mark { position:absolute; transform:translate(-50%, -50%); min-width:22px; height:22px; padding:0 4px; border-radius:11px; display:grid; place-items:center; font:700 12px var(--mono, monospace); color:#fff; background:var(--c, #111); border:2px solid #fff; box-shadow:0 0 0 1px rgba(0, 0, 0, .5); pointer-events:none; }
.an-ov-ref { background:#f5b400; color:#111; border-radius:4px; }
.an-ov-hint { position:absolute; left:50%; top:10px; transform:translateX(-50%); background:#111; color:#fff; font-weight:700; font-size:13px; padding:6px 12px; border-radius:8px; pointer-events:none; max-width:90%; text-align:center; }
.an-trace-h { font-weight:700; margin:12px 0 4px; }
.an-trace-rink .an-ref circle { fill:#fff; stroke:#b07a00; stroke-width:0.3; cursor:pointer; }
.an-trace-rink .an-ref:hover circle { fill:#ffe9a8; }
.an-trace-rink .an-ref.done circle { fill:#f5b400; }
.an-trace-rink .an-ref.pick circle { fill:#c1202c; stroke:#c1202c; }
.an-trace-rink .an-ref text { font:700 1.6px var(--mono, monospace); text-anchor:middle; pointer-events:none; fill:#111; }
.an-trace-rink .an-trace-dot.on { stroke-width:0.6; }
.an-trace-rink .an-trace-no { font:700 1.3px var(--mono, monospace); text-anchor:middle; pointer-events:none; }
.an-chips { display:flex; flex-wrap:wrap; gap:6px; }
.an-chip { font:inherit; font-size:13px; font-weight:700; padding:5px 10px; border-radius:999px; border:2px solid var(--c, var(--line-strong)); background:var(--surface); color:var(--ink); cursor:pointer; }
.an-chip.on { background:var(--c, var(--accent)); color:#fff; }
.an-team-own { --c:#0f4c9b; } .an-team-opp { --c:#c1202c; } .an-team-puck { --c:#111111; }
/* Für Familien: freigegebene Szenen */
.an-shared { display:block; width:100%; text-align:left; font:inherit; color:inherit; background:var(--surface); border:1px solid var(--line); border-radius:10px; padding:8px 10px; margin-top:6px; cursor:pointer; }
.an-shared:hover, .an-shared:focus-visible, .an-shared.on { border-color:var(--accent); }
.an-shared.on { background:var(--accent-soft); }
.an-shared .pill { margin-left:4px; }
.an-shared-video { margin-bottom:10px; }
.an-follow { display:flex; flex-wrap:wrap; align-items:center; gap:6px; padding:8px 10px; border:1px dashed var(--line-strong); border-radius:10px; }
/* Goalie-Angaben im Szenen-Dialog (Tor, Schuss, Parade) und Zeitlupe */
.an-gk { border:1px solid var(--line); border-radius:var(--r-sm); padding:10px 12px 12px; display:grid; gap:10px; min-width:0; margin:0; }
.an-gk legend { font-weight:700; padding:0 4px; }
.an-gk-row { display:flex; flex-wrap:wrap; gap:10px 18px; }
.an-pickfield { min-width:0; }
.an-pickfield .seg { display:flex; flex-wrap:wrap; max-width:100%; }
.an-pickfield .seg button { min-height:36px; }
.an-gk-line b { color:var(--ink); }
.an-rate button { padding:5px 9px; }
@media (max-width:900px) { .an-pickfield .seg button { min-height:44px; } }
