* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, sans-serif;
    background: #0b0d10;
    color: white;

    display: flex;
    justify-content: center;
    align-items: center;
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 30px;
}

.brand {
    text-align: center;
    margin-bottom: 35px;
}

.brand h1 {
    font-size: 46px;
    letter-spacing: 6px;
    margin: 0;
}

.brand p {
    margin-top: 8px;
    font-size: 12px;
    letter-spacing: 3px;
    color: #8d949e;
}

.login-box {
    background: #15191f;
    padding: 32px;
    border-radius: 18px;
    border: 1px solid #252a32;
}

.login-box h2 {
    margin-top: 0;
    margin-bottom: 8px;
}

.login-info {
    color: #8d949e;
    font-size: 14px;
    margin-bottom: 28px;
}

label {
    display: block;
    font-size: 13px;
    margin-bottom: 7px;
}

input {
    width: 100%;
    padding: 14px;
    margin-bottom: 20px;

    background: #0d1014;
    color: white;

    border: 1px solid #303640;
    border-radius: 10px;
    outline: none;
}

input:focus {
    border-color: white;
}

button {
    width: 100%;
    padding: 14px;

    background: white;
    color: #111111;

    border: none;
    border-radius: 10px;

    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
}

button:hover {
    opacity: 0.85;
}

.register {
    text-align: center;
    font-size: 12px;
    color: #8d949e;
    margin-top: 22px;
}

.register span {
    color: white;
    font-weight: bold;
}
.hidden {
    display: none !important;
}
/* =========================
   MELYRO DASHBOARD
   ========================= */

.dashboard {
    width: 100%;
    min-height: 100vh;
    background: #0b0d10;
    color: white;
    padding-bottom: 100px;
}

.dashboard-header {
    height: 90px;
    padding: 0 5%;
    border-bottom: 1px solid #222831;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dashboard-brand h1 {
    margin: 0;
    font-size: 24px;
    letter-spacing: 5px;
}

.dashboard-brand p {
    margin: 5px 0 0;
    color: #747c87;
    font-size: 8px;
    letter-spacing: 2px;
}

.player-small {
    display: flex;
    align-items: center;
    gap: 12px;
}

.player-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;

    background: white;
    color: #111;

    display: flex;
    justify-content: center;
    align-items: center;

    font-weight: bold;
}

.player-header-info {
    display: flex;
    flex-direction: column;
}

.player-header-info span {
    color: #777f8a;
    font-size: 12px;
    margin-top: 3px;
}

.logout-button {
    width: auto;
    padding: 9px 14px;
    margin-left: 10px;

    background: transparent;
    color: #aab0b8;

    border: 1px solid #303640;
    border-radius: 8px;

    font-size: 12px;
}

.logout-button:hover {
    background: #1b2027;
    color: white;
}

.dashboard-content {
    width: 90%;
    max-width: 1250px;
    margin: 0 auto;
    padding-top: 55px;
}

.welcome {
    margin-bottom: 35px;
}

