/* LIONS FilmRoom - Stylesheet — Film-Room-Redesign (auf Basis Dark Redesign) */
@import 'fonts.css?v=sofia-1'; /* Query bei Font-Änderungen hochzählen (Cache-Busting) */

:root {
    /* ── Film-Room-Palette ── */
    /* Surfaces — neutrales Schwarz, Kanten über Linien statt Schatten */
    --bg:        #0b0b0c;
    --surface:   #131314;
    --surface-2: #19191b;
    --surface-3: #222225;
    --line:      #29292d;
    --line-2:    #3a3a3f;
    /* Ink — warmes Kreide-/Papierweiß */
    --ink:       #f2f0eb;
    --ink-2:     #b3b0a8;
    --ink-3:     #7c7a73;
    --ink-4:     #4e4c48;
    /* Brand — Maroon = Teamfarbe */
    --maroon:    #7a1d1d;
    --maroon-2:  #9c2828;
    --maroon-bg: rgba(156, 40, 40, 0.14);
    /* Signal — Telestrations-Gelb, NUR für aktiv/ausgewählt/Fokus */
    --signal:    #f0dc4a;
    --signal-bg: rgba(240, 220, 74, 0.12);
    /* Funktionale Akzente (Status, Penalties, Raten) */
    --amber:     #e0a23c;
    --green:     #5fb98a;
    --red:       #d8634f;
    --blue:      #5b8fd6;
    --violet:    #9d7bd0;

    --radius:    3px;
    --radius-sm: 2px;

    /* Typografie */
    --font-body:    'Sofia Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Sofia Sans Extra Condensed', 'Arial Narrow', var(--font-body);
    --font-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

    /* ── Alte Token-Namen als Aliase → nichts bricht ── */
    --primary: var(--maroon);
    --primary-light: var(--maroon-2);
    --accent: var(--amber);
    --accent-hover: #eab35a;
    --danger: var(--red);
    --danger-hover: #c4543f;
    --success: var(--green);
    --success-hover: #4fa676;
    --success-light-bg: rgba(95, 185, 138, 0.12);
    --success-dark-text: var(--green);
    --success-light-border: rgba(95, 185, 138, 0.28);
    --danger-light-bg: rgba(216, 99, 79, 0.12);
    --danger-dark-text: #e9897a;
    --danger-light-border: rgba(216, 99, 79, 0.28);
    --info: rgba(91, 143, 214, 0.14);
    --info-dark-text: #8fb4e5;
    --gray-50: var(--bg);
    --gray-100: var(--surface-2);
    --gray-200: var(--line);
    --gray-300: var(--line-2);
    --gray-500: var(--ink-3);
    --gray-700: var(--ink-2);
    --gray-900: var(--ink);
    --white: #fff;
    --black: #000;
    --error-dark: #e9897a;
    --dark-gray-bg: var(--surface-3);
    --dark-gray-border: var(--line-2);
    /* RGBA Colors — auf Dunkel abgestimmt */
    --black-08: rgba(0, 0, 0, 0.45);
    --black-15: rgba(0, 0, 0, 0.55);
    --black-5: rgba(0, 0, 0, 0.6);
    --black-7: rgba(0, 0, 0, 0.7);
    --black-8: rgba(0, 0, 0, 0.85);
    --white-1: rgba(255, 255, 255, 0.05);
    --white-2: rgba(255, 255, 255, 0.12);
    --white-3: rgba(255, 255, 255, 0.18);
    --white-5: rgba(255, 255, 255, 0.28);
    --white-85: var(--ink-2);
    --primary-15: var(--maroon-bg);
    /* Warning Alert Colors */
    --warning-light-bg: rgba(224, 162, 60, 0.12);
    --warning-dark-text: var(--amber);
    --warning-light-border: rgba(224, 162, 60, 0.28);
    /* Fokus-Ring */
    --focus-ring: 0 0 0 2px rgba(240, 220, 74, 0.45);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Mono-/Zahlen-Utilities aus dem Handoff */
.mono { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace; }
.num { font-variant-numeric: tabular-nums; }

/* Eigene Scrollbars (dezent, dunkel) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: var(--radius-sm); border: 2px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }
* { scrollbar-color: var(--line-2) transparent; }

/* Navbar */
.navbar {
    background: var(--primary);
    color: white;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    min-height: 56px;
}
.nav-brand a {
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}
.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 0;
    margin-left: auto;
}
.nav-links li a,
.nav-links .nav-user span {
    color: var(--white-85);
    text-decoration: none;
    padding: 1rem 0.75rem;
    display: block;
    font-size: 0.9rem;
    white-space: nowrap;
}
.nav-links li a:hover { color: white; background: var(--white-1); }
.nav-user { display: flex; align-items: center; gap: 0.5rem; margin-left: 0.5rem; }

/* Dropdown */
.nav-dropdown { position: relative; }
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--surface-2);
    border: 1px solid var(--line);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
    border-radius: var(--radius-sm);
    min-width: 180px;
    z-index: 100;
    list-style: none;
    overflow: hidden;
    padding: 4px;
}
.dropdown-menu li a {
    color: var(--ink-2) !important;
    padding: 0.5rem 0.75rem !important;
    border-radius: var(--radius-sm);
}
.dropdown-menu li a:hover { background: var(--surface-3) !important; color: var(--ink) !important; }
.nav-dropdown:hover .dropdown-menu { display: block; }

/* ─────────── Topbar (Dark Redesign) ─────────── */
.topbar {
    height: 58px;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 0 20px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 50;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand .glyph {
    width: 30px; height: 30px; border-radius: var(--radius);
    background: linear-gradient(150deg, var(--maroon-2), var(--maroon));
    display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 15px;
    box-shadow: 0 0 0 1px rgba(255,255,255,.05) inset, 0 4px 12px rgba(122,29,29,.35);
    flex-shrink: 0;
}
.brand-txt b { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; display: block; line-height: 1.1; }
.brand-txt small { display: block; font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: .16em; color: var(--ink-3); margin-top: 1px; }
.brand .dev-indicator { color: var(--amber); font-size: 9px; font-family: 'JetBrains Mono', monospace; letter-spacing: .1em; }
.nav { display: flex; gap: 2px; margin-left: 14px; }
.nav a { font-size: 13.5px; color: var(--ink-2); text-decoration: none; padding: 8px 13px; border-radius: var(--radius-sm); position: relative; letter-spacing: -0.005em; white-space: nowrap; }
.nav a:hover { color: var(--ink); background: rgba(255,255,255,.035); }
.nav a.active { color: var(--ink); }
.nav a.active::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: -1px; height: 2px; background: var(--maroon-2); border-radius: 1px; }
.topright { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.iconbtn { width: 34px; height: 34px; border-radius: var(--radius); border: 1px solid transparent; background: transparent; color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; font-size: 15px; line-height: 1; position: relative; text-decoration: none; cursor: pointer; }
.iconbtn:hover { background: rgba(255,255,255,.045); color: var(--ink); }
.iconbtn.active { background: var(--surface-3); color: var(--ink); }
/* Aktivitäts-Chart (Letzte 30 Tage) — Balken mit Hover-Hervorhebung + Tooltip */
.watch-chart .actbar { transition: filter .12s; cursor: default; }
.watch-chart .actbar:hover { filter: brightness(1.3); }
.iconbtn .dot { position: absolute; top: 7px; right: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--maroon-2); }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--surface-3); display: grid; place-items: center; font-size: 11px; font-weight: 600; color: var(--ink); border: 1px solid var(--line-2); cursor: pointer; }
.avatar-lg { width: 42px; height: 42px; font-size: 14px; }
.btn-ghost-bordered { background: transparent; color: var(--ink-2); border: 1px solid var(--line-2); }
.btn-ghost-bordered:hover { background: rgba(255,255,255,.045); color: var(--ink); }

/* Topbar-Menüs (Account + Admin) */
.menu-wrap { position: relative; }
.menu {
    position: absolute; top: calc(100% + 8px); right: 0;
    background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--radius);
    box-shadow: 0 18px 44px rgba(0,0,0,.55); padding: 8px; min-width: 248px; z-index: 120;
    animation: menuin .12s ease;
}
.menu[hidden] { display: none; }
@keyframes menuin { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.menu-head { display: flex; align-items: center; gap: 11px; padding: 8px 8px 12px; }
.menu-head-txt b { display: block; font-size: 13.5px; color: var(--ink); }
.menu-head-txt small { display: block; font-size: 11px; color: var(--ink-3); font-family: 'JetBrains Mono', monospace; letter-spacing: .08em; }
.menu-eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); padding: 8px 8px 4px; }
.menu .mi { display: block; padding: 8px 10px; border-radius: var(--radius-sm); font-size: 13px; color: var(--ink-2); text-decoration: none; }
.menu .mi:hover { background: var(--surface-3); color: var(--ink); }
.menu .mi-danger { color: var(--red); }
.menu .mi-danger:hover { background: rgba(216,99,79,.12); color: #e9897a; }
.menu-sep { height: 1px; background: var(--line); margin: 6px 4px; }
/* Erwähnungen-Dropdown */
.menu-mentions { min-width: 308px; }
.menu-empty { padding: 10px; font-size: 12.5px; color: var(--ink-3); }
.mention-item { display: flex; gap: 9px; align-items: flex-start; padding: 9px 10px; border-radius: var(--radius); text-decoration: none; color: var(--ink-2); }
.mention-item:hover { background: var(--surface-3); }
.mention-item .mini-av { margin-top: 1px; }
.mention-item-txt { font-size: 12.5px; line-height: 1.4; min-width: 0; }
.mention-item-txt b { color: var(--ink); font-weight: 600; }
.mi.mention-all { text-align: center; justify-content: center; color: var(--ink-2); font-weight: 500; }
.menu-wide { min-width: 326px; }
.menu-wide .tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; }
.tile { display: flex; align-items: center; gap: 8px; padding: 12px 10px; border-radius: var(--radius); background: var(--surface-3); border: 1px solid var(--line); color: var(--ink-2); text-decoration: none; font-size: 12.5px; position: relative; }
.tile:hover { border-color: var(--line-2); color: var(--ink); background: var(--line); }
.tile .ti { font-size: 14px; color: var(--ink-3); }
.tile .nav-count-badge { position: absolute; top: 6px; right: 6px; margin: 0; }
.nav-toggle { display: none; background: none; border: none; color: var(--ink-2); font-size: 1.4rem; cursor: pointer; padding: 4px 8px; }