.eyebrow {
    color: #747c87;
    font-size: 11px;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.welcome h2 {
    margin: 0;
    font-size: 32px;
}

.welcome > p:last-child {
    color: #858d98;
    margin-top: 8px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.stat-card {
    background: #15191f;
    border: 1px solid #252a32;
    border-radius: 15px;
    padding: 22px;
}

.stat-card > span {
    color: #747c87;
    font-size: 10px;
    letter-spacing: 1.5px;
}

.stat-card strong {
    display: block;
    font-size: 30px;
    margin-top: 14px;
}

.stat-card strong small {
    font-size: 13px;
    color: #858d98;
}

.stat-card p {
    margin-bottom: 0;
    color: #747c87;
    font-size: 11px;
}

.analysis-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.analysis-card {
    background: #15191f;
    border: 1px solid #252a32;
    border-radius: 15px;
    padding: 24px;
}

.card-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.card-heading span {
    color: #747c87;
    font-size: 9px;
    letter-spacing: 1.5px;
}

.card-heading h3 {
    margin: 5px 0 0;
    font-size: 20px;
}

.demo-badge {
    padding: 6px 9px;
    border: 1px solid #343b45;
    border-radius: 6px;
}

.heatmap-placeholder {
    min-height: 290px;
    border: 1px dashed #343b45;
    border-radius: 12px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    color: #5f6772;
}

.heatmap-placeholder span {
    font-size: 20px;
    letter-spacing: 4px;
}

.heatmap-placeholder small {
    margin-top: 10px;
}

.match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 25px 0;
    border-top: 1px solid #252a32;
    border-bottom: 1px solid #252a32;
}

.match-teams span {
    color: #5f6772;
    font-size: 12px;
}

.match-details > div {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #222831;
}

.match-details span {
    color: #747c87;
    font-size: 9px;
    letter-spacing: 1px;
}

.match-details strong {
    font-size: 12px;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;

    width: 100%;
    height: 70px;

    background: #11151a;
    border-top: 1px solid #252a32;

    display: flex;
    justify-content: center;
    gap: 70px;

    z-index: 10;
}

.nav-item {
    width: auto;
    background: transparent;
    color: #626a75;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 4px;
    padding: 0 12px;

    font-size: 10px;
}

.nav-item span {
    font-size: 18px;
}

.nav-item.active {
    color: white;
}

.nav-item:hover {
    opacity: 1;
    color: white;
}
/* =========================
   MELYRO BASKETBALL COURT
   ========================= */

.basketball-court {
    --line: #8f98a3;

    position: relative;
    width: 100%;
    aspect-ratio: 28 / 15;

    background:
        linear-gradient(
            90deg,
            rgba(255,255,255,0.018) 50%,
            transparent 50%
        ),
        #171c22;

    border: 2px solid var(--line);
    border-radius: 7px;

    overflow: hidden;
}


/* ---------- MITTE ---------- */

.center-line {
    position: absolute;
    left: 50%;
    top: 0;

    height: 100%;
    width: 2px;

    background: var(--line);

    transform: translateX(-50%);
}

.center-circle {
    position: absolute;

    left: 50%;
    top: 50%;

    width: 12.8%;
    aspect-ratio: 1 / 1;

    border: 2px solid var(--line);
    border-radius: 50%;

    transform: translate(-50%, -50%);
}


/* ---------- ZONEN ---------- */

.paint {
    position: absolute;

    top: 30.5%;

    width: 20.7%;
    height: 39%;

    border-top: 2px solid var(--line);
    border-bottom: 2px solid var(--line);
}

.paint.left {
    left: 0;
    border-right: 2px solid var(--line);
}

.paint.right {
    right: 0;
    border-left: 2px solid var(--line);
}


/* ---------- FREIWURFKREISE ---------- */

.free-throw-circle {
    position: absolute;

    top: 50%;

    width: 12.8%;
    aspect-ratio: 1 / 1;

    border: 2px solid var(--line);
    border-radius: 50%;

    transform: translateY(-50%);
}

.free-throw-circle.left {
    left: 14.3%;
}

.free-throw-circle.right {
    right: 14.3%;
}


/* ---------- DREIERLINIEN: GERADE ECKEN ---------- */

.three-straight {
    position: absolute;

    width: 13%;
    height: 2px;

    background: var(--line);
}

.three-straight.top {
    top: 6%;
}

.three-straight.bottom {
    bottom: 6%;
}

.three-straight.left {
    left: 0;
}

.three-straight.right {
    right: 0;
}


/* ---------- DREIERBOGEN ---------- */

.three-arc {
    position: absolute;

    top: 6%;

    width: 27%;
    height: 88%;

    border: 2px solid var(--line);
}

.three-arc.left {
    left: -13.8%;

    border-left: 0;
    border-radius: 0 50% 50% 0;
}

.three-arc.right {
    right: -13.8%;

    border-right: 0;
    border-radius: 50% 0 0 50%;
}


/* ---------- BRETTER ---------- */

.backboard {
    position: absolute;

    top: 43%;

    width: 2px;
    height: 14%;

    background: white;

    z-index: 4;
}

.backboard.left {
    left: 5.6%;
}

.backboard.right {
    right: 5.6%;
}


/* ---------- KÖRBE ---------- */

.basket {
    position: absolute;

    top: 50%;

    width: 10px;
    height: 10px;

    border: 2px solid white;
    border-radius: 50%;

    transform: translateY(-50%);

    z-index: 5;
}

.basket.left {
    left: 7%;
}

.basket.right {
    right: 7%;
}


/* ---------- NO-CHARGE / RESTRICTED AREA ---------- */

.restricted-area {
    position: absolute;

    top: 43%;

    width: 5%;
    height: 14%;

    border-top: 2px solid var(--line);
    border-bottom: 2px solid var(--line);
}

.restricted-area.left {
    left: 5.6%;

    border-right: 2px solid var(--line);

    border-radius: 0 50% 50% 0;
}

.restricted-area.right {
    right: 5.6%;

    border-left: 2px solid var(--line);

    border-radius: 50% 0 0 50%;
}


/* ---------- SPIELER ---------- */

.player-dot {
    position: absolute;

    left: 50%;
    top: 50%;

    width: 14px;
    height: 14px;

    background: white;

    border: 2px solid #171c22;
    border-radius: 50%;

    transform: translate(-50%, -50%);

    box-shadow:
        0 0 5px white,
        0 0 14px rgba(255,255,255,0.65);

    z-index: 20;
}
@media (max-width: 850px) {

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .analysis-grid {
        grid-template-columns: 1fr;
    }

    .player-header-info {
        display: none;
    }

    .bottom-nav {
        gap: 20px;
    }
}
/* =========================
   MELYRO LOGO
   ========================= */

.login-logo {
    width: 110px;
    height: auto;
    display: block;

    margin: 0 auto 18px;
filter: brightness(0) invert(1);
}

.dashboard-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.dashboard-logo {
    width: 48px;
    height: auto;
    display: block;
filter: brightness(0) invert(1);
}
/* =========================
   MELYRO HEATMAP
   ========================= */

#heatmapCanvas {
    position: absolute;

    left: 0;
    top: 0;

    width: 100%;
    height: 100%;

    z-index: 2;

    pointer-events: none;
}
/* ========================================
   MELYRO - FIBA BASKETBALL COURT
   ======================================== */

.basketball-court {
    position: relative;
    width: 100%;
    aspect-ratio: 28 / 15;
    background: #171c22;
    overflow: hidden;
    border-radius: 8px;
}

/* Neue SVG-Court-Linien */
.court-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

/* Normale Spielfeldlinien */
.court-stroke {
    fill: none;
    stroke: rgba(255, 255, 255, 0.72);
    stroke-width: 10;
    vector-effect: non-scaling-stroke;
}

/* Backboards */
.court-board {
    fill: none;
    stroke: rgba(255, 255, 255, 0.95);
    stroke-width: 12;
    vector-effect: non-scaling-stroke;
}

/* Ringe */
.court-rim {
    fill: none;
    stroke: #ffffff;
    stroke-width: 10;
    vector-effect: non-scaling-stroke;
}

/* Heatmap liegt UNTER den Court-Linien */
#heatmapCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}
/* =========================================
   MELYRO REPLAY CONTROLS
   ========================================= */

.replay-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    margin: 0 24px 16px 24px;
    padding: 12px 14px;

    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}

.replay-button {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;

    padding: 9px 14px;
    border-radius: 7px;

    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;

    cursor: pointer;
    transition: 0.2s ease;
}

.replay-button:hover {
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(255, 255, 255, 0.25);
}

.replay-status {
    display: flex;
    align-items: center;
    gap: 8px;

    color: #8290a5;
    font-size: 11px;
    letter-spacing: 0.04em;
}

.replay-status strong {
    color: #ffffff;
    font-weight: 600;
}

.replay-divider {
    opacity: 0.45;
}
.basketball-court {
    position: relative;
}

#replayCanvas {
    position: absolute;

    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    width: 100% !important;
    height: 100% !important;

    z-index: 999;
    pointer-events: none;
}
/* =========================================
   REPLAY BUTTON – MELYRO
   ========================================= */

#replayButton {
    height: 38px;
    padding: 0 22px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    background: rgba(110, 203, 255, 0.08);
    border: 1px solid rgba(110, 203, 255, 0.35);
    border-radius: 8px;

    color: #d9f2ff;

    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.2px;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.15s ease;
}

#replayButton:hover {
    background: rgba(110, 203, 255, 0.14);
    border-color: rgba(110, 203, 255, 0.65);
}

#replayButton:active {
    transform: scale(0.98);
}
/* =========================================
   PROFIL – MELYRO
   ========================================= */

.profile-page {
    margin-top: 24px;
    padding-bottom: 100px;
}

.profile-header {
    margin-bottom: 20px;
}

.profile-eyebrow {
    display: block;
    margin-bottom: 6px;

    font-size: 11px;
    letter-spacing: 1.5px;

    color: #8290a8;
}

.profile-header h2 {
    margin: 0;

    font-size: 24px;
    font-weight: 700;

    color: #ffffff;
}

.profile-header p {
    margin: 6px 0 0;

    font-size: 13px;
    color: #8290a8;
}


/* PROFIL KARTE */

.profile-card {
    background: #14191f;
    border: 1px solid #29313b;
    border-radius: 14px;

    padding: 24px;
}


/* FELDER */

.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.profile-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-field label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;

    color: #8290a8;
}

.profile-field input,
.profile-field select {
    width: 100%;
    box-sizing: border-box;

    height: 44px;
    padding: 0 13px;

    background: #0f141a;
    border: 1px solid #303945;
    border-radius: 8px;

    color: #ffffff;
    font-size: 14px;

    outline: none;

    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}

.profile-field input:focus,
.profile-field select:focus {
    border-color: #6ecbff;
    background: #111820;
}

.profile-field input::placeholder {
    color: #566274;
}


/* SPEICHERN */

.profile-actions {
    display: flex;
    align-items: center;
    gap: 14px;

    margin-top: 24px;
    padding-top: 20px;

    border-top: 1px solid #252d36;
}

#saveProfileButton {
    height: 40px;
    padding: 0 20px;

    background: rgba(110, 203, 255, 0.10);
    border: 1px solid rgba(110, 203, 255, 0.40);
    border-radius: 8px;

    color: #d9f2ff;

    font-size: 13px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.15s ease;
}

#saveProfileButton:hover {
    background: rgba(110, 203, 255, 0.17);
    border-color: rgba(110, 203, 255, 0.70);
}

#saveProfileButton:active {
    transform: scale(0.98);
}

#profileSaveStatus {
    font-size: 12px;
    color: #6ecbff;
}


/* KLEINERE DISPLAYS */

@media (max-width: 700px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }
}
/* =========================================
   SEITENSTEUERUNG
   ========================================= */

/* =========================================
   APP SEITEN
   ========================================= */

.page-hidden {
    display: none !important;
}
/* =========================================
   SPIELE
   ========================================= */

.games-page {
    margin-top: 24px;
    padding-bottom: 100px;
}

.games-header {
    margin-bottom: 20px;
}

.games-eyebrow {
    display: block;
    margin-bottom: 6px;
    font-size: 11px;
    letter-spacing: 1.5px;
    color: #8290a8;
}

.games-header h2 {
    margin: 0;
    font-size: 24px;
    color: #ffffff;
}

.games-header p {
    margin: 6px 0 0;
    font-size: 13px;
    color: #8290a8;
}

.games-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.games-empty {
    padding: 40px 24px;
    text-align: center;

    background: #14191f;
    border: 1px solid #29313b;
    border-radius: 14px;
}

.games-empty span {
    font-size: 10px;
    letter-spacing: 1.4px;
    color: #8290a8;
}

.games-empty h3 {
    margin: 10px 0 6px;
    color: #ffffff;
}

.games-empty p {
    margin: 0;
    font-size: 13px;
    color: #8290a8;
}
/* =========================================
   GESPEICHERTE SPIELE
   ========================================= */

.game-card {
    padding: 22px;
    background: #14191f;
    border: 1px solid #29313b;
    border-radius: 14px;
}

.game-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.game-type {
    font-size: 10px;
    letter-spacing: 1.4px;
    color: #8290a8;
}

.game-card-header h3 {
    margin: 5px 0 0;
    font-size: 20px;
    color: #ffffff;
}

.game-duration {
    font-size: 12px;
    color: #8290a8;
}

.game-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.game-stats > div {
    padding: 14px;
    background: #101419;
    border: 1px solid #252c35;
    border-radius: 10px;
}

.game-stats span {
    display: block;
    margin-bottom: 6px;
    font-size: 9px;
    letter-spacing: 1px;
    color: #8290a8;
}

.game-stats strong {
    font-size: 16px;
    color: #ffffff;
}
/* =========================================
   MEIN TEAM
   ========================================= */