@media (max-width: 880px) {
    .topbar { gap: 10px; }
    .nav-toggle { display: block; order: 3; }
    .nav {
        position: absolute; top: 58px; left: 0; right: 0; margin-left: 0;
        flex-direction: column; background: var(--surface); border-bottom: 1px solid var(--line);
        padding: 8px; gap: 2px; display: none; z-index: 49;
    }
    .nav.active { display: flex; }
    .nav a { padding: 10px 12px; }
    .brand-txt small { display: none; }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
    flex: 1;
    width: 100%;
}

/* Typography */
h1 { font-size: 1.5rem; margin-bottom: 1rem; }
h2 { font-size: 1.25rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }

/* Content-Links (ungestylte <a> im Seiteninhalt) — lesbar auf Dunkel.
   Komponenten-Links (.btn, .nav a, .brand, .mi, .pill …) setzen eigene Farben
   über Klassenselektoren und überschreiben dies.
   KEIN a:visited-Regel — sie hat dieselbe Spezifität wie .nav a/.brand und würde
   besuchte Navigations-/Brand-Links bläulich-violett einfärben. Die Basis-Farbe
   gilt ohnehin auch für besuchte Content-Links. */
a { color: #7aa7e0; }
a:hover { color: #9dc0f0; }

/* Alerts */
.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}
.alert-dismissible {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}
.alert-close {
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
}
.alert-close:hover { opacity: 0.8; }
/* Schließen-Button der System-Nachrichten erbt die (helle) Alert-Textfarbe
   statt der dunklen nativen Button-Farbe — sonst kaum sichtbar. */
.system-message-close { color: inherit; opacity: 0.75; }
.system-message-close:hover { opacity: 1; }
.alert-success { background: var(--success-light-bg); color: var(--success-dark-text); border: 1px solid var(--success-light-border); }
.alert-error { background: var(--danger-light-bg); color: var(--danger-dark-text); border: 1px solid var(--danger-light-border); }
.alert-warning { background: var(--warning-light-bg); color: var(--warning-dark-text); border: 1px solid var(--warning-light-border); }
.alert-info { background: var(--info); color: var(--info-dark-text); border: 1px solid var(--info-dark-text); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    cursor: pointer;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.15s;
    line-height: 1.1;
    font-family: inherit;
    /* Default-Look für variantenlose .btn — sonst greift das helle native Button-Styling (dunkler Text auf hell) */
    background: var(--surface-3);
    color: var(--ink);
}
.btn:hover { background: var(--line); }
/* Deaktivierte Buttons (z. B. Watch ohne erfasste Plays) — ausgegraut, aber sichtbar */
.btn.is-disabled,
.btn:disabled {
    background: var(--surface-2);
    color: var(--ink-4);
    border-color: var(--line);
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none;
}
.btn-primary { background: var(--maroon); color: #fff; border-color: var(--maroon-2); }
.btn-primary:hover { background: var(--maroon-2); }
.btn-success { background: var(--success); color: white; }
.btn-success:hover { background: var(--success-hover); }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: var(--danger-hover); }
.btn-accent { background: var(--accent); color: white; }
.btn-accent:hover { background: var(--accent-hover); }
.btn-outline { background: transparent; color: white; border: 1px solid var(--white-5); }
.btn-outline:hover { background: var(--white-1); }
.btn-outline-secondary { background: transparent; color: var(--primary); border: 1px solid var(--primary); }
.btn-outline-secondary:hover { background: var(--primary-15); }
.btn-sm { padding: 0.3rem 0.6rem; font-size: 0.8rem; }
.btn-secondary { background: var(--surface-3); color: var(--ink); border-color: var(--line-2); }
.btn-secondary:hover { background: var(--line); }

/* Cards */
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 1px 3px var(--black-08);
    padding: 1.25rem;
    margin-bottom: 1rem;
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
}
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--gray-700);
}
.form-control {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--line-2);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: inherit;
    background: var(--surface-2);
    color: var(--ink);
}
.form-control::placeholder { color: var(--ink-3); }
.form-control:focus { outline: none; border-color: var(--maroon-2); box-shadow: var(--focus-ring); }
select.form-control { cursor: pointer; }
select.form-control option { background: var(--surface-2); color: var(--ink); }
textarea.form-control { resize: vertical; }

/* Multi-check dropdowns (select-like) */
.multi-check {
    position: relative;
}
.multi-check-toggle {
    width: 100%;
    min-height: 38px;
    padding: 0.5rem 0.75rem 0.5rem 0.75rem;
    border: 1px solid var(--line-2);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    color: var(--ink);
    font-size: 0.9rem;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
.multi-check-toggle:hover {
    border-color: var(--ink-3);
}
.multi-check-toggle:focus-visible {
    outline: none;
    border-color: var(--maroon-2);
    box-shadow: var(--focus-ring);
}
.multi-check-display {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.multi-check-caret {
    margin-left: auto;
    width: 0.5rem;
    height: 0.5rem;
    border-right: 2px solid var(--gray-500);
    border-bottom: 2px solid var(--gray-500);
    font-size: 0;
    line-height: 0;
    transform: rotate(-45deg);
    transition: transform 0.15s ease;
}
.multi-check.is-open {
    z-index: 50;
}
.multi-check.is-open .multi-check-caret {
    transform: rotate(45deg);
}
.multi-check.is-open .multi-check-toggle {
    border-color: var(--maroon-2);
    box-shadow: var(--focus-ring);
}
.multi-check-panel {
    position: absolute;
    top: calc(100% + 0.3rem);
    left: 0;
    right: 0;
    max-height: 220px;
    overflow-y: auto;
    background: var(--surface-2);
    border: 1px solid var(--line-2);
    border-radius: var(--radius-sm);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    padding: 0.35rem 0;
    z-index: 60;
}
.multi-check-panel label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0.35rem 0.75rem;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--gray-700);
}
.multi-check-panel label:hover {
    background: var(--surface-3);
    color: var(--ink);
}
.multi-check-panel input[type="checkbox"] {
    margin: 0;
    accent-color: var(--primary);
}

.form-row {
    display: grid;
    gap: 0.75rem;
}
.form-row-2 { grid-template-columns: 1fr 1fr; }
.form-row-3 { grid-template-columns: 1fr 1fr 1fr; }

.form-inline {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
}

/* Tables */
.table-wrap { overflow-x: auto; }
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
th, td {
    text-align: left;
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--gray-200);
}
th {
    background: var(--surface-2);
    font-weight: 600;
    color: var(--ink-3);
    white-space: nowrap;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
tbody tr:hover { background: var(--white-1); }

/* Video Player */
.yt-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    background: var(--black);
    flex-shrink: 0;
    width: 100%;

}
.yt-wrap iframe,
.yt-wrap video {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

/* Zoom inner wrapper — receives the CSS transform */
.yt-inner {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    transform-origin: center center;
    will-change: transform;
}

/* Transparent overlay — blocks native video controls, zoom/pan only when active */
.yt-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 10;
    pointer-events: all;
    cursor: default;
}
.yt-overlay.dragging {
    cursor: grabbing;
}

/* Reset zoom button — top-right corner of yt-wrap */
.zoom-reset-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 20;
    background: var(--black-7);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    padding: 0.25rem 0.6rem;
    font-size: 0.8rem;
    cursor: pointer;
    line-height: 1.4;
}
.zoom-reset-btn:hover { background: var(--black-8); }

/* Media Controls */
.media-controls {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.media-controls .btn { flex: 1; justify-content: center; font-size: 1rem; padding: 0.6rem; }
.btn-play { background: var(--primary); color: var(--white); }
.btn-play:hover { background: var(--primary-light); }
.btn-play.paused { background: var(--accent); }
.btn-play.paused:hover { background: var(--accent-hover); }
.btn-seek { background: var(--gray-500); color: var(--white); }
.btn-seek:hover { background: var(--gray-700); }

/* Timestamp display */
.timestamp-display {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* Play form section */
.play-form .card { border-left: 3px solid var(--primary); }

/* Queue items */
.queue-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
    cursor: grab;
}
.queue-item:hover { border-color: var(--line-2); }
.queue-item:active { cursor: grabbing; }
.queue-item .drag-handle { color: var(--ink-4); font-size: 1.2rem; }
.queue-item .queue-info { flex: 1; font-size: 0.85rem; }

/* Filter panel */
.filter-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px var(--black-08);
}
.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem;
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    border: 1px solid transparent;
    line-height: 1.2;
}
.badge-primary { background: var(--maroon-bg); color: #e89b9b; border-color: rgba(156, 40, 40, 0.3); }
.badge-accent { background: rgba(224, 162, 60, 0.14); color: var(--amber); border-color: rgba(224, 162, 60, 0.28); }
.badge-warning { background: rgba(224, 162, 60, 0.14); color: var(--amber); border-color: rgba(224, 162, 60, 0.28); }
.badge-success { background: rgba(95, 185, 138, 0.14); color: var(--green); border-color: rgba(95, 185, 138, 0.28); }
.badge-danger { background: rgba(216, 99, 79, 0.14); color: var(--red); border-color: rgba(216, 99, 79, 0.28); }

/* Stats grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.stat-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: 0 1px 3px var(--black-08);
    text-align: center;
}
.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}
.stat-card .stat-label {
    font-size: 0.72rem;
    color: var(--ink-3);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 0.25rem;
}

/* Login page */
.login-wrap {
    max-width: 400px;
    margin: 3rem auto;
}

/* Footer */
.footer {
    text-align: center;
    padding: 1rem;
    font-size: 0.8rem;
    color: var(--gray-500);
    border-top: 1px solid var(--gray-200);
}

/* Cookie banner */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    background: var(--surface);
    border-top: 2px solid var(--maroon-2);
    box-shadow: 0 -2px 18px rgba(0, 0, 0, 0.55);
    padding: 1rem 1rem max(1rem, env(safe-area-inset-bottom));
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.cookie-banner-text {
    flex: 1;
    min-width: 240px;
    font-size: 0.9rem;
    color: var(--gray-700);
    margin: 0;
}
.cookie-banner .btn { flex-shrink: 0; }
@media (max-width: 480px) {
    .cookie-banner-content { flex-direction: column; align-items: stretch; }
    .cookie-banner .btn { width: 100%; }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        padding-bottom: 0.5rem;
    }
    .nav-links.active { display: flex; }
    .nav-links li a { padding: 0.75rem 0; }
    .nav-user { margin-left: 0; padding: 0.5rem 0; }
    .dropdown-menu { position: static; box-shadow: none; background: var(--white-1); }
    .dropdown-menu li a { color: var(--white-85) !important; padding-left: 1.5rem !important; }
    .form-row-2, .form-row-3 { grid-template-columns: 1fr; }
    .media-controls { flex-wrap: wrap; }
    .media-controls .btn { min-width: calc(33% - 0.5rem); }
    .filter-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .filter-grid { grid-template-columns: 1fr; }
    .container { padding: 1rem 0.5rem; }
}

/* Utility */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.text-center { text-align: center; }
.text-muted { color: var(--gray-500); }
.text-sm { font-size: 0.85rem; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.padding-top-05 { padding-top: 0.5rem; }
.hidden { display: none; }

/* Analytics hub */
.analytics-hub {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.hub-card {
    display: block;
    padding: 1.5rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.hub-card:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px var(--primary-15);
}
.hub-card h3 { margin: 0 0 0.5rem; }
.hub-card p { margin: 0; color: var(--gray-700); font-size: 0.9rem; }

/* Analytics pages */
.back-link { display: inline-block; margin-bottom: 1rem; color: var(--gray-700); text-decoration: none; }
.back-link:hover { color: var(--gray-700); }
.filter-form { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1.5rem 0; align-items: flex-end; }
.filter-form > .filter-grid { width: 100%; flex-basis: 100%; }
.filter-group { display: flex; flex-direction: column; gap: 0.25rem; }
.filter-group label { font-size: 0.85rem; font-weight: 600; color: var(--gray-500); }
.filter-group select { padding: 0.4rem 0.6rem; border: 1px solid var(--gray-300); border-radius: var(--radius-sm); }
.filter-submit .btn { padding: 0.45rem 1.2rem; }
.data-table { width: 100%; border-collapse: collapse; margin-top: 0.5rem; }
.data-table th { background: var(--surface-3); color: var(--ink-2); padding: 0.6rem 0.8rem; text-align: left; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; }
/* Spaltenüberschriften bleiben beim Scrollen oben kleben (innerhalb der .table-responsive-Box) */
.data-table thead th { position: sticky; top: 0; z-index: 5; box-shadow: inset 0 -1px 0 var(--line-2); }
.data-table td { padding: 0.5rem 0.8rem; border-bottom: 1px solid var(--line); }
.data-table tbody tr:hover { background: var(--white-1); }
.data-table tfoot .total-row { background: var(--surface-2); font-weight: 600; }
.table-responsive { overflow: auto; max-height: calc(100vh - 220px); }
.play-thumb { max-height: 48px; cursor: pointer; border-radius: 3px; }
.mt-4 { margin-top: 1.5rem; }

/* Tabs */
.tabs-container { margin-top: 1.5rem; }
.tab-buttons { display: flex; gap: 0.5rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; flex-wrap: wrap; }
.tab-btn { padding: 0.5rem 1.2rem; border: none; background: none; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; font-size: 0.95rem; font-family: inherit; color: var(--ink-3); }
.tab-btn:hover { color: var(--ink-2); }
.tab-btn.active { border-bottom-color: var(--maroon-2); font-weight: 600; color: var(--ink); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 1rem; }
@media (max-width: 700px) { .two-col { grid-template-columns: 1fr; } }

/* Modal overlay (for play diagrams) */
.modal-overlay { position: fixed; inset: 0; background: var(--black-5); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.modal-overlay.hidden { display: none; }
.modal-box { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); max-width: 800px; width: 90%; max-height: 90vh; overflow: auto; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6); }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.5rem; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--ink); }
.modal-close { background: none; border: none; font-size: 1.5rem; cursor: pointer; line-height: 1; color: var(--ink-3); }
.modal-close:hover { color: var(--ink); }
.modal-body { padding: 1.5rem; text-align: center; }

/* Share dialog sections */
.share-section {
    margin-bottom: 1.25rem; padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
}
.share-section:last-child { border-bottom: none; }
.share-section h4 { margin-bottom: .5rem; font-size: .9rem; }

/* Share pages */
.share-header { background: var(--primary); color: var(--white); padding: 1.25rem 2rem; text-align: center; }
.share-header h2 { margin: 0 0 .25rem; }
.share-header small { opacity: .8; }
.share-footer { text-align: center; padding: 1.5rem; color: var(--gray-500); font-size: .85rem; margin-top: 2rem; border-top: 1px solid var(--gray-200); }
.share-name-form { max-width: 400px; margin: 10vh auto; text-align: center; padding: 2rem; }
.share-name-form h2 { margin-bottom: .5rem; }
.share-name-form p { color: var(--gray-700); margin-bottom: 1.5rem; }
.share-name-form input[type="text"] { width: 100%; }
.share-expired { max-width: 500px; margin: 15vh auto; text-align: center; padding: 2rem; }
.share-expired h2 { color: var(--error-dark); margin-bottom: .5rem; }

/* Whiteboard */
.wb-color {
    width: 24px; height: 24px; border-radius: 50%; border: 2px solid transparent;
    cursor: pointer; padding: 0;
}
.wb-color.active { border-color: var(--white); }
.wb-tool {
    background: none; border: 1px solid var(--white-3); color: var(--white);
    padding: .2rem .5rem; border-radius: var(--radius-sm); cursor: pointer; font-size: .9rem;
}
.wb-tool.active { background: var(--white-2); border-color: var(--white); }

/* Keyboard Shortcuts Help Overlay */
.shortcuts-backdrop {
    display: none; position: fixed; inset: 0; background: var(--black-7);
    z-index: 10000; justify-content: center; align-items: center;
}
.shortcuts-backdrop.active { display: flex; }
.shortcuts-panel {
    background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 1.5rem 2rem;
    max-width: 480px; width: 90%; max-height: 80vh; overflow-y: auto;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}
.shortcuts-panel h2 { margin: 0 0 .25rem; font-size: 1.15rem; }
.shortcuts-panel .shortcuts-hint { color: var(--gray-500); font-size: .8rem; margin-bottom: 1rem; }
.shortcuts-section { margin-bottom: 1rem; }
.shortcuts-section h3 { font-size: .85rem; color: var(--gray-500); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .4rem; }
.shortcut-row { display: flex; justify-content: space-between; align-items: center; padding: .3rem 0; }
.shortcut-row .shortcut-desc { color: var(--gray-700); font-size: .9rem; }
.shortcut-keys { display: flex; gap: .3rem; }
kbd {
    display: inline-block; background: var(--gray-100); border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm); padding: .1rem .45rem; font-size: .8rem; font-family: inherit;
    color: var(--gray-700); min-width: 1.6em; text-align: center;
}
.shortcuts-close {
    float: right; background: none; border: none; font-size: 1.3rem;
    cursor: pointer; color: var(--gray-500); line-height: 1;
}
.shortcuts-close:hover { color: var(--gray-900); }
.shortcuts-hint-btn {
    position: fixed; bottom: 1rem; right: 1rem; z-index: 9999;
    background: var(--gray-100); border: 1px solid var(--gray-300);
    border-radius: var(--radius); padding: .3rem .6rem; font-size: .8rem;
    color: var(--gray-500); cursor: pointer;
}
.shortcuts-hint-btn:hover { background: var(--gray-200); color: var(--gray-700); }

/* Navbar @-mentions link with unread badge */
.nav-mentions {
    position: relative;
    color: var(--white-85) !important;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.35rem 0.6rem;
    border: 1px solid var(--white-3);
    border-radius: var(--radius);
    line-height: 1;
}
.nav-mentions:hover { color: white !important; background: var(--white-1); }
.nav-mentions-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    color: #dc2626 !important;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
}

.nav-count-badge {
    display: inline-block;
    margin-left: 0.35rem;
    padding: 0.05rem 0.35rem;
    border-radius: 999px;
    background: var(--accent);
    color: white !important;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.2;
    vertical-align: middle;
}
/* Liga-Verwaltung nav link with open-requests badge */
.nav-league-admin-badge {
    display: inline-block;
    margin-left: 0.4rem;
    background: #dc2626;
    color: #fff;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.4;
    vertical-align: middle;
    text-align: center;
    min-width: 1.1rem;
    height: 1.1rem;
    padding: 0 0.3rem;
}

/* Inline @-mention token in comment text */
.mention-token {
    color: #e89b9b;
    font-weight: 600;
    background: var(--maroon-bg);
    padding: 0 0.2rem;
    border-radius: var(--radius-sm);
}

/* @-mention autocomplete dropdown */
.mention-autocomplete {
    position: absolute;
    background: var(--surface-2);
    color: var(--ink);
    border: 1px solid var(--line-2);
    border-radius: var(--radius-sm);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    max-height: 200px;
    overflow-y: auto;
    z-index: 10050;
    min-width: 160px;
}
.mention-autocomplete-item {
    padding: 0.4rem 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
}
.mention-autocomplete-item:hover,
.mention-autocomplete-item.active {
    background: var(--surface-3);
}
.mention-autocomplete-empty {
    padding: 0.4rem 0.75rem;
    color: var(--gray-500);
    font-size: 0.85rem;
    font-style: italic;
}