.team-page { padding: 34px 5vw 120px; }
.team-header { display:flex; justify-content:space-between; gap:20px; align-items:flex-start; margin-bottom:24px; }
.team-eyebrow,.team-section-heading span:first-child { font-size:10px; letter-spacing:1.7px; color:#7d899b; font-weight:700; }
.team-header h2,.team-section-heading h3 { margin:5px 0 4px; color:#fff; }
.team-header p { margin:0; color:#8290a8; }
.team-season-badge,.team-count { border:1px solid #2b333e; background:#11161c; color:#aab5c4; padding:9px 12px; border-radius:8px; font-size:10px; letter-spacing:1px; white-space:nowrap; }
.team-summary-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-bottom:30px; }
.team-summary-card,.team-player-card,.attendance-card { background:#101419; border:1px solid #252c35; border-radius:12px; }
.team-summary-card { padding:18px; }
.team-summary-card span,.attendance-card span { display:block; color:#8290a8; font-size:9px; letter-spacing:1.2px; margin-bottom:8px; }
.team-summary-card strong { display:block; color:#fff; font-size:19px; }
.team-summary-card p,.attendance-card p { margin:5px 0 0; color:#758195; font-size:12px; }
.team-section-heading { display:flex; justify-content:space-between; align-items:end; gap:16px; margin:8px 0 14px; }
.team-roster { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.team-player-card { display:flex; align-items:center; gap:12px; padding:14px; }
.team-player-card.is-me { border-color:#6e43ff; box-shadow:0 0 0 1px rgba(110,67,255,.18) inset; }
.team-player-avatar { width:42px; height:42px; border-radius:50%; display:grid; place-items:center; background:#202731; color:#fff; font-weight:800; flex:0 0 auto; }
.team-player-card.is-me .team-player-avatar { background:#6e43ff; }
.team-player-info { min-width:0; flex:1; }
.team-player-info strong { display:block; color:#fff; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.team-player-info span { display:block; color:#7f8b9e; font-size:11px; margin-top:3px; }
.team-player-number { color:#687589; font-size:12px; font-weight:700; }
.team-training-heading { margin-top:32px; }
.team-attendance-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.attendance-card { padding:17px; border-left:3px solid #4a5665; }
.attendance-card.yes { border-left-color:#36c98f; }.attendance-card.no { border-left-color:#e25d68; }.attendance-card.open { border-left-color:#d6ad4b; }
.attendance-card strong { color:#fff; font-size:24px; }
.team-player-note { margin-top:12px; color:#758195; font-size:11px; }
@media (max-width:850px){.team-roster{grid-template-columns:repeat(2,1fr)}.team-summary-grid{grid-template-columns:1fr}.team-attendance-grid{grid-template-columns:1fr}}
@media (max-width:560px){.team-page{padding:24px 18px 110px}.team-header{flex-direction:column}.team-roster{grid-template-columns:1fr}.team-section-heading{align-items:flex-start;flex-direction:column}}


/* =========================================
   PROFIL-TRIGGER IM HEADER
   ========================================= */
.player-profile-trigger {
    display:flex;
    align-items:center;
    gap:10px;
    padding:4px 6px;
    border:0;
    border-radius:10px;
    background:transparent;
    color:inherit;
    font:inherit;
    text-align:left;
    cursor:pointer;
}
.player-profile-trigger:hover { background:#171d24; }
.player-profile-trigger:focus-visible { outline:2px solid #6e43ff; outline-offset:2px; }

/* =========================================
   MEINE LEISTUNGEN
   ========================================= */
.performance-page { padding:34px 5vw 120px; }
.performance-header { display:flex; justify-content:space-between; align-items:flex-start; gap:20px; margin-bottom:24px; }
.performance-eyebrow,.performance-panel-heading span:first-child,.performance-section-heading span:first-child {
    display:block; font-size:10px; letter-spacing:1.7px; color:#7d899b; font-weight:700;
}
.performance-header h2,.performance-panel-heading h3,.performance-section-heading h3 { margin:5px 0 4px; color:#fff; }
.performance-header p,.performance-section-heading p { margin:0; color:#8290a8; font-size:13px; }
.performance-period,.performance-unit {
    border:1px solid #2b333e; background:#11161c; color:#aab5c4; padding:9px 12px;
    border-radius:8px; font-size:10px; letter-spacing:1px; white-space:nowrap;
}
.performance-kpi-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-bottom:18px; }
.performance-kpi,.performance-panel,.performance-game-row {
    background:#101419; border:1px solid #252c35; border-radius:12px;
}
.performance-kpi { padding:18px; }
.performance-kpi.highlight { border-color:#6e43ff; box-shadow:0 0 0 1px rgba(110,67,255,.14) inset; }
.performance-kpi span { display:block; color:#8290a8; font-size:9px; letter-spacing:1.2px; margin-bottom:8px; }
.performance-kpi strong { display:block; color:#fff; font-size:22px; }
.performance-kpi p { margin:6px 0 0; color:#758195; font-size:11px; }
.performance-layout { display:grid; grid-template-columns:1.6fr 1fr; gap:14px; }
.performance-panel { padding:20px; min-width:0; }
.performance-panel-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; margin-bottom:18px; }
.performance-chart {
    height:230px; display:flex; align-items:flex-end; gap:12px; padding:28px 10px 0;
    border-left:1px solid #252c35; border-bottom:1px solid #252c35;
    background:linear-gradient(to top, rgba(255,255,255,.025), transparent);
}
.performance-bar-wrap { flex:1; height:100%; display:flex; flex-direction:column; justify-content:flex-end; align-items:center; gap:6px; min-width:0; }
.performance-bar { width:min(52px,72%); min-height:18px; border-radius:7px 7px 2px 2px; background:#3a4656; }
.performance-bar.latest { background:#6e43ff; box-shadow:0 0 20px rgba(110,67,255,.25); }
.performance-bar-value { color:#9ba7b7; font-size:10px; }
.performance-chart-labels { display:flex; gap:12px; padding:8px 10px 0; }
.performance-chart-labels span { flex:1; text-align:center; color:#697588; font-size:10px; }
.personal-best-list { display:grid; gap:10px; }
.personal-best-list > div { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:13px 0; border-bottom:1px solid #242b34; }
.personal-best-list > div:last-child { border-bottom:0; }
.personal-best-list span { color:#7f8b9e; font-size:12px; }
.personal-best-list strong { color:#fff; font-size:15px; }
.performance-section-heading { display:flex; justify-content:space-between; align-items:end; gap:18px; margin:30px 0 12px; }
.performance-section-heading p { max-width:420px; text-align:right; }
.performance-games { display:grid; gap:10px; }
.performance-game-row {
    display:grid; grid-template-columns:1.35fr repeat(4,1fr); gap:12px; align-items:center; padding:15px 17px;
}
.performance-game-row > div:not(.performance-game-date) span,.performance-game-date span {
    display:block; color:#748094; font-size:8px; letter-spacing:1px; margin-bottom:5px;
}
.performance-game-row strong { color:#fff; font-size:13px; }
.performance-demo-note {
    padding:10px 12px; border:1px dashed #394352; border-radius:9px; color:#7f8b9e;
    font-size:10px; letter-spacing:.5px;
}
@media (max-width:900px){
    .performance-kpi-grid{grid-template-columns:repeat(2,1fr)}
    .performance-layout{grid-template-columns:1fr}
    .performance-game-row{grid-template-columns:1.3fr repeat(2,1fr)}
    .performance-game-row > div:nth-child(4),.performance-game-row > div:nth-child(5){display:none}
}
@media (max-width:560px){
    .performance-page{padding:24px 18px 110px}
    .performance-header,.performance-section-heading{flex-direction:column;align-items:flex-start}
    .performance-section-heading p{text-align:left}
    .performance-kpi-grid{grid-template-columns:1fr 1fr}
    .performance-kpi strong{font-size:18px}
    .performance-chart{height:190px;gap:7px}
    .performance-game-row{grid-template-columns:1.4fr 1fr}
    .performance-game-row > div:nth-child(n+3){display:none}
}

/* SPIELER PRO – Performance Archiv & Detail */
.season-heading{margin-top:38px}.season-select{background:#101419;color:#dce4ef;border:1px solid #303946;border-radius:8px;padding:9px 12px}
.performance-game-button{width:100%;color:inherit;text-align:left;font:inherit;cursor:pointer;grid-template-columns:1.35fr repeat(4,1fr) 26px}
.performance-game-button:hover{border-color:#6e43ff;background:#131820}.performance-game-date small{display:block;color:#6f7b8e;font-size:10px;margin-top:4px}.performance-open-arrow{font-size:25px!important;color:#6e43ff!important;text-align:right}
.performance-detail-page{padding:30px 5vw 120px}.performance-detail-topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px}.detail-back-button{border:1px solid #303946;background:#101419;color:#dce4ef;padding:9px 12px;border-radius:8px;cursor:pointer}.pro-badge{font-size:9px;letter-spacing:1.3px;color:#bcaeff;border:1px solid #6e43ff;border-radius:999px;padding:7px 10px}
.performance-detail-header span{font-size:9px;letter-spacing:1.5px;color:#7c899d}.performance-detail-header h2{margin:5px 0;color:#fff}.performance-detail-header p{margin:0;color:#8290a8}
.performance-detail-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:22px 0}.performance-detail-kpis article{background:#101419;border:1px solid #252c35;border-radius:11px;padding:16px}.performance-detail-kpis span{display:block;color:#748094;font-size:9px;letter-spacing:1px}.performance-detail-kpis strong{display:block;color:#fff;font-size:20px;margin-top:7px}
.performance-detail-panel{background:#101419;border:1px solid #252c35;border-radius:12px;padding:20px}.detail-hint{color:#7f8b9e;font-size:11px}
.pro-heatmap-shell{display:flex;justify-content:center;width:100%;padding:8px 0 2px;overflow:hidden}
.performance-locked-court{width:min(100%,900px);margin:0 auto}
.performance-locked-court #performanceHeatmapCanvas{position:absolute;inset:0;width:100%;height:100%;z-index:2;pointer-events:none}
.performance-locked-court #performanceReplayCanvas{position:absolute;inset:0;width:100%;height:100%;z-index:4;pointer-events:none}.pro-replay-controls{display:grid;grid-template-columns:auto auto 1fr;gap:12px;align-items:center;margin-top:14px}.pro-replay-controls button{background:#6e43ff;color:#fff;border:0;border-radius:8px;padding:10px 13px;cursor:pointer}.pro-replay-controls span{color:#d9e1ec;font-size:12px}
@media(max-width:900px){.performance-detail-kpis{grid-template-columns:repeat(2,1fr)}.performance-game-button{grid-template-columns:1.35fr repeat(2,1fr) 22px}.performance-game-button>div:nth-child(4),.performance-game-button>div:nth-child(5){display:none}}
@media(max-width:560px){.performance-detail-page{padding:24px 18px 110px}.performance-detail-kpis{grid-template-columns:1fr 1fr}.pro-replay-controls{grid-template-columns:1fr auto}.pro-replay-controls input{grid-column:1/-1}.performance-game-button{grid-template-columns:1.5fr 1fr 20px}.performance-game-button>div:nth-child(n+3):not(.performance-open-arrow){display:none}}

/* V1.2: PRO-Analyse nutzt EXAKT den bereits LOCKED FIBA-Court.
   Keine zweite Court-Geometrie mehr. */
.pro-court,.pro-midline,.pro-center-circle,.pro-paint,.pro-three{display:none!important}
@media(max-width:1000px){.performance-locked-court{width:min(100%,760px)}}
@media(max-width:560px){.pro-heatmap-shell{overflow-x:auto;justify-content:flex-start}.performance-locked-court{width:680px;min-width:680px}}

/* V1.4 LOCKED replay reference: fixed heatmap + moving blue player only */
.performance-locked-court #performanceReplayCanvas{
 position:absolute;inset:0;width:100%;height:100%;z-index:5;pointer-events:none
}
.locked-replay-controls{
 grid-template-columns:minmax(220px,1fr) auto;
 max-width:900px;margin:14px auto 0;
 background:#151a20;border:1px solid #29313b;border-radius:10px;padding:12px 14px
}
.locked-replay-controls input{grid-column:1/-1;width:100%}
.locked-replay-clock{display:flex;align-items:center;gap:14px;color:#91a7c4;font-size:11px}
.locked-game-time-label{padding-left:12px;border-left:1px solid #39424d;color:#9ba8b9}
.locked-game-time-label b{color:#fff;margin-left:5px}


/* V1.7 – Meine Leistungen verwendet exakt die Dashboard-Heatmap-Sprache */
.dashboard-unified-heatmap{
    padding: 0 0 22px 0;
    overflow: hidden;
}
.dashboard-unified-heatmap .card-heading{
    padding: 20px 24px 0 24px;
}
.dashboard-unified-heatmap .performance-dashboard-replay{
    margin: 0 24px 16px 24px;
}
.dashboard-unified-heatmap .performance-dashboard-replay .replay-button{
    flex: 1 1 auto;
    text-align: center;
}
.dashboard-unified-heatmap .dashboard-court-shell{
    width: auto;
    padding: 0;
    margin: 0 24px;
    display: block;
    overflow: hidden;
}
.dashboard-unified-heatmap .performance-locked-court{
    width: 100%;
    max-width: none;
    margin: 0;
}
@media(max-width:560px){
    .dashboard-unified-heatmap .dashboard-court-shell{
        margin:0 12px;
        overflow-x:auto;
    }
    .dashboard-unified-heatmap .performance-dashboard-replay{
        margin:0 12px 12px 12px;
    }
}

/* V1.9 – TRUE DASHBOARD CLONE
   "Meine Leistungen" nutzt dieselbe Card-/Court-Geometrie wie das Dashboard. */
.performance-dashboard-clone{
    width: auto;
    max-width: none;
    margin: 0;
    padding: 24px; /* exakt .analysis-card */
    background: #15191f;
    border: 1px solid #252a32;
    border-radius: 15px;
}
.performance-dashboard-clone .card-heading{
    padding: 0;
    margin-bottom: 20px;
}
.performance-dashboard-clone .performance-dashboard-replay{
    margin: 0 24px 16px 24px; /* exakt .replay-controls */
}
.performance-dashboard-clone #performanceBasketballCourt{
    position: relative;
    width: 100%;
    aspect-ratio: 28 / 15;
    background: #171c22;
    overflow: hidden;
    border-radius: 8px;
}
#performanceHeatmapCanvas{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    z-index:2;
    pointer-events:none;
}
#performanceReplayCanvas{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    z-index:4;
    pointer-events:none;
}
/* Detailseite bekommt für diese Card dieselbe effektive Dashboard-Breite. */
.performance-detail-page .performance-dashboard-clone{
    width: min(100%, 900px);
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
}

/* V2.1 SPIELE – Basketball + Tracking. LOCKED Heatmap/Replay CSS untouched. */
.game-card-clickable{display:block;width:100%;text-align:left;cursor:pointer;color:inherit}
.game-card-clickable:hover{border-color:#4a5665;transform:translateY(-1px)}
.game-card-header small{display:block;margin-top:5px;color:#7f98b6}
.basketball-game-stats{display:grid;grid-template-columns:repeat(6,1fr);gap:8px;margin-top:16px}
.basketball-game-stats>div,.games-detail-boxscore article{background:#121820;border:1px solid #29323d;border-radius:9px;padding:12px;text-align:center}
.basketball-game-stats span,.tracking-game-stats span,.games-detail-boxscore span{display:block;font-size:9px;letter-spacing:.8px;color:#819dbc}
.basketball-game-stats strong,.games-detail-boxscore strong{display:block;margin-top:4px;font-size:20px;color:#fff}
.reb-highlight{border-color:#6843dc!important;background:#171426!important}
.tracking-game-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:8px}
.tracking-game-stats>div{padding:10px 12px;background:#171d24;border-radius:8px}.tracking-game-stats strong{display:block;margin-top:3px}
.game-card-footer{display:flex;justify-content:space-between;align-items:center;margin-top:13px;padding-top:11px;border-top:1px solid #27303a;color:#88a2c1;font-size:10px;letter-spacing:.7px}
.game-card-footer strong{color:#a98cff}
.games-detail-boxscore{display:grid;grid-template-columns:repeat(6,1fr);gap:10px;margin:0 0 12px}
@media(max-width:700px){.basketball-game-stats,.games-detail-boxscore{grid-template-columns:repeat(3,1fr)}.tracking-game-stats{grid-template-columns:repeat(2,1fr)}}

/* V2.2 Dashboard Boxscore + unified game source. LOCKED court/heatmap/replay untouched. */
.dashboard-boxscore-card{margin:18px 0 22px;padding:18px 20px;background:#15191f;border:1px solid #252a32;border-radius:15px}
.dashboard-boxscore-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}
.dashboard-boxscore-heading span{font-size:10px;letter-spacing:1px;color:#83a0c0}.dashboard-boxscore-heading h3{margin:3px 0 0;font-size:17px}
.dashboard-boxscore-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:8px}
.dashboard-boxscore-grid>div{background:#11161c;border:1px solid #29323d;border-radius:9px;padding:11px;text-align:center}
.dashboard-boxscore-grid span{display:block;font-size:9px;color:#819dbc;letter-spacing:.8px}.dashboard-boxscore-grid strong{display:block;margin-top:3px;font-size:20px}
@media(max-width:650px){.dashboard-boxscore-grid{grid-template-columns:repeat(3,1fr)}}

/* V2.4 PROFILE + TEAMMATE PROFILES — V2.3 LOCKED modules untouched */
.profile-season-card{margin-top:18px;background:#14191f;border:1px solid #29313b;border-radius:14px;padding:22px}.profile-season-heading{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:14px}.profile-season-heading span{font-size:10px;letter-spacing:1px;color:#8290a8}.profile-season-heading h3{margin:4px 0 0;color:#fff}.profile-season-games{border:1px solid #6041cb;border-radius:999px;padding:6px 9px;color:#a98dff!important}.profile-season-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:8px}.profile-season-grid>div{background:#10151b;border:1px solid #27303a;border-radius:9px;padding:12px;text-align:center}.profile-season-grid strong{display:block;font-size:20px;color:#fff}.profile-season-grid span{font-size:9px;color:#819dbc}.profile-season-note{margin:12px 0 0;color:#6f7e91;font-size:10px}
.team-player-card{width:100%;color:inherit;text-align:left;cursor:pointer;font:inherit}.team-player-card:hover{border-color:#45515f;transform:translateY(-1px)}.team-player-preview{display:grid;grid-template-columns:auto auto auto auto;gap:4px 5px;align-items:baseline;margin-left:auto}.team-player-preview strong{font-size:12px;color:#fff}.team-player-preview span{font-size:7px;color:#73849a;letter-spacing:.6px}.team-player-chevron{color:#6e43ff;font-size:22px;margin-left:3px}
.teammate-page{margin-top:24px;padding-bottom:100px}.teammate-back{border:0;background:transparent;color:#8fa1b7;cursor:pointer;padding:0;margin-bottom:18px}.teammate-back:hover{color:#fff}.teammate-hero{display:flex;align-items:center;gap:18px;background:#14191f;border:1px solid #29313b;border-radius:14px;padding:22px}.teammate-avatar-large{width:68px;height:68px;border-radius:50%;display:grid;place-items:center;background:#6e43ff;color:#fff;font-size:22px;font-weight:800}.teammate-identity>span,.teammate-section-heading span{font-size:10px;letter-spacing:1px;color:#8290a8}.teammate-identity h2{margin:4px 0;color:#fff}.teammate-identity p{margin:0;color:#8190a4;font-size:12px}.teammate-section-heading{display:flex;justify-content:space-between;align-items:end;margin:24px 0 10px}.teammate-section-heading h3{margin:4px 0 0}.teammate-stats-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:8px}.teammate-stats-grid article,.teammate-tracking-grid article{background:#11161c;border:1px solid #29323d;border-radius:10px;padding:14px;text-align:center}.teammate-stats-grid strong{display:block;font-size:21px}.teammate-stats-grid span,.teammate-tracking-grid span{font-size:9px;color:#819dbc;letter-spacing:.7px}.teammate-tracking-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.teammate-tracking-grid strong{display:block;margin:5px 0 2px;font-size:19px}.teammate-tracking-grid small{font-size:9px;color:#65758a}.teammate-privacy-note{margin-top:12px;color:#6f7e91;font-size:10px}
@media(max-width:800px){.profile-season-grid,.teammate-stats-grid{grid-template-columns:repeat(3,1fr)}.teammate-tracking-grid{grid-template-columns:repeat(2,1fr)}.team-player-preview{display:none}}

/* V2.5 – Nächstes Training / RSVP. Additive only; LOCKED modules untouched. */
.dashboard-training-card{margin:18px 0 22px;padding:18px 20px;background:#15191f;border:1px solid #2b323c;border-radius:15px}
.training-card-top,.training-main,.training-rsvp{display:flex;align-items:center}.training-card-top{justify-content:space-between;margin-bottom:15px}
.training-eyebrow,.training-team-state>span,.training-rsvp>div>span{display:block;font-size:9px;letter-spacing:1.1px;color:#83a0c0}
.training-card-top h3{margin:3px 0 0;font-size:19px}.training-status-pill{padding:6px 10px;border:1px solid #3b4654;border-radius:999px;font-size:9px;letter-spacing:.8px;color:#9bb0c8}
.training-status-pill[data-status="yes"]{border-color:#4c8b70;color:#8fd7b2}.training-status-pill[data-status="no"]{border-color:#8d4e58;color:#e8a3ad}
.training-main{gap:15px;padding:14px;background:#11161c;border:1px solid #29323d;border-radius:11px}
.training-date-tile{width:58px;min-width:58px;height:58px;border-radius:10px;background:#6843dc;display:flex;flex-direction:column;align-items:center;justify-content:center}
.training-date-tile strong{font-size:23px;line-height:22px}.training-date-tile span{font-size:9px;letter-spacing:1px}
.training-meta{flex:1}.training-meta strong,.training-meta span,.training-meta small{display:block}.training-meta strong{font-size:15px}.training-meta span{margin-top:4px;color:#a9b8c9;font-size:12px}.training-meta small{margin-top:3px;color:#7087a2}
.training-team-state{text-align:right}.training-team-state strong,.training-team-state small{display:block;margin-top:4px}.training-team-state strong{font-size:12px}.training-team-state small{color:#7f98b6}
.training-rsvp{justify-content:space-between;margin-top:12px;padding-top:12px;border-top:1px solid #27303a}.training-rsvp>div>strong{display:block;margin-top:3px;font-size:13px}
.training-actions{display:flex;gap:8px}.training-rsvp-btn{border:1px solid #35404d;background:#11161c;color:#dce6f2;border-radius:9px;padding:9px 16px;font-weight:700;cursor:pointer}
.training-rsvp-btn.yes.active{background:#173629;border-color:#4c8b70;color:#9be0bc}.training-rsvp-btn.no.active{background:#3b2025;border-color:#8d4e58;color:#f0abb5}
@media(max-width:720px){.training-main{align-items:flex-start;flex-wrap:wrap}.training-team-state{width:100%;text-align:left;margin-left:73px}.training-rsvp{align-items:flex-start;gap:12px;flex-direction:column}.training-actions{width:100%}.training-rsvp-btn{flex:1}}

/* DEMO V1.0 RC – final polish; existing LOCKED component rules untouched */
.dashboard-link-card{cursor:pointer;transition:transform .15s ease,border-color .15s ease,background .15s ease}
.dashboard-link-card:hover{transform:translateY(-1px);border-color:#465365}
.dashboard-link-card:focus-visible{outline:2px solid #7957ef;outline-offset:3px}
.top-settings-btn{border:1px solid #303946;background:#151a21;color:#cbd7e5;border-radius:9px;padding:8px 11px;margin-right:8px;cursor:pointer;font:inherit;font-size:11px}
.top-settings-btn:hover{border-color:#6650c8;color:#fff}
.settings-modal{position:fixed;inset:0;z-index:9999;display:flex;justify-content:flex-end}
.settings-modal.hidden{display:none!important}.settings-backdrop{position:absolute;inset:0;background:rgba(3,6,10,.7);backdrop-filter:blur(4px)}
.settings-panel{position:relative;width:min(430px,92vw);height:100%;background:#10151b;border-left:1px solid #2a333e;padding:25px;box-sizing:border-box;box-shadow:-20px 0 60px rgba(0,0,0,.35)}
.settings-head{display:flex;justify-content:space-between;align-items:flex-start;padding-bottom:20px;border-bottom:1px solid #27303a}
.settings-head span{font-size:9px;letter-spacing:1.3px;color:#8268e9}.settings-head h2{margin:4px 0 0;font-size:23px}
.settings-close{width:34px;height:34px;border-radius:9px;border:1px solid #303946;background:#171d24;color:#fff;font-size:23px;cursor:pointer}
.settings-list{margin-top:18px}.settings-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 0;border-bottom:1px solid #242d36}
.settings-row strong,.settings-row span{display:block}.settings-row>div>strong{font-size:13px}.settings-row>div>span{margin-top:4px;font-size:10px;color:#7890aa;line-height:1.45}
.settings-toggle{width:44px;height:24px;min-width:44px;border:0;border-radius:999px;background:#303944;padding:3px;cursor:pointer}.settings-toggle i{display:block;width:18px;height:18px;border-radius:50%;background:#8492a2;transition:transform .15s ease}
.settings-toggle.active{background:#6244cf}.settings-toggle.active i{transform:translateX(20px);background:#fff}
.settings-state,.settings-version{font-size:9px!important;color:#a991ff!important;border:1px solid #5b43ba;border-radius:999px;padding:5px 8px}
.settings-foot{position:absolute;bottom:24px;left:25px;color:#526579;font-size:9px;letter-spacing:1.3px}
body.settings-open{overflow:hidden}

/* DEMO V1.0 RC2 – Header identity polish */
.player-small{gap:14px;min-width:max-content}
.player-profile-trigger{gap:12px!important;padding:6px 10px!important;min-width:132px}
.player-avatar{width:44px!important;height:44px!important;min-width:44px;flex:0 0 44px}
.player-header-info{min-width:74px;line-height:1.08}
.player-header-info strong{display:block;white-space:normal;font-size:14px;line-height:1.05;max-width:88px}
.player-header-info span{white-space:nowrap;margin-top:5px!important}
.top-settings-btn{margin-right:0!important;white-space:nowrap;min-width:130px}
.logout-button{margin-left:0!important;white-space:nowrap}
@media(max-width:760px){
 .dashboard-header{padding:0 3%}
 .player-profile-trigger{min-width:auto}
 .player-header-info{display:none}
 .top-settings-btn{min-width:auto}
}

/* DEMO V1.0 – functional notification/reminder settings */
.melyro-notification-banner{display:flex;justify-content:space-between;align-items:center;margin:16px 0 -4px;padding:11px 14px;border:1px solid #3c4857;border-radius:10px;background:#141a21}
.melyro-notification-banner.hidden{display:none!important}.melyro-notification-banner span{display:block;font-size:8px;letter-spacing:1px;color:#8da8c5}.melyro-notification-banner strong{display:block;margin-top:3px;font-size:11px}
.melyro-notification-banner button{border:0;background:transparent;color:#8092a6;font-size:20px;cursor:pointer}
.training-reminder-state{margin-left:auto;margin-right:10px;padding:5px 8px;border:1px solid #4d5c6d;border-radius:999px;font-size:8px;color:#9db1c7}
.training-reminder-state[data-active="true"]{border-color:#6650c8;color:#b6a4ff}.training-reminder-disabled{border-color:#303740!important}

/* SETTINGS INTERACTION HOTFIX */
.settings-backdrop{z-index:0!important;pointer-events:auto!important}
.settings-panel{z-index:1!important;pointer-events:auto!important}
.settings-row,.settings-toggle,.settings-close{position:relative;z-index:2;pointer-events:auto!important}
.settings-toggle{cursor:pointer!important}
.settings-toggle i{pointer-events:none!important}

#melyroSettingsRoot[hidden]{display:none!important}.melyro-settings-root{position:fixed;inset:0;z-index:2147483647}.melyro-settings-shade{position:absolute;inset:0;background:rgba(2,5,9,.72)}.melyro-settings-panel{position:absolute;right:0;top:0;bottom:0;width:min(430px,94vw);background:#10151b;border-left:1px solid #2a333e;padding:28px;box-sizing:border-box;overflow:auto}.melyro-settings-head{display:flex;justify-content:space-between;padding-bottom:20px;border-bottom:1px solid #2a333e}.melyro-settings-head span{font-size:9px;color:#8b73f0}.melyro-settings-head h2{margin:5px 0 0}.melyro-settings-x{width:34px;height:34px;border:1px solid #35404d;border-radius:9px;background:#171d24;color:#fff;font-size:22px}.melyro-setting-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px 0;border-bottom:1px solid #28313b}.melyro-setting-row strong,.melyro-setting-row div span{display:block}.melyro-setting-row div span{margin-top:5px;font-size:10px;color:#7890aa}.melyro-switch{flex:0 0 46px;width:46px;height:26px;border:0;border-radius:99px;background:#303944;padding:3px;cursor:pointer}.melyro-switch i{display:block;width:20px;height:20px;border-radius:50%;background:#a0acb9;transition:.16s;pointer-events:none}.melyro-switch.on{background:#6843dc}.melyro-switch.on i{transform:translateX(20px);background:#fff}.melyro-chip{font-size:9px;color:#b6a4ff;border:1px solid #6843dc;border-radius:99px;padding:5px 8px}

/* SETTINGS HEADER FIX – restore compact original placement */
.top-settings-btn{
 position:static!important;
 width:auto!important;
 min-width:130px!important;
 max-width:none!important;
 display:inline-flex!important;
 align-items:center!important;
 justify-content:center!important;
 margin:0!important;
 padding:8px 11px!important;
 flex:0 0 auto!important;
}
#melyroSettingsRoot{z-index:2147483647!important}
#melyroSettingsRoot[hidden]{display:none!important}
/* AP1: accessible authentication and a teamless account state. */
[hidden] { display: none !important; }
.login-container { min-height: 100dvh; height: auto; padding: 24px 16px; box-sizing: border-box; }
.login-box { max-width: 440px; width: 100%; box-sizing: border-box; }
.login-box input { box-sizing: border-box; }
.login-box .auth-link { display: inline; width: auto; padding: 4px; background: transparent; color: #a7dfff; text-decoration: underline; }
.auth-hint, #authStatus { font-size: .9rem; line-height: 1.5; }
#authStatus { color: #a9ebd1; overflow-wrap: anywhere; }
#authStatus.is-error { color: #ffb4b4; }
button:disabled { cursor: not-allowed; opacity: .55; }
#teamDialog { width: min(460px, calc(100% - 32px)); max-height: 90dvh; overflow-y: auto; background: #15191f; color: white; border: 1px solid #324957; border-radius: 18px; padding: 24px; }
#teamDialog::backdrop { background: #000b; }
#teamDialog select { width: 100%; padding: 12px; background: #0d1014; color: white; border: 1px solid #303640; border-radius: 10px; }
#cancelTeam { margin-top: 12px; background: #303640; color: white; }
#teamInvitePanel { padding: 20px; border: 1px solid #324957; border-radius: 14px; margin-bottom: 20px; }
#teamJoinCode { display: block; user-select: all; overflow-wrap: anywhere; font-family: monospace; font-size: 1.1rem; }
#ownRole { display: block; color: #a9ebd1; font-size: .8rem; }
button:focus-visible, input:focus-visible { outline: 2px solid #74cfff; outline-offset: 3px; }
.onboarding-card, .team-empty-state { display: none; border: 1px solid #324957; border-radius: 18px; padding: 24px; background: #131f2a; line-height: 1.6; }
.no-team .onboarding-card, .no-team .team-empty-state { display: block; }
.onboarding-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.onboarding-actions button { padding: 12px 18px; border-radius: 10px; border: 1px solid #536779; color: #fff; background: #233447; }
.no-team #overviewPage > :not(.welcome):not(.onboarding-card),
.no-team #teamPage > :not(.team-header):not(.team-empty-state),
.no-team .team-season-badge, .no-team .profile-season-card { display: none; }
@media (max-width: 600px) {
  .login-container { justify-content: flex-start; }
  .login-box { padding: 24px; }
  .dashboard-header { flex-wrap: wrap; gap: 16px; height: auto; min-height: 90px; padding-top: 16px; padding-bottom: 16px; }
  .player-small { flex-wrap: wrap; gap: 10px; }
  .onboarding-card { padding: 20px; }
}
#coachApp{position:fixed;inset:0;width:100%;height:100dvh;border:0;z-index:200;background:#090d11}
#roleUnavailable{max-width:640px;margin:80px auto;padding:24px;color:white;background:#12171d}
#playerTrainingSelect{max-width:100%;padding:8px;background:#12171d;color:#fff;border:1px solid #34404c;border-radius:8px}
.training-overview{margin:18px 0;padding:16px;border:1px solid #34404c;border-radius:12px;min-width:0}.training-overview summary{cursor:pointer;font-weight:700;padding:8px}.training-summary{padding:16px;margin:12px 0;border:1px solid #34404c;border-radius:12px;overflow-wrap:anywhere}.training-summary p{line-height:1.5;color:#afbdd0}.training-summary button{padding:10px 16px;margin:6px 8px 0 0;border-radius:8px;background:#202a3b;color:white;border:1px solid #59677b}.training-summary button[aria-pressed=true]{background:#6040c8;border-color:#9e89ff}.training-summary button:disabled{opacity:.5}@media(max-width:480px){.training-overview,.training-summary{padding:12px}.training-summary button{min-height:44px}}

/* AP8: operative cards stay readable on small screens; demos are opt-in. */
.simulation-panel { margin: 16px 0; border: 1px solid #334155; border-radius: 16px; padding: 16px; }
.simulation-panel > summary { cursor: pointer; font-weight: 700; }
#operationalTeam, #nextTrainingCard, .team-summary-card { min-width: 0; overflow-wrap: anywhere; }
#operationalTeam h3 { margin: 8px 0; }
@media (max-width: 440px) {
  .training-main { grid-template-columns: 1fr; }
  .training-card-top, .training-rsvp { flex-wrap: wrap; gap: 12px; }
  .training-meta { min-width: 0; }
  .team-summary-grid { grid-template-columns: 1fr; }
}