/* ═══════════════ App-Komponenten (Dark Redesign) ═══════════════ */

/* Pills (Mono-Labels, getönt) */
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .05em; background: var(--surface-3); color: var(--ink-2); border: 1px solid var(--line); }
.pill.maroon { background: var(--maroon-bg); color: #e89b9b; border-color: rgba(156,40,40,.3); }
.pill.amber { background: rgba(224,162,60,.12); color: var(--amber); border-color: rgba(224,162,60,.25); }
.pill.green { background: rgba(95,185,138,.12); color: var(--green); border-color: rgba(95,185,138,.25); }
.pill.red { background: rgba(216,99,79,.12); color: var(--red); border-color: rgba(216,99,79,.25); }
.pill.blue { background: rgba(91,143,214,.12); color: var(--blue); border-color: rgba(91,143,214,.25); }

/* Eyebrow-Label */
.eye { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }

/* ── Dashboard ── */
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 26px; flex-wrap: wrap; }
.dash-head .eye { margin-bottom: 9px; }
.dash-head h1 { font-size: 30px; font-weight: 600; letter-spacing: -0.02em; margin: 0; }
.dash-head h1 em { font-style: normal; color: var(--maroon-2); }
.dash-head .sub { color: var(--ink-3); font-size: 13.5px; margin-top: 8px; }
.dcards { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.dcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.dcard .eye { font-size: 9.5px; letter-spacing: .14em; margin-bottom: 9px; }
.dcard h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 4px; color: var(--ink); }
.dcard p { margin: 0; font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }
.cont { display: flex; gap: 14px; align-items: center; text-decoration: none; color: inherit; }
.cont .pv { width: 120px; aspect-ratio: 16/9; border-radius: var(--radius); flex-shrink: 0; position: relative; background: linear-gradient(150deg, #1a2330, #0b0f17); border: 1px solid var(--line); }
.cont .pv .pl { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-2); font-size: 13px; }
.cont .pv .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.14); }
.cont .pv .bar i { display: block; height: 100%; background: var(--maroon-2); }
.mentionrow { display: flex; gap: 9px; align-items: flex-start; margin-bottom: 9px; font-size: 12.5px; color: var(--ink-2); line-height: 1.4; text-decoration: none; }
.mentionrow:last-child { margin-bottom: 0; }
.mini-av { width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-size: 10px; font-weight: 600; color: #1a1a1f; background: var(--amber); }
.watch { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 18px; display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: center; }
.watch .big { font-size: 28px; font-weight: 600; letter-spacing: -0.01em; line-height: 1; color: var(--ink); }
.watch .big s { font-size: 14px; color: var(--ink-3); text-decoration: none; }
.bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; height: 54px; align-items: end; }
.bars .b { background: var(--line-2); border-radius: 3px 3px 0 0; position: relative; min-height: 3px; }
.bars .b.on { background: var(--maroon-2); }
.bars .b span { position: absolute; bottom: -17px; left: 0; right: 0; text-align: center; font-family: 'JetBrains Mono', monospace; font-size: 9px; color: var(--ink-3); }
.dsec-title { display: flex; justify-content: space-between; align-items: baseline; margin: 30px 0 12px; }
.dsec-title h2 { font-size: 15px; font-weight: 600; margin: 0; }
.dsec-title a { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); text-decoration: none; }
.dsec-title a:hover { color: var(--ink-2); }
.dtable { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.dtable .th, .dtable .tr { display: grid; grid-template-columns: 96px 1fr 130px 70px 88px; padding: 13px 20px; border-bottom: 1px solid var(--line); align-items: center; }
.dtable .th { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.dtable .tr:last-child { border-bottom: none; }
.dtable .tr:hover { background: var(--surface-2); }
.dtable .tr .g { font-size: 15px; font-weight: 500; letter-spacing: -0.005em; color: var(--ink); }
/* Nur den „vs"-Trenner kursiv/grau — Badges/Pills behalten ihre eigene Farbe */
.dtable .tr .g span:not(.badge):not(.pill) { color: var(--ink-3); font-style: italic; font-weight: 400; }
.dtable-empty { padding: 28px 20px; text-align: center; color: var(--ink-3); font-size: 13px; }
@media (max-width: 900px) { .dcards { grid-template-columns: 1fr; } .watch { grid-template-columns: 1fr; gap: 16px; } }
@media (max-width: 720px) {
  .dtable .th { display: none; }
  .dtable .tr { grid-template-columns: 1fr auto; gap: 6px 12px; }
}

/* ── Wiederverwendbare Form-/Listen-Bausteine (Settings, Profil, Playbook, Feedback …) ── */
.inp { width: 100%; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 9px 12px; color: var(--ink); font-size: 13px; font-family: inherit; }
.inp::placeholder { color: var(--ink-3); }
.inp:focus { outline: none; border-color: var(--maroon-2); box-shadow: var(--focus-ring); }
select.inp option { background: var(--surface-2); color: var(--ink); }
.formcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; }
.formcard + .formcard { margin-top: 14px; }
.formcard h2 { font-size: 16px; font-weight: 600; margin: 0 0 4px; }
.formcard .ch { font-size: 12.5px; color: var(--ink-3); margin: 0 0 18px; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fwide { grid-column: 1 / -1; }
.fld { display: flex; flex-direction: column; }
.fld > label { font-family: 'JetBrains Mono', monospace; font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 7px; }
.fl-actions { display: flex; gap: 8px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
@media (max-width: 640px) { .fgrid { grid-template-columns: 1fr; } }

/* Chips (Single-Select Gruppen) */
.chipset { display: flex; gap: 5px; flex-wrap: wrap; }
.chip { padding: 6px 11px; border-radius: var(--radius-sm); font-size: 12.5px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); cursor: pointer; font-family: inherit; }
.chip:hover { border-color: var(--line-2); color: var(--ink); }
.chip.on { background: var(--maroon); border-color: var(--maroon-2); color: #fff; font-weight: 500; }
.chip.amber-on { background: rgba(224,162,60,.16); border-color: rgba(224,162,60,.35); color: var(--amber); font-weight: 500; }

/* Toggle-Switch */
.tgl { width: 38px; height: 22px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--line-2); position: relative; flex-shrink: 0; transition: .15s; padding: 0; cursor: pointer; }
.tgl::after { content: ""; position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%; background: var(--ink-2); transition: .15s; }
.tgl.on { background: var(--maroon); border-color: var(--maroon-2); }
.tgl.on::after { left: 18px; background: #fff; }
.setrow { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.setrow:last-child { border-bottom: none; }
.setrow .st { font-size: 13.5px; font-weight: 500; }
.setrow .ss { font-size: 12px; color: var(--ink-3); margin-top: 3px; max-width: 440px; line-height: 1.5; }

/* Audit-/Aktivitäts-Log */
.log { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.logrow { display: grid; grid-template-columns: 140px 1fr auto; gap: 18px; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.logrow:last-child { border-bottom: none; }
.logrow[hidden] { display: none; }
.logrow:hover { background: var(--surface-2); }
.logrow .lt { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--ink-3); }
.logrow .la { font-size: 13px; color: var(--ink-2); display: flex; align-items: center; gap: 9px; }
.logrow .la b { color: var(--ink); font-weight: 600; }

/* Profil-Hero */
.phero { display: flex; gap: 22px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; margin-bottom: 18px; }
.phero .pav { width: 74px; height: 74px; border-radius: 50%; background: linear-gradient(150deg, var(--maroon-2), var(--maroon)); display: grid; place-items: center; font-size: 25px; font-weight: 600; color: #fff; flex-shrink: 0; box-shadow: 0 4px 18px rgba(122,29,29,.35); }

/* Note-/Patchnote-Karten */
.note { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 12px; }
.note h3 { font-size: 16px; font-weight: 600; margin: 0; display: flex; align-items: center; gap: 11px; }
.note ul { margin: 13px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 13px; line-height: 1.9; }
.note ul li::marker { color: var(--maroon-2); }

/* Playbook-Grid */
.pbgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(186px, 1fr)); gap: 14px; }
.pbcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pbcard:hover { border-color: var(--line-2); }
.pbcard .pbimg { aspect-ratio: 5/4; background: #0e120e; position: relative; border-bottom: 1px solid var(--line); background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.022) 0 8px, transparent 8px 16px); }
.pbcard .pbimg img { width: 100%; height: 100%; object-fit: contain; }
.pbcard .pbmeta { padding: 11px 13px; }
.pbcard .pbmeta .pn { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--amber); }
.pbcard .pbmeta .nm { font-size: 13.5px; font-weight: 500; margin-top: 3px; }

/* Drop-Zone */
.drop { border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 22px; text-align: center; color: var(--ink-3); font-size: 12.5px; background: var(--surface-2); }
.drop .mono { display: block; margin-top: 5px; font-size: 11px; color: var(--ink-4); }

/* ── Analytics (KPI-Strip, Filter, Tabs, Tabellen mit Rate-Bars) ── */
.an-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.kpi .kl { font-family: 'JetBrains Mono', monospace; font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 11px; }
.kpi .kv { font-size: 27px; font-weight: 600; letter-spacing: -0.02em; line-height: 1; display: flex; align-items: baseline; gap: 6px; color: var(--ink); }
.kpi .kv s { font-size: 13px; color: var(--ink-3); text-decoration: none; font-weight: 500; }
.kpi .kd { font-size: 11.5px; margin-top: 8px; color: var(--ink-3); }
.kpi .kd.up { color: var(--green); }
.kpi .kd.dn { color: var(--red); }
@media (max-width: 900px) { .an-kpis { grid-template-columns: 1fr 1fr; } }

.an-filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.an-filters .ff-lead { font-family: 'JetBrains Mono', monospace; font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.fsel { position: relative; }
.fsel-btn { display: inline-flex; align-items: center; gap: 7px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px; color: var(--ink-2); font-size: 12.5px; font-family: inherit; cursor: pointer; }
.fsel.open .fsel-btn { border-color: var(--line-2); color: var(--ink); background: var(--surface-3); }
.fsel.set .fsel-btn { background: var(--maroon-bg); border-color: rgba(156,40,40,.35); color: #e89b9b; }
.fmenu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; min-width: 170px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: 0 12px 30px rgba(0,0,0,.5); padding: 5px; display: none; flex-direction: column; gap: 1px; }
.fsel.open .fmenu { display: flex; }
.fo { text-align: left; padding: 8px 10px; border-radius: var(--radius-sm); font-size: 12.5px; color: var(--ink-2); background: transparent; border: none; cursor: pointer; font-family: inherit; }
.fo:hover { background: var(--surface-3); color: var(--ink); }
.fo.on { color: var(--ink); font-weight: 500; }
.fo.on::after { content: "✓"; float: right; color: var(--amber); }

.an-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 20px; flex-wrap: wrap; }
.an-tab { padding: 10px 16px 13px; font-size: 13.5px; font-weight: 500; color: var(--ink-3); background: transparent; border: none; border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 7px; font-family: inherit; }
.an-tab:hover { color: var(--ink-2); }
.an-tab.on { color: var(--ink); border-bottom-color: var(--maroon-2); }
.an-tab .ct { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--ink-3); background: var(--surface-3); padding: 1px 6px; border-radius: var(--radius-sm); }
.an-tab.on .ct { color: var(--amber); }
.an-pane { display: none; }
.an-pane.on { display: block; }

.atable { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.atable .ath, .atable .atr { display: grid; align-items: center; padding: 0 20px; grid-template-columns: var(--c, 1fr); }
.atable .ath { height: 42px; border-bottom: 1px solid var(--line); font-family: 'JetBrains Mono', monospace; font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.atable .atr { height: 54px; border-bottom: 1px solid var(--line); }
.atable .atr:last-child { border-bottom: none; }
.atable .atr:hover { background: var(--surface-2); }
.atable .atr.tot { background: var(--surface-2); font-weight: 600; }
.atable .atr.tot .rk { color: var(--ink-2); }
.atable .rk { font-size: 14px; font-weight: 500; letter-spacing: -0.005em; display: flex; align-items: center; gap: 9px; color: var(--ink); }
.atable .rk small { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--ink-4); font-weight: 400; }
.atable .n { font-family: 'JetBrains Mono', monospace; font-size: 13.5px; font-variant-numeric: tabular-nums; text-align: right; color: var(--ink-2); }
.atable .n.hi { color: var(--ink); font-weight: 500; }
.atable .pos { color: var(--green); }
.atable .neg { color: var(--red); }
.rate { display: flex; flex-direction: column; gap: 5px; align-items: flex-end; }
.rate .v { font-family: 'JetBrains Mono', monospace; font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rate .track { width: 100%; max-width: 118px; height: 5px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.rate .track i { display: block; height: 100%; border-radius: 3px; }
.rate.g .track i { background: var(--green); } .rate.g .v { color: var(--green); }
.rate.a .track i { background: var(--amber); } .rate.a .v { color: var(--amber); }
.rate.r .track i { background: var(--red); } .rate.r .v { color: var(--red); }
.rate.m .track i { background: var(--maroon-2); } .rate.m .v { color: #e89b9b; }
.split { height: 16px; width: 160px; display: flex; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-3); }
.split i { height: 100%; }

/* Klickbare Tabellenzeilen (ganze Zeile öffnet den Eintrag) */
.clickable-row { cursor: pointer; }

/* ═══════════════ Film-Room-Redesign ═══════════════
   Gleiche Struktur und Informationen — nur die Optik:
   - Sofia Sans Extra Condensed für Überschriften, Zahlen, Navigation (Anzeigetafel/Trikot)
   - Maroon = Teamfarbe, Gelb (--signal) NUR für aktiv/ausgewählt/Fokus (Telestrations-Stift)
   - Kanten über Linien statt Schatten, Yard-Markierungen als Trenner */

/* Überschriften */
h1, h2, h3,
.dash-head h1, .dcard h3, .dsec-title h2, .formcard h2, .note h3,
.shortcuts-panel h2, .modal-header, .share-header h2 {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: 0.03em;
}
h1, h2, .dash-head h1, .dsec-title h2, .formcard h2, .shortcuts-panel h2, .share-header h2 {
    text-transform: uppercase;
}
h1 { font-size: 2.2rem; line-height: 1; }
h2 { font-size: 1.6rem; line-height: 1.05; }
h3 { font-size: 1.35rem; font-weight: 700; }

/* Kennzahlen wie auf der Anzeigetafel */
.kpi .kv, .stat-card .stat-value, .watch .big {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: 0.01em;
    font-variant-numeric: tabular-nums;
}
.kpi .kv { font-size: 40px; }
.stat-card .stat-value { font-size: 2.8rem; }
.watch .big { font-size: 42px; }

/* Keine weichen Schatten mehr — Flächen trennen sich über Linien */
.card, .stat-card, .filter-panel { box-shadow: none; }

/* Topbar: Teamfarben-Streifen oben, Navigation in Condensed-Versalien */
.topbar { border-top: 3px solid var(--maroon-2); }
.brand .glyph {
    border-radius: var(--radius-sm);
    background: var(--maroon-2);
    box-shadow: none;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 20px;
}
.brand-txt b { font-family: var(--font-display); font-size: 21px; font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase; }
.nav a {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.nav a.active::after { height: 3px; background: var(--signal); border-radius: 0; }
.iconbtn .dot { background: var(--signal); }

/* Buttons */
.btn {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.btn-sm { font-size: 0.95rem; }

/* Eyebrow-Labels mit Yard-Marker */
.eye::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 2px;
    margin-right: 7px;
    vertical-align: middle;
    background: var(--maroon-2);
}

/* Yard-Linien als Abschnittstrenner (kleine Hash-Marks auf der Grundlinie) */
.dash-head,
.dsec-title {
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line-2);
    background: repeating-linear-gradient(90deg, var(--line-2) 0 1px, transparent 1px 28px) left bottom / 100% 6px no-repeat;
}
.dash-head h1 { font-size: 48px; line-height: 0.95; }
.dash-head h1 em { color: var(--maroon-2); }
.dsec-title h2 { font-size: 23px; }

/* Spielliste */
.dtable .tr .g { font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: 0.02em; }
.dtable .tr:hover, .atable .atr:hover, .logrow:hover, tbody tr:hover, .data-table tbody tr:hover {
    box-shadow: inset 3px 0 0 var(--signal);
}
.atable .rk { font-family: var(--font-display); font-size: 19px; font-weight: 700; }
.bars .b { border-radius: 0; }

/* Pills/Badges im Anzeigetafel-Stil: eckig, Versalien */
.pill, .badge {
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.badge { font-family: var(--font-mono); font-size: 0.68rem; }

/* Aktiv/ausgewählt = Signal-Gelb */
.tab-btn.active, .an-tab.on { border-bottom-color: var(--signal); }
.an-tab.on .ct, .fo.on::after { color: var(--signal); }
.chip.on, .fsel.set .fsel-btn {
    background: var(--signal-bg);
    border-color: var(--signal);
    color: var(--signal);
}
.tab-btn, .an-tab {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.form-control:focus, .inp:focus, .multi-check-toggle:focus-visible,
.multi-check.is-open .multi-check-toggle { border-color: var(--signal); }

/* Profil-Avatar ohne Glow */
.phero .pav { background: var(--maroon-2); box-shadow: none; font-family: var(--font-display); font-weight: 800; font-size: 34px; }

/* Spielansicht: Seek-Buttons neutral, Play bleibt Teamfarbe */
.btn-seek { background: var(--surface-3); color: var(--ink); border-color: var(--line-2); }
.btn-seek:hover { background: var(--line-2); }
.timestamp-display { font-family: var(--font-mono); }
/* Steuer-Buttons nie umbrechen; „Controls“ nimmt nur seine eigene Breite (Zeile darf als Ganzes umbrechen) */
.media-controls .btn { white-space: nowrap; }

/* Tabs im Spiel-Panel (Play erfassen / FlagPlayMaker) wie die übrigen Tabs */
.gvr-tab-bar .gvr-tab-btn {
    background: transparent;
    color: var(--ink-3);
    border-radius: 0;
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.gvr-tab-bar .gvr-tab-btn:hover { opacity: 1; color: var(--ink-2); }
.gvr-tab-bar .gvr-tab-btn.active { color: var(--ink); border-bottom-color: var(--signal); }

/* ── Startseite (ersetzt das Dashboard): Erwähnungen, Neues, Coach-Watch-Übersicht ── */
.pill.signal { background: var(--signal-bg); color: var(--signal); border-color: rgba(240, 220, 74, 0.35); }
.dtable .home-mention { display: grid; grid-template-columns: 24px 1fr auto; gap: 12px; align-items: center; margin: 0; padding: 13px 20px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.dtable .home-mention:last-child { border-bottom: none; }
.dtable .home-mention:hover { background: var(--surface-2); box-shadow: inset 3px 0 0 var(--signal); }
.home-mention-txt b { color: var(--ink); }
.home-when { font-size: 11px; color: var(--ink-3); white-space: nowrap; }
.dtable-new .th, .dtable-new .tr { grid-template-columns: 96px 1fr 130px 110px 88px; }
.dtable-watch .th, .dtable-watch .tr { grid-template-columns: 1.1fr 1.6fr 110px 80px 80px; }
.dtable-watch .tr.is-idle .g { color: var(--ink-3); }
.home-game-link { color: var(--ink-2); text-decoration: none; }
.home-game-link:hover { color: var(--ink); }
.home-game-link span:not(.badge) { color: var(--ink-3); font-style: italic; }
@media (max-width: 720px) {
    .dtable-new .tr { grid-template-columns: 1fr auto; }
    /* Mobil: Name + 7 Tage oben, letztes Game + Zeitpunkt darunter */
    .dtable-watch .tr { grid-template-columns: 1fr auto; }
    .dtable-watch .tr > :nth-child(1) { grid-area: 1 / 1; }
    .dtable-watch .tr > :nth-child(4) { grid-area: 1 / 2; text-align: right; }
    .dtable-watch .tr > :nth-child(2) { grid-area: 2 / 1; }
    .dtable-watch .tr > :nth-child(3) { grid-area: 2 / 2; text-align: right; }
    .dtable-watch .tr > :nth-child(5) { display: none; }
    .dtable .home-mention { grid-template-columns: 24px 1fr; }
    .dtable .home-mention .home-when { grid-column: 2; }
}

/* ── Einstiegsseiten (Start, Login, Share): Flutlicht + Yard-Linien, Lade-Choreografie ──
   Nur auf body.page-field — nie hinter Video oder Analyse-Tabellen. */
body.page-field::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    /* Flutlicht mittig unter der Topbar, Teamfarben-Schein in den Ecken,
       50-Yard-Linie in der Mitte + Yard-Linien im 120px-Raster (zentriert) */
    background:
        radial-gradient(ellipse 60% 55% at 50% 0%, rgba(242, 240, 235, 0.11), transparent 70%),
        radial-gradient(ellipse 45% 45% at 100% 0%, rgba(156, 40, 40, 0.30), transparent 70%),
        radial-gradient(ellipse 35% 40% at 0% 0%, rgba(156, 40, 40, 0.12), transparent 70%),
        linear-gradient(90deg, transparent calc(50% - 1px), rgba(242, 240, 235, 0.10) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
        repeating-linear-gradient(90deg, rgba(242, 240, 235, 0.05) 0 1px, transparent 1px 120px);
    background-position: 0 0, 0 0, 0 0, 0 0, calc(50% - 60px) 0;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.55) 60%, rgba(0, 0, 0, 0.15) 100%);
    mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.55) 60%, rgba(0, 0, 0, 0.15) 100%);
}

/* Telestrations-Strich unter der Seitenüberschrift */
.page-field .container h1 { position: relative; }
.page-field .container h1::after {
    content: "";
    display: block;
    width: 64px;
    height: 3px;
    margin-top: 10px;
    background: var(--signal);
    transform-origin: left center;
}
.page-field .container h1.text-center::after { margin-left: auto; margin-right: auto; transform-origin: center; }

/* Keine Einblend-Animation mehr: Startseite und Login werden ständig aufgerufen,
   dort soll der Inhalt sofort stehen (HIG › Motion: selten bei häufigen Interaktionen). */

/* ═══════════════ Liquid Glass (Grundlage, ersetzt Film-Room-Optik) ═══════════════
   Apples Prinzip „Glas für Steuerung, nicht für Inhalt“ (HIG › Materials):
   1. CHROME-GLAS  — klar, glänzend, mit Blur: nur die schwebende Steuerungsebene
      (Navigation, Menüs, Pop-ups, Modals, Player-Transportleiste).
   2. INHALT       — deckende, ruhige Flächen ohne Blur: Karten, Tabellen, Formulare.
      Buttons im Inhalt sind flach; nur die eine Hauptaktion pro Seite ist farbig. */
:root {
    /* Chrome-Glas */
    --glass-bg:      rgba(255, 255, 255, 0.08);
    --glass-bg-hi:   rgba(255, 255, 255, 0.14);
    --glass-border:  rgba(255, 255, 255, 0.16);
    --glass-blur:    blur(26px) saturate(180%);
    --glass-shine:   linear-gradient(180deg, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0.04) 40%, rgba(255,255,255,0) 62%);
    --glass-shadow:  inset 0 1px 0 rgba(255,255,255,0.30), inset 0 -1px 0 rgba(255,255,255,0.05), 0 10px 36px rgba(0,0,0,0.45);
    /* Inhaltsflächen: deckend */
    --smoke-bg:      #141417;
    --smoke-border:  rgba(255, 255, 255, 0.09);
    /* Buttons im Inhalt */
    --btn-bg:        rgba(255, 255, 255, 0.07);
    --btn-bg-hi:     rgba(255, 255, 255, 0.12);
    --btn-border:    rgba(255, 255, 255, 0.12);
    --danger-solid:  #a8322a;   /* Weiß darauf 6,7:1 */
    /* Formen: konzentrische Radien */
    --radius:    20px;
    --radius-sm: 12px;
    /* Etwas hellere Sekundärtexte für Lesbarkeit auf Glas */
    --ink-2: #c4c1b9;
    --ink-3: #8f8c84;
}

/* ── Hintergrund: Farbe nur oben (hinter Navigation/Kopf), unten ruhig ── */
body {
    background:
        radial-gradient(ellipse 50% 42% at 88% -4%, rgba(196, 52, 52, 0.55), transparent 70%),
        radial-gradient(ellipse 42% 40% at 6% 4%, rgba(46, 120, 78, 0.38), transparent 70%),
        radial-gradient(ellipse 38% 30% at 45% -8%, rgba(242, 240, 235, 0.14), transparent 70%),
        radial-gradient(ellipse 30% 22% at 70% 100%, rgba(224, 162, 60, 0.10), transparent 70%),
        #09090b;
    background-attachment: fixed;
}
body.page-field::before { display: none; }

/* ═══ 1. CHROME-GLAS ═══ */
.topbar, .menu, .dropdown-menu, .fmenu, .multi-check-panel, .mention-autocomplete,
.modal-box, .pm-modal-box, .shortcuts-panel, .cookie-banner, .em-bar {
    background: var(--glass-shine), var(--glass-bg) !important;
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border) !important;
    box-shadow: var(--glass-shadow) !important;
}
.menu, .dropdown-menu, .fmenu, .multi-check-panel, .mention-autocomplete { border-radius: 18px !important; }
/* Pop-ups über Inhalt brauchen mehr Deckkraft */
.menu, .dropdown-menu, .fmenu, .multi-check-panel, .mention-autocomplete, .modal-box, .pm-modal-box, .shortcuts-panel {
    /* Deckend: in der Glas-Kopfleiste greift der eigene Blur nicht (verschachteltes backdrop-filter),
       bei 72 % schien der Seiteninhalt lesbar durch → deckend */
    background: var(--glass-shine), #1e1e24 !important;
}
.tooltip .tooltiptext { border-radius: 12px !important; background: rgba(30, 30, 36, 0.92) !important; border: 1px solid var(--glass-border); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
.modal-overlay, .shortcuts-backdrop { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

/* Schwebende Kapsel-Navigation */
.topbar {
    position: sticky;
    top: 12px;
    margin: 12px auto 0;
    width: calc(100% - 24px);
    max-width: 1240px;
    border-radius: 999px;
    height: 56px;
    padding: 0 10px 0 12px;
}
.brand .glyph { border-radius: 50%; background: linear-gradient(160deg, #c43a3a, #7a1d1d); box-shadow: inset 0 1px 0 rgba(255,255,255,.35); }
.brand-txt b { text-transform: none; letter-spacing: 0.01em; font-size: 20px; }
.nav a {
    font-family: var(--font-body);
    font-size: 14.5px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    border-radius: 999px;
    padding: 8px 15px;
}
.nav a.active { background: var(--glass-bg-hi); box-shadow: inset 0 1px 0 rgba(255,255,255,0.25); }
.nav a.active::after { display: none; }
.iconbtn, .avatar { border-radius: 50%; }
@media (max-width: 880px) {
    .nav { top: 64px; border-radius: 22px; background: var(--glass-shine), rgba(30,30,36,0.85); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); border: 1px solid var(--glass-border); }
}

/* Kapsel-Buttons: flach im Inhalt, Farbe nur mit Bedeutung
   (Maroon = Hauptaktion, Rot = zerstörend, Gold = Watch/Abspielen, Grün = Erfolg) */
.btn, .pm-btn, .gw-control-btn, .wb-tool {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    border-radius: 999px;
    background: var(--btn-bg);
    border: 1px solid var(--btn-border);
    box-shadow: none;
    color: var(--ink);
}
.btn-sm { font-size: 13px; }
.btn:hover, .pm-btn:hover { background: var(--btn-bg-hi); }
.btn-primary, .btn-play, .pm-btn.active { background: var(--maroon-2) !important; border-color: rgba(255,150,150,0.28) !important; color: #fff !important; }
.btn-primary:hover, .btn-play:hover { background: #ad2f2f !important; }
.btn-accent, .btn-play.paused { background: var(--amber) !important; border-color: rgba(255,220,150,0.4) !important; color: #1c1406 !important; }
.btn-success { background: #2f7a52 !important; border-color: rgba(150,230,190,0.3) !important; color: #fff !important; }
.btn-danger { background: var(--danger-solid) !important; border-color: rgba(255,170,150,0.3) !important; color: #fff !important; }
.btn-seek, .btn-secondary { background: var(--btn-bg) !important; color: var(--ink) !important; }
/* Leiser Button für Zeilen-Aktionen */
.btn-quiet { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn-quiet:hover { background: var(--btn-bg-hi); color: var(--ink); }
.btn .ico { width: 14px; height: 14px; flex-shrink: 0; }
.btn-icon { padding-left: 0; padding-right: 0; width: 32px; justify-content: center; }
/* Glas nur in der Steuerungsebene */
.topbar .btn { background: var(--glass-shine), var(--glass-bg); border-color: var(--glass-border); box-shadow: inset 0 1px 0 rgba(255,255,255,0.22); }

/* Chips, Pills, Tabs */
.pill, .badge, .chip { border-radius: 999px !important; text-transform: none; letter-spacing: 0.01em; font-family: var(--font-body); font-weight: 600; }
.pill { font-size: 11px; }
.chip.on, .fsel.set .fsel-btn { background: rgba(240, 220, 74, 0.16); border-color: rgba(240, 220, 74, 0.55); color: var(--signal); }
.tab-btn, .an-tab, .gvr-tab-bar .gvr-tab-btn {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
}
/* Segment-Umschalter (Spiel-Panel: Play erfassen / FlagPlayMaker) wie bei Apple:
   eingelassene Spur, gleich breite Segmente, erhabene Markierung gleitet zum aktiven Segment.
   Sichtbarkeit (display) steuert view.css je nach Bildschirmbreite. */
.game-view-right .gvr-tab-bar {
    position: relative;
    isolation: isolate;
    gap: 0;
    padding: 3px;
    margin: 0 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.35);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.45);
}
.game-view-right .gvr-tab-bar .gvr-tab-btn {
    flex: 1 1 0;
    position: relative;
    z-index: 1;
    min-height: 34px;
    margin: 0;
    padding: 7px 14px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--ink-3);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.2s ease;
}
.game-view-right .gvr-tab-bar .gvr-tab-btn:hover { color: var(--ink-2); opacity: 1; }
.game-view-right .gvr-tab-bar .gvr-tab-btn.active {
    color: var(--ink);
    background: #2b2b31;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
/* Mit :has() gleitet eine gemeinsame Markierung statt hart umzuspringen */
@supports selector(:has(*)) {
    .game-view-right .gvr-tab-bar::before {
        content: "";
        position: absolute;
        z-index: 0;
        top: 3px;
        bottom: 3px;
        left: 3px;
        width: calc(50% - 3px);
        border-radius: 999px;
        background: #2b2b31;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
        transition: transform 0.28s cubic-bezier(0.3, 0.7, 0.2, 1);
    }
    .game-view-right .gvr-tab-bar:has(.gvr-tab-btn:nth-child(2).active)::before { transform: translateX(100%); }
    .game-view-right .gvr-tab-bar .gvr-tab-btn.active { background: transparent; box-shadow: none; }
}

/* ═══ 2. INHALT: deckende Flächen, kein Blur ═══ */
.card, .dcard, .dtable, .atable, .kpi, .formcard, .filter-panel, .stat-card, .log, .note,
.phero, .pbcard, .watch, .queue-item, .pm-toolbar, .scripting-banner, .em-panel, .hub-card,
.table-responsive, .table-wrap {
    background: var(--smoke-bg) !important;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border: 1px solid var(--smoke-border) !important;
    box-shadow: none !important;
}
.table-responsive, .table-wrap { border-radius: var(--radius); }
/* Verschachtelte Flächen: keine Karte-in-Karte, nur Rand */
.card .card, .card .table-wrap, .card .table-responsive, .card .pm-toolbar, .card .filter-panel {
    background: transparent !important;
}

/* Typografie (Sofia): Überschriften in Condensed-Versalien, Rest normal */
h1, .dash-head h1 { font-size: 44px; letter-spacing: 0.02em; }
.dsec-title h2 { font-size: 24px; }
.eye::before { display: none; }
.dash-head, .dsec-title { background: none; border-bottom: none; }
.page-field .container h1::after { width: 48px; border-radius: 2px; }
/* Labels: Sofia Sans statt Mono-Versalien */
.eye, .dtable .th, .atable .ath, th, .dsec-title a, .brand-txt small, .fld > label, .kpi .kl, .menu-eyebrow, .form-group label {
    font-family: var(--font-body) !important;
    text-transform: none !important;
    letter-spacing: 0.01em !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    color: var(--ink-3) !important;
}
.dsec-title a { color: var(--ink-2) !important; }
.dsec-title a:hover { color: var(--ink) !important; }

/* Tabellen: ruhige Zeilen, deutliche Schrift */
th { background: rgba(255, 255, 255, 0.03); }
td { color: var(--ink); }
.dtable .th { background: transparent; }
.dtable .tr, .dtable .th, .dtable .home-mention, th, td { border-bottom-color: rgba(255, 255, 255, 0.07) !important; }
.dtable .tr:hover, .atable .atr:hover, tbody tr:hover, .data-table tbody tr:hover, .dtable .home-mention:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    box-shadow: inset 3px 0 0 var(--signal) !important;
}
.dtable .tr .g { font-size: 21px; }
td a:not(.btn) { color: #9cc3f5; }

/* Eingaben */
.form-control, .inp, .multi-check-toggle, select.form-control, .fsel-btn {
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.13);
    color: var(--ink);
}
.form-control:focus, .inp:focus { background: rgba(255, 255, 255, 0.09); border-color: rgba(240, 220, 74, 0.7); }
select.form-control option { background: #1d1d22; }

/* ═══ Spielansicht ═══ */
/* Video als schwebende Fläche mit konzentrischem Radius */
.yt-wrap, .gw-video-container { border-radius: var(--radius); box-shadow: 0 0 0 1px var(--glass-border), 0 22px 60px rgba(0,0,0,0.55); }
/* Transportleiste als eine Glas-Kapsel */
.media-controls {
    padding: 6px;
    gap: 6px;
    border-radius: 999px;
    background: var(--glass-shine), var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    margin-bottom: 12px;
}
.media-controls .btn { border-color: transparent; box-shadow: none; background: transparent !important; }
.media-controls .btn:hover { background: var(--glass-bg-hi) !important; }
.media-controls .btn-play { background: var(--glass-shine), rgba(190, 50, 50, 0.85) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,0.3); }
@media (max-width: 768px) { .media-controls { border-radius: 24px; } }
/* Zeitstempel ruhiger */
.timestamp-display, .scripting-time { color: var(--ink) !important; font-family: var(--font-mono); }
.play-form .card { border-left: 1px solid var(--smoke-border) !important; }
/* Rechtes Panel: Überschrift kleiner, Abstand */
.game-view-right > .card > h3 { font-size: 22px; margin-bottom: 12px; }
/* Playmaker-Werkzeugleiste: Gruppen-Trenner weicher */
.pm-toolbar { border-radius: 18px; }
.pm-toolbar-group { border-right-color: rgba(255,255,255,0.08); }
.pm-canvas-wrap { border: 1px solid var(--glass-border); border-radius: 16px; box-shadow: 0 12px 34px rgba(0,0,0,0.4); }
/* Watch-Mode */
.em-bar { border-radius: 0 0 22px 22px; border-top: none !important; }
.em-panel { border-radius: 0; }
.footer { border-top: none; }

/* Fallback ohne backdrop-filter: deckender */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    :root { --glass-bg: rgba(40, 40, 46, 0.94); }
}
/* Weniger Transparenz / mehr Kontrast gewünscht: Glas wird deckend */
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
    .topbar, .menu, .dropdown-menu, .fmenu, .multi-check-panel, .mention-autocomplete,
    .modal-box, .pm-modal-box, .shortcuts-panel, .cookie-banner, .em-bar, .media-controls, .nav {
        background: #1d1d22 !important;
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
    }
}

/* ═══ Schriftskala & Kontrast ═══
   Feste Stufen statt freier Werte: 12 · 13 · 14 · 15 · 17 · 22 · 28 · 44 px.
   Nichts unter 12 px; Fließtext in Tabellen/Formularen 15 px. */
td, .form-control, .inp, .menu .mi { font-size: 15px; }
.text-sm, .col-date, .col-by { font-size: 14px; }
.badge, .pill, .nav-count-badge, .an-tab .ct { font-size: 12px !important; font-family: var(--font-body); }
.brand-txt small, .brand .dev-indicator, .menu-eyebrow, .eye, .dsec-title a, .dtable .th,
.home-when, .logrow .lt, .pbcard .pbmeta .pn, .atable .rk small, .menu-head-txt small, .avatar, .mini-av { font-size: 12px; }
.menu-head-txt b { font-size: 15px; }
/* Gold-Badge: dunkle Schrift (vorher Weiß auf Gold 2,2:1 → jetzt 8,2:1) */
.nav-count-badge { color: #1c1406 !important; }
/* Neutrales Badge für Info ohne Bewertung (Liga, Status „Offen“) */
.badge-neutral { background: rgba(255, 255, 255, 0.06); color: var(--ink-2); border-color: rgba(255, 255, 255, 0.12); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Sichtbarer Tastaturfokus */
a:focus-visible, button:focus-visible, summary:focus-visible, .btn:focus-visible, select:focus-visible {
    outline: 2px solid var(--signal);
    outline-offset: 2px;
}

/* ═══ Games-Liste ═══ */
.games-filter { align-items: center; }
.games-filter .form-group { display: flex; align-items: center; gap: 10px; margin: 0; }
.games-table .col-label .row-link { color: var(--ink); font-weight: 600; text-decoration: none; }
.games-table .col-label .row-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.games-table .num { font-family: var(--font-mono); color: var(--ink-2); }
.games-table .col-actions { width: 1%; white-space: nowrap; }
.row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.row-actions .btn-quiet:not(.btn-icon) .ico { margin-right: 6px; }
.row-menu { position: relative; }
.row-menu > summary { list-style: none; }
.row-menu > summary::-webkit-details-marker { display: none; }
.row-menu[open] > summary { background: var(--btn-bg-hi); color: var(--ink); }
.row-menu-list { position: fixed; top: 0; right: 0; min-width: 190px; }
.row-menu-list .mi { width: 100%; text-align: left; background: none; border: none; font: inherit; font-size: 15px; cursor: pointer; }

/* Schmale Bildschirme: jede Zeile wird eine Karte */
@media (max-width: 600px) {
    .games-table thead { display: none; }
    .games-table, .games-table tbody { display: block; width: 100%; }
    .games-table tr:not(.games-empty) {
        display: grid;
        grid-template-columns: auto auto auto 1fr auto;
        grid-template-areas: "label label label label actions" "date league plays status actions";
        align-items: center;
        gap: 6px 10px;
        padding: 12px 8px 12px 14px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    }
    .games-table td { padding: 0; border: none !important; }
    .games-table .col-home, .games-table .col-away, .games-table .col-by { display: none; }
    .games-table .col-label { grid-area: label; font-size: 16px; }
    .games-table .col-date { grid-area: date; color: var(--ink-2); font-size: 13px; }
    .games-table .col-league { grid-area: league; }
    .games-table .col-plays { grid-area: plays; font-size: 13px; white-space: nowrap; }
    .games-table .col-plays .num::after { content: " Plays"; font-family: var(--font-body); }
    .games-table .col-status { grid-area: status; }
    .games-table .col-actions { grid-area: actions; width: auto; }
    .games-table .row-actions .btn-quiet:not(.btn-icon) { font-size: 0; gap: 0; width: 44px; justify-content: center; }
    .games-table .row-actions .btn-quiet:not(.btn-icon) .ico { margin: 0; width: 16px; height: 16px; }
    .games-table .btn-icon { width: 44px; }
}

/* ═══ Kopfleiste auf schmalen Bildschirmen ═══
   Marke, Erwähnungen, Admin (nur Icon), Konto und Menü-Button müssen in die Kapsel passen;
   Hilfe wandert ins Konto-Menü. */
.adm-ico { display: none; width: 16px; height: 16px; }
.tile-help { display: none !important; }
@media (max-width: 600px) {
    .topbar .help-btn { display: none; }
    .tile-help { display: flex !important; }
    #adminBtn { padding: 0; width: 44px; height: 44px; justify-content: center; position: relative; }
    #adminBtn .adm-txt { display: none; }
    #adminBtn .adm-ico { display: block; }
    #adminBtn .nav-count-badge { position: absolute; top: -4px; right: -6px; margin: 0; }
    .topbar { gap: 4px; padding-right: 6px; }
    .topbar .topright { gap: 2px; }
}
@media (max-width: 480px) {
    .brand-txt { display: none; }
}

/* ═══ Icons (Sprite aus includes/icons.php) ═══ */
.ico { width: 1.15em; height: 1.15em; flex-shrink: 0; vertical-align: -0.2em; }
.btn .ico { width: 15px; height: 15px; }
.tile .ti { display: flex; color: var(--ink-3); }
.tile .ti .ico { width: 18px; height: 18px; }
.tile:hover .ti { color: var(--ink-2); }
.nav-toggle { color: var(--ink); }
.nav-toggle .ico { display: block; width: 22px; height: 22px; margin: auto; }
.btn-seek { gap: 4px; font-variant-numeric: tabular-nums; }
/* Ziffern haben keine Unterlänge → optische Mitte liegt höher als die Zeilenmitte; Icon angleichen */
.btn-seek .ico { transform: translateY(-0.07em); }
.zoom-reset-btn .ico, .em-zoom-reset .ico, .em-loop-badge .ico { width: 13px; height: 13px; vertical-align: -2px; }
.clip-placeholder .ico { color: var(--amber); }

/* ═══ Analytics-Übersicht: Satz + Balken statt Kennzahl-Kacheln ═══ */
.an-summary { max-width: 62ch; margin-top: 6px; font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.an-summary strong { color: var(--ink); font-weight: 600; }
.an-report { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin: 28px 0 40px; }
.an-h { font-size: 22px; margin-bottom: 12px; }
.an-bars { margin: 0; }
.an-row { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 16px; padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.an-row dt { font-size: 15px; color: var(--ink-2); }
.an-row dd { margin: 0; display: grid; grid-template-columns: 1fr 52px; grid-template-areas: "bar val" "sub sub"; align-items: center; column-gap: 12px; row-gap: 4px; }
.an-bar { grid-area: bar; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--signal) var(--v), rgba(255, 255, 255, 0.08) var(--v)); }
.an-row b { grid-area: val; text-align: right; font-family: var(--font-mono); font-size: 15px; font-weight: 600; }
.an-row small { grid-area: sub; font-size: 13px; color: var(--ink-3); }
.an-links { display: flex; flex-direction: column; background: var(--smoke-bg); border: 1px solid var(--smoke-border); border-radius: var(--radius); overflow: hidden; }
.an-link { display: flex; align-items: center; gap: 16px; padding: 14px 18px; color: var(--ink); text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.an-link:last-child { border-bottom: none; }
.an-link:hover { background: rgba(255, 255, 255, 0.04); }
.an-link-txt { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.an-link-txt b { font-size: 16px; font-weight: 600; }
.an-link-txt span { font-size: 14px; color: var(--ink-2); }
.an-link .ico { color: var(--ink-3); }
@media (max-width: 800px) {
    .an-report { grid-template-columns: 1fr; gap: 28px; }
    .an-row { grid-template-columns: 1fr; gap: 6px; }
}

/* ═══ Spielansicht: Steuerung einfarbig, nur Play hervorgehoben ═══ */
.media-controls .btn-play.paused { background: var(--maroon-2) !important; border-color: rgba(255, 150, 150, 0.28) !important; color: #fff !important; }

/* ═══ Barrierefreiheit ═══ */
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 300; padding: 10px 16px; border-radius: 999px; background: var(--signal); color: #1c1406; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ═══ Safe Areas (Notch, Statusleiste, Home-Indikator) ═══
   Mit viewport-fit=cover (layout.php) reicht die Seite bis unter Notch/Statusleiste.
   Im normalen Safari/Desktop sind alle env()-Werte 0 → keine Änderung. */
body {
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}
.topbar {
    top: calc(12px + env(safe-area-inset-top, 0px));
    margin-top: calc(12px + env(safe-area-inset-top, 0px));
}
.cookie-banner {
    padding-left: max(1rem, env(safe-area-inset-left, 0px));
    padding-right: max(1rem, env(safe-area-inset-right, 0px));
}

/* Schmale Bildschirme: Topbar-Menüs (Admin 326px, Erwähnungen 308px) an der Kapsel statt am
   jeweiligen Button verankern, damit sie nicht links aus dem Bildschirm ragen. */
@media (max-width: 480px) {
    .topbar .menu-wrap { position: static; }
    .topbar .menu-wide, .topbar .menu-mentions { left: 0; right: 0; width: auto; min-width: 0; max-width: none; }
    .topbar .menu { max-width: 100%; }
}

/* ═══ Touch-Geräte (grobe Zeiger) ═══
   Steht bewusst am Dateiende, damit es die Glas-Overrides oben schlägt.
   Desktop mit Maus (fine pointer) bleibt unverändert. */
@media (pointer: coarse) {
    /* Tap-Ziele mindestens 44 px (Apple HIG) – per min-height/padding, Schriftgrößen bleiben */
    .btn, .btn-sm, .chip, .menu .mi, .nav a, .multi-check-toggle, .fsel-btn, .fo, .tile, .tab-btn, .an-tab,
    .multi-check-panel label {
        min-height: 44px;
    }
    .btn, .btn-sm, .chip, .tab-btn, .an-tab { display: inline-flex; align-items: center; }
    .menu .mi, .nav a, .fo { display: flex; align-items: center; }
    .iconbtn, button.avatar, .nav-toggle { min-width: 44px; min-height: 44px; }
    .iconbtn, button.avatar { width: 44px; height: 44px; }
    .iconbtn .dot { top: 10px; right: 10px; }
    .mention-item { min-height: 44px; }
    .topbar .topright { gap: 2px; }

    /* Eingaben mit 16 px, sonst zoomt iOS beim Fokus in die Seite */
    .form-control, .inp, select, textarea, input { font-size: 16px; }

    /* Kein Doppeltipp-Zoom / Tap-Verzögerung auf Bedienelementen */
    a, button, .btn, [onclick], label, summary { touch-action: manipulation; }

    /* Statt Hover: dezentes Feedback beim Drücken */
    a, button, .btn, .iconbtn, .chip, .menu .mi, .nav a, .tile { -webkit-tap-highlight-color: transparent; }
    .btn:active, .iconbtn:active, .chip:active, .menu .mi:active, .nav a:active, .tile:active,
    .fo:active, .tab-btn:active, .an-tab:active, button.avatar:active { opacity: 0.7; }
}
/* Schmale Telefone: Topbar-Kapsel hat sonst nicht Platz für Marke + vier 44-px-Ziele */
@media (pointer: coarse) and (max-width: 400px) {
    .topbar { gap: 4px; }
}
@media (pointer: coarse) and (max-width: 340px) {
    .brand-txt { display: none; }
}

/* Ohne Hover (Touch): Tastatur-Hilfe ist ohne Tastatur nutzlos */
@media (hover: none) {
    .shortcuts-hint-btn { display: none !important; }
}
main:focus { outline: none; }

/* Playlist-/Share-Zeilen */
.queue-item .drag-handle { display: inline-flex; cursor: grab; }
.queue-item .drag-handle .ico { width: 18px; height: 18px; }
.queue-info .ico { width: 13px; height: 13px; vertical-align: -2px; }
.btn-remove:hover { color: var(--red); }
#watchCenterBtn .ico { width: 34px; height: 34px; }
.gw-btn-round .ico { width: 20px; height: 20px; display: block; margin: auto; }

/* Kachel-Menüs (Admin + Konto): gleiche Optik, ungerade letzte Kachel über volle Breite */
.menu-wide .tiles + .menu-eyebrow { padding-top: 12px; }
.menu-wide .tiles > .tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
.tile { font-size: 14px; }
.menu .mi-logout { display: flex; align-items: center; gap: 8px; padding: 10px 12px; font-size: 15px; }
.menu-wide { min-width: 360px; }
.tile { white-space: nowrap; }
/* Vereinslogo statt Anfangsbuchstabe (Kopfzeile + Vorschau in den Vereins-Einstellungen) */
.brand .glyph.has-logo { background: #fff; padding: 3px; overflow: hidden; }
.brand .glyph.has-logo img, .club-logo-preview img { width: 100%; height: 100%; object-fit: contain; display: block; }
.club-logo-preview {
    width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0; overflow: hidden;
    display: grid; place-items: center; padding: 5px;
    background: #fff; color: #7a1d1d; font-family: var(--font-display); font-weight: 800; font-size: 24px;
}
