/*
 * Fanstation – globale Frontend-Anpassungen
 *
 * Wird nach assets/default.css geladen.
 * Alle eigenen Fanstation-Styles werden hier zentral gesammelt.
 */

/* ==========================================================
   GLOBAL – Länderflaggen
   ========================================================== */

/* ==========================================================
   SPIELBERICHT – SPIELÜBERSICHT UND EREIGNIS-TIMELINE
   ========================================================== */

/* Kompakte Spielübersicht und horizontale Ereignis-Timeline
 * CSP-konform: keine Inline-Styles erforderlich.
 */

.ws-match-overview {
    margin-top: 1.5rem;
    border: 1px solid var(--bs-border-color);
    background: var(--bs-body-bg);
}








.ws-match-overview-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(170px, 240px) minmax(0, 1fr);
    align-items: start;
    gap: 1rem;
    padding: 1.15rem 1.5rem .8rem;
}

.ws-match-overview-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 0;
}

.ws-match-overview-logo {
    width: 78px;
    height: 78px;
    object-fit: contain;
    margin-bottom: .4rem;
}

.ws-match-overview-team-name {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.15;
}

.ws-match-overview-center {
    text-align: center;
}

.ws-match-overview-type {
    margin-bottom: .7rem;
    font-size: .9rem;
    font-weight: 600;
}

.ws-match-overview-score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 116px;
    padding: .55rem .85rem;
    border-radius: 3px;
    background: #333;
    color: #fff;
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1;
}

.ws-match-overview-score-separator {
    padding: 0 .35rem;
}


.ws-match-overview-halftime {
    display: block;
    width: 116px;
    margin: 0 auto;
    padding: .28rem .5rem;
    border-radius: 0 0 3px 3px;
    background: var(--bs-secondary-bg);
    color: var(--bs-secondary-color);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
}


.ws-match-event-board {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    padding: .75rem 1.5rem 1.25rem;
}

.ws-match-event-labels {
    position: relative;
    height: 104px;
    padding-right: .5rem;
    font-size: .78rem;
    font-weight: 700;
}

.ws-match-event-label {
    position: absolute;
    left: 0;
    transform: translateY(-50%);
}

.ws-match-event-label-home {
    top: 31px;
}

.ws-match-event-label-guest {
    top: 75px;
}

.ws-match-event-field {
    position: relative;
    height: 104px;
    min-width: 0;
}

.ws-match-event-row {
    position: absolute;
    top: 50%;
    height: 1px;
    transform: translateY(-50%);
    background: #d97a80;
}

/* Optische Unterbrechung an der Halbzeit. */
.ws-match-event-row-first-half {
    left: 0;
    right: auto;
    width: calc(attr(data-halftime-position type(<percentage>), 50%) - 10px);
}

.ws-match-event-row-second-half {
    left: calc(attr(data-halftime-position type(<percentage>), 50%) + 10px);
    right: 0;
}

.ws-match-event-halftime-marker {
    position: absolute;
    z-index: 2;
    top: 18px;
    bottom: 18px;
    left: attr(data-position type(<percentage>), 50%);
    width: 1px;
    transform: translateX(-50%);
    border-left: 1px dashed var(--bs-border-color);
    pointer-events: none;
}

.ws-match-event-track {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 104px;
}


.ws-match-event {
    position: absolute;
    z-index: 3;
    width: 34px;
    height: 42px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    outline: none;
    cursor: help;
}

.ws-match-event-home {
    /* Gleicher Abstand zur Mittellinie wie bei den unteren Ereignissen. */
    top: 23px;
}

.ws-match-event-guest {
    top: 56px;
}

.ws-match-event:hover,
.ws-match-event:focus {
    z-index: 6;
    transform: translateX(-50%) scale(1.12);
}

.ws-match-event-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 25px;
    line-height: 1;
    font-size: 1.2rem;
}

.ws-match-event-icon {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.ws-match-event-icon-card {
    width: 15px;
    height: 23px;
}

.ws-match-event-double-card {
    position: relative;
    display: block;
    width: 24px;
    height: 24px;
}

.ws-match-event-double-card .ws-match-event-icon:first-child {
    position: absolute;
    left: 0;
    top: 0;
}

.ws-match-event-double-card .ws-match-event-icon:last-child {
    position: absolute;
    right: 0;
    bottom: 0;
}



/* Ereignisposition aus data-position.
 * CSP-konform: keine Inline-Styles und keine 91 Minutenklassen erforderlich.
 * Moderne Browser lesen den Prozentwert direkt aus dem data-Attribut.
 */
.ws-match-event,
.ws-match-event-marker {
    left: attr(data-position type(<percentage>), 0%);
}

@media (max-width: 767.98px) {
    .ws-match-overview {
        overflow-x: auto;
    }

    .ws-match-overview-header {
        grid-template-columns: 210px 180px 210px;
        min-width: 640px;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .ws-match-event-board {
        grid-template-columns: 50px 590px;
        min-width: 640px;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .ws-match-overview-logo {
        width: 62px;
        height: 62px;
    }

    .ws-match-overview-team-name {
        font-size: 1.05rem;
    }
}


/* Legende unter dem Spielverlauf. */
.ws-match-event-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    width: fit-content;
    max-width: calc(100% - 2rem);
    margin: .35rem auto 1rem;
    padding: .7rem 1rem;
    border-radius: var(--bs-border-radius);
    background: var(--bs-tertiary-bg);
    color: var(--bs-body-color);
}

.ws-match-event-legend-item {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    white-space: nowrap;
    font-size: .9rem;
}

.ws-match-event-legend-icon {
    display: block;
    width: 25px;
    height: 25px;
    object-fit: contain;
}

.ws-match-event-legend-card {
    width: 15px;
    height: 23px;
}

.ws-match-event-legend-substitution {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 25px;
    font-size: 1.35rem;
    line-height: 1;
}

@media (max-width: 767.98px) {
    .ws-match-event-legend {
        min-width: 600px;
        justify-content: center;
    }
}


/* Eigene Hover-Infobox für Timeline-Ereignisse. */
.ws-match-event-tooltip {
    position: absolute;
    z-index: 50;
    left: 50%;
    top: calc(100% + 9px);
    width: 300px;
    max-width: 78vw;
    transform: translateX(-50%);
    border: 1px solid var(--bs-border-color);
    border-radius: 6px;
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
    box-shadow: 0 .35rem .9rem rgba(0, 0, 0, .24);
    text-align: left;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity .12s ease, visibility .12s ease;
}

.ws-match-event-guest .ws-match-event-tooltip {
    top: auto;
    bottom: calc(100% + 9px);
}

.ws-match-event:hover .ws-match-event-tooltip,
.ws-match-event:focus .ws-match-event-tooltip,
.ws-match-event:focus-within .ws-match-event-tooltip {
    visibility: visible;
    opacity: 1;
}

.ws-match-event-tooltip::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -7px;
    width: 12px;
    height: 12px;
    transform: translateX(-50%) rotate(45deg);
    border-top: 1px solid var(--bs-border-color);
    border-left: 1px solid var(--bs-border-color);
    background: var(--bs-body-bg);
}

.ws-match-event-guest .ws-match-event-tooltip::before {
    top: auto;
    bottom: -7px;
    transform: translateX(-50%) rotate(225deg);
}

.ws-match-event-tooltip-head {
    padding: .5rem .6rem;
    border-bottom: 1px solid var(--bs-border-color);
    font-weight: 700;
    line-height: 1.2;
}

.ws-match-event-tooltip-body {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
    padding: .55rem .6rem;
}

.ws-match-event-tooltip-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.3;
}

.ws-match-event-tooltip-text strong {
    margin-bottom: .15rem;
}

.ws-match-event-tooltip-player {
    width: 52px;
    height: 68px;
    flex: 0 0 52px;
    object-fit: cover;
    object-position: top center;
    border-radius: 3px;
    background: var(--bs-secondary-bg);
}

.ws-match-event-tooltip-message {
    padding: 0 .6rem .6rem;
    font-size: .82rem;
    line-height: 1.3;
    color: var(--bs-secondary-color);
}

/* Das Torbild wird ausdrücklich aus img/icons/goal_scorer.png geladen. */
.ws-match-event-icon {
    object-fit: contain;
}

@media (max-width: 767.98px) {
    .ws-match-event-tooltip {
        width: 260px;
    }
}


/* Punktmarker der Ereignis-Timeline.
 * Die Marker sind unabhängig von den Aktions-Icons positioniert und
 * bleiben daher exakt mittig auf der roten Linie.
 */
.ws-match-event-marker {
    position: absolute;
    z-index: 4;
    top: 50%;
    width: 7px;
    height: 7px;
    box-sizing: border-box;
    border: 1px solid #df6f75;
    border-radius: 50%;
    background: var(--bs-body-bg);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* Der Halbzeitbereich bleibt optisch frei. */
.ws-match-event-marker.ws-match-minute-45 {
    z-index: 5;
}

/* Einheitliche Größen für Länderflaggen */
.ws-flag {
    width: 24px;
    height: 18px;
}

.ws-flag-16 {
    width: 16px;
    height: 12px;
}

.ws-flag-20 {
    width: 20px;
    height: 15px;
}

.ws-flag-24 {
    width: 24px;
    height: 18px;
}

.ws-flag-32 {
    width: 32px;
    height: 24px;
}




/* Mein Kader */

.table-vcenter td,
.table-vcenter th {
    vertical-align: middle;
}

.myteam-jersey {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 110, 253, .08);
    border: 1px solid rgba(13, 110, 253, .15);
    font-weight: bold;
    position: relative;
    overflow: hidden;
}

.myteam-jersey svg {
    position: absolute;
    inset: 0;
    opacity: .1;
}

.myteam-flag {
    width: 28px;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.skill-val {
    font-weight: 600;
    font-size: 1rem;
}

.talent-stars {
    color: #ffc107;
    white-space: nowrap;
    font-size: 0.85rem;
}

.status-icon {
    font-size: 1.2rem;
}

/* Mein Kader */

tr.myteam-contract-warning>td {
    background: #f8d7da !important;
    background-color: #f8d7da !important;


}

/* Stadion */
#stadiumTabsContent .stadium-action-box,
#stadiumTabsContent .stadium-capacity-card,
#stadiumTabsContent .stadium-maxed,
#stadiumTabsContent .stadium-upgrade-row {
    background: var(--bs-body-bg, #fff);
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: .65rem;
    padding: 1rem;
}

#stadiumTabsContent .stadium-action-box,
#stadiumTabsContent .stadium-capacity-card,
#stadiumTabsContent .stadium-maxed {
    background: var(--bs-tertiary-bg, #f8f9fa);
}

#stadiumTabsContent .stadium-upgrade-row {
    margin-bottom: .75rem;
    transition: background-color .15s ease, border-color .15s ease;
}

#stadiumTabsContent .stadium-upgrade-row:hover {
    background: var(--bs-tertiary-bg, #f8f9fa);
}

#stadiumTabsContent .stadium-stars {
    font-size: 1.15rem;
    white-space: nowrap;
}

#stadiumTabsContent .stadium-maxed {
    color: var(--bs-success, #198754);
    min-height: 90px;
}

#stadiumTabsContent .stadium-capacity-card .fs-4 {
    line-height: 1.2;
    margin: .25rem 0;
}

#stadiumTabsContent .stadium-ticket-row {
    background: var(--bs-body-bg, #fff);
}

#stadiumTabsContent .stadium-ticket-row:hover {
    background: var(--bs-tertiary-bg, #f8f9fa);
}

#stadiumTabsContent .stadium-ticket-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: .65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    background: var(--bs-tertiary-bg, #f8f9fa);
}

#stadiumTabsContent .stadium-form-card .form-control {
    min-height: 42px;
}

@media (max-width: 767.98px) {
    #stadiumTabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
    }

    #stadiumTabs .nav-link {
        white-space: nowrap;
    }
}

/* Mein Spielplan */
.myschedule-page {
    margin-bottom: 2rem;
}

.myschedule-filter-form {
    display: flex;
    align-items: end;
    gap: .75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.myschedule-filter-group {
    min-width: 190px;
}

.myschedule-filter-group .form-label {
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: .25rem;
}

.myschedule-filter-actions {
    display: flex;
    gap: .5rem;
}

.myschedule-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.myschedule-card {
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

.myschedule-card-meta {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1rem;
}

.myschedule-type-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bs-primary-bg-subtle);
    color: var(--bs-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex: 0 0 auto;
}

.myschedule-match-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
}

.myschedule-team {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-width: 0;
}

.myschedule-team-away {
    justify-content: flex-end;
    text-align: right;
}

.myschedule-team img,
.myschedule-team-placeholder {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
}

.myschedule-team img {
    object-fit: contain;
}

.myschedule-team-placeholder {
    border-radius: 50%;
    background: var(--bs-light);
    color: var(--bs-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.myschedule-team-name {
    font-weight: 700;
    text-decoration: none;
}

.myschedule-result {
    text-align: center;
    min-width: 95px;
}

.myschedule-result a {
    text-decoration: none;
}

.myschedule-result .badge {
    font-size: 1rem;
    padding: .6rem .9rem;
    border-radius: 999px;
}

.myschedule-version {
    margin-top: 1.5rem;
    text-align: right;
    font-size: .85rem;
    color: var(--bs-secondary);
}

@media (max-width: 768px) {
    .myschedule-filter-form {
        justify-content: flex-start;
    }

    .myschedule-filter-group {
        width: 100%;
    }

    .myschedule-filter-actions {
        width: 100%;
    }

    .myschedule-filter-actions .btn {
        flex: 1;
    }

    .myschedule-match-row {
        grid-template-columns: 1fr;
    }

    .myschedule-team-away {
        justify-content: flex-start;
        text-align: left;
        flex-direction: row-reverse;
    }

    .myschedule-result {
        order: 2;
        text-align: left;
    }

    .myschedule-team-away {
        order: 3;
    }
}

/* ==========================================================
   TRAINING – TRAININGSERGEBNIS
   Einheitliche Darstellung der Wertänderungen nach dem Training.
   ========================================================== */

/* Gleiche Breite für positive, negative und unveränderte Trainingswerte. */
.training-effect-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    text-align: center;
}



/* ==========================================================
   TRAINING – TRAINERFÄHIGKEITEN
   Darstellung der Effektivitätsbalken in Trainerdetails und
   beim aktuell gebuchten Trainer. Der Prozentwert steht direkt
   im Fortschrittsbalken; ein zusätzlicher Zahlenwert entfällt.
   ========================================================== */

/* Abstand zwischen Bezeichnung und Fortschrittsbalken. */
.training-trainer-skill-label {
    margin-bottom: .2rem;
}

/* Der Fortschrittsbalken nutzt die komplette verfügbare Breite. */
.training-trainer-skill-bar {
    width: 100%;
}

/* ==========================================================================\n   TRAINING – EINZELTRAINING\n   Optionaler Zusatzbereich innerhalb einer normalen Trainingseinheit.\n   Der Mannschaftstrainer beeinflusst das Einzeltraining nicht.\n   ========================================================================== */
.training-individual-box {
    padding: 1rem;
    border: 1px solid var(--bs-border-color);
    border-radius: .65rem;
    background: var(--bs-tertiary-bg);
}

/* ==========================================================
   TRAINING – AKTUELLER TRAINER
   Kompakte Trainerinformationen in der Übersichts-Karte.
   Die separate große Karte „Gebuchter Trainer“ entfällt.
   ========================================================== */
.training-current-trainer-skills {
    display: grid;
    gap: .45rem;
}

.training-current-trainer-skills .progress {
    margin-bottom: 0;
}

/* ==========================================================
   TRAINING – EINZELTRAINING – ERGEBNIS
   Zeigt zusätzlich zum Gesamtergebnis ausschließlich die
   tatsächlich angewendeten Änderungen des Einzeltrainings.
   ========================================================== */
.training-individual-result {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .25rem .6rem;
    font-size: .8rem;
}

.training-individual-result-value {
    white-space: nowrap;
}

/* ==========================================================
   TRAINING – TRAININGSHISTORIE
   Detailzeilen bleiben optisch Teil der jeweiligen Einheit.
   ========================================================== */
.training-history-detail-row>td {
    background: var(--bs-tertiary-bg);
}

.training-history-details {
    border-top: 1px solid var(--bs-border-color);
    border-bottom: 1px solid var(--bs-border-color);
}

.training-history-details .table {
    --bs-table-bg: transparent;
}

/* ==========================================================
   TRAINING – TRAININGSHISTORIE – ABSTAND
   Trennt die Historie optisch vom darüberliegenden Kaderbereich.
   ========================================================== */
.training-history {
    margin-top: 1.5rem;
}

/* ==========================================================
   SPIELERDETAILS – TRAININGSENTWICKLUNG
   Interaktiver Verlauf von Technik, Kondition, Frische und
   Zufriedenheit aus der gespeicherten Trainingshistorie.
   ========================================================== */
.player-training-development {
    min-width: 0;
}

.player-training-legend {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 1rem;
}

.player-training-legend-item {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .4rem .7rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 999px;
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
    font-size: .85rem;
    cursor: pointer;
    transition: opacity .15s ease, background-color .15s ease;
}

.player-training-legend-item:not(.is-active) {
    opacity: .45;
}

.player-training-legend-item:hover,
.player-training-legend-item:focus-visible {
    background: var(--bs-tertiary-bg);
}

.player-training-legend-swatch {
    width: .7rem;
    height: .7rem;
    border-radius: 50%;
    background: currentColor;
}

.player-training-series-technique {
    color: var(--bs-primary, #0d6efd);
}

.player-training-series-stamina {
    color: var(--bs-success, #198754);
}

.player-training-series-freshness {
    color: var(--bs-info, #0dcaf0);
}

.player-training-series-satisfaction {
    color: var(--bs-warning, #ffc107);
}

.player-training-chart-wrap {
    position: relative;
    min-height: 330px;
    padding: .75rem;
    border: 1px solid var(--bs-border-color);
    border-radius: .65rem;
    background: var(--bs-body-bg);
    overflow: hidden;
}

.player-training-chart {
    width: 100%;
    min-height: 300px;
}

.player-training-chart svg {
    display: block;
    width: 100%;
    height: 300px;
    overflow: visible;
}

.player-training-grid-line {
    stroke: var(--bs-border-color);
    stroke-width: 1;
}

.player-training-axis-label {
    fill: var(--bs-secondary-color);
    font-size: 11px;
}

.player-training-line {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.player-training-point {
    fill: var(--bs-body-bg);
    stroke: currentColor;
    stroke-width: 2.5;
    cursor: pointer;
}

.player-training-point-individual {
    stroke-width: 4;
}

.player-training-series-hidden {
    display: none;
}

.player-training-tooltip {
    position: absolute;
    z-index: 20;
    width: 280px;
    max-width: calc(100% - 1.5rem);
    padding: .7rem .8rem;
    border: 1px solid var(--bs-border-color);
    border-radius: .5rem;
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
    box-shadow: 0 .35rem .9rem rgba(0, 0, 0, .18);
    font-size: .82rem;
    line-height: 1.4;
    pointer-events: none;
}

.player-training-tooltip-title {
    margin-bottom: .35rem;
    font-weight: 700;
}

.player-training-tooltip-values {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: .1rem .75rem;
    margin-top: .4rem;
}

.player-training-tooltip-individual {
    margin-top: .45rem;
    padding-top: .45rem;
    border-top: 1px solid var(--bs-border-color);
}

@media (max-width: 767.98px) {
    .player-training-chart-wrap {
        overflow-x: auto;
    }

    .player-training-chart {
        min-width: 620px;
    }
}


/* =========================================================
   TRAINING CAMP
   ========================================================= */
.trainingcamp-page .trainingcamp-hero,
.trainingcamp-page .trainingcamp-intro,
.trainingcamp-page .trainingcamp-card,
.trainingcamp-page .trainingcamp-booking-box {
    background: var(--bs-tertiary-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: .75rem;
}

.trainingcamp-page .trainingcamp-hero,
.trainingcamp-page .trainingcamp-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem;
}

.trainingcamp-kicker {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--bs-secondary-color);
    margin-bottom: .25rem;
}

.trainingcamp-datebox,
.trainingcamp-squad-count {
    display: grid;
    grid-template-columns: auto auto;
    gap: .15rem .75rem;
    align-items: center;
    padding: .75rem 1rem;
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: .65rem;
}

.trainingcamp-squad-count {
    grid-template-columns: auto auto auto;
}

.trainingcamp-squad-count i {
    font-size: 1.35rem;
}

.trainingcamp-effect-card {
    height: 100%;
    padding: 1rem;
    background: var(--bs-tertiary-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: .65rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}

.trainingcamp-effect-card strong {
    font-size: 1.25rem;
}

.trainingcamp-card {
    padding: 1rem;
    transition: border-color .15s ease;
}

.trainingcamp-card:hover {
    border-color: var(--bs-primary);
}

.trainingcamp-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--bs-border-color);
}

.trainingcamp-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    white-space: nowrap;
}

.trainingcamp-price span {
    font-size: .75rem;
    color: var(--bs-secondary-color);
}

.trainingcamp-price-large strong {
    font-size: 1.2rem;
}

.trainingcamp-effects {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .5rem;
    margin-top: 1rem;
}

.trainingcamp-effects>div {
    display: flex;
    flex-direction: column;
    padding: .65rem;
    background: var(--bs-body-bg);
    border-radius: .5rem;
    text-align: center;
}

.trainingcamp-effects span {
    font-size: .75rem;
    color: var(--bs-secondary-color);
}

.trainingcamp-effects strong {
    font-size: 1.1rem;
}

.trainingcamp-booking-box {
    padding: 1.25rem;
}

.trainingcamp-summary-line {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .75rem 1rem;
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: .55rem;
}

@media (max-width: 767.98px) {

    .trainingcamp-page .trainingcamp-hero,
    .trainingcamp-page .trainingcamp-intro,
    .trainingcamp-card-head {
        flex-direction: column;
        align-items: stretch;
    }

    .trainingcamp-price {
        align-items: flex-start;
        text-align: left;
    }

    .trainingcamp-effects {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* Training camp images */
.trainingcamp-image,
.trainingcamp-detail-image {
    overflow: hidden;
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: .65rem;
}

.trainingcamp-image {
    aspect-ratio: 16 / 7;
    margin-bottom: 1rem;
}

.trainingcamp-detail-image {
    aspect-ratio: 16 / 5;
}

.trainingcamp-image img,
.trainingcamp-detail-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trainingcamp-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 140px;
    color: var(--bs-secondary-color);
    background: var(--bs-tertiary-bg);
}

.trainingcamp-image-placeholder i {
    font-size: 2.5rem;
    opacity: .55;
}

.trainingcamp-image-placeholder-large i {
    font-size: 3.5rem;
}


/* =========================================================
   TRAINING CAMP - 200x200 IMAGE LEFT
   ========================================================= */
.trainingcamp-card-layout {
    display: flex;
    align-items: stretch;
    gap: 1rem;
}

.trainingcamp-card-layout .trainingcamp-image {
    flex: 0 0 200px;
    width: 200px;
    height: 200px;
    aspect-ratio: auto;
    margin: 0;
}

.trainingcamp-card-layout .trainingcamp-image img {
    display: block;
    width: 200px;
    height: 200px;
    object-fit: cover;
}

.trainingcamp-card-content {
    flex: 1 1 auto;
    min-width: 0;
}

@media (max-width: 767.98px) {
    .trainingcamp-card-layout {
        flex-direction: column;
    }

    .trainingcamp-card-layout .trainingcamp-image {
        align-self: center;
    }
}


/* =========================================================
   TRAINING CAMP - CARD ALIGNMENT / SPACING
   ========================================================= */
.trainingcamp-page .trainingcamp-card {
    padding: 1rem;
}

.trainingcamp-card-layout {
    align-items: flex-start;
    gap: 1rem;
}

.trainingcamp-card-layout .trainingcamp-image {
    flex: 0 0 200px;
    width: 200px;
    height: 200px;
    margin: 0;
    border-radius: .65rem;
    box-sizing: border-box;
}

.trainingcamp-card-layout .trainingcamp-image img {
    width: 100%;
    height: 100%;
    border-radius: calc(.65rem - 1px);
}

.trainingcamp-card-content {
    min-height: 200px;
    display: flex;
    flex-direction: column;
}

.trainingcamp-card-content .trainingcamp-card-head {
    padding-top: 0;
}

.trainingcamp-card-content .trainingcamp-effects {
    margin-top: 1rem;
}

.trainingcamp-card-content>.d-flex:last-child {
    margin-top: auto !important;
    padding-top: 1rem;
}

@media (max-width: 767.98px) {
    .trainingcamp-card-content {
        width: 100%;
        min-height: 0;
    }
}


/* =========================================================
   TRAINING CAMP - UNIFORM CARD WIDTH / VISIBLE FRAME
   ========================================================= */
.trainingcamp-page .row>[class*="col-"] {
    min-width: 0;
}

.trainingcamp-page .trainingcamp-card {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    overflow: visible;
    border: 1px solid var(--bs-border-color) !important;
    border-radius: .75rem;
}

.trainingcamp-card-layout {
    width: 100%;
    box-sizing: border-box;
}

.trainingcamp-card-layout .trainingcamp-image {
    box-sizing: border-box;
    border: 1px solid var(--bs-border-color) !important;
    overflow: hidden;
}

.trainingcamp-card-content {
    width: calc(100% - 216px);
    max-width: calc(100% - 216px);
    box-sizing: border-box;
}

@media (max-width: 767.98px) {
    .trainingcamp-card-content {
        width: 100%;
        max-width: 100%;
    }
}


/* =========================================================
   TRAINING CAMP - UNIFORM OUTER FRAME / CARD SPACING
   ========================================================= */
/*
 * Der sichtbare Rahmen liegt bewusst auf dem Layout selbst.
 * Dadurch ist er unabhängig davon, ob ein echtes Bild,
 * das Länderbild oder ein fehlendes Bild verwendet wird.
 */
.trainingcamp-page .trainingcamp-card {
    padding: 0;
    border: 0 !important;
    border-radius: 0;
    overflow: visible;
}

.trainingcamp-page .trainingcamp-card-layout {
    width: 100%;
    margin: 0 0 1rem 0;
    padding: 1rem;
    border: 1px solid var(--bs-border-color) !important;
    border-radius: .75rem;
    box-sizing: border-box;
    background: var(--bs-body-bg);
}

/* Letzte Karte braucht unten keinen zusätzlichen Außenabstand. */
.trainingcamp-page .trainingcamp-card:last-child .trainingcamp-card-layout {
    margin-bottom: 0;
}

/* Bild bleibt innerhalb des Kartenrahmens exakt 200 x 200 px. */
.trainingcamp-page .trainingcamp-card-layout .trainingcamp-image {
    flex: 0 0 200px;
    width: 200px;
    height: 200px;
    margin: 0;
    border: 1px solid var(--bs-border-color) !important;
    border-radius: .65rem;
    overflow: hidden;
    box-sizing: border-box;
}

.trainingcamp-page .trainingcamp-card-layout .trainingcamp-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: calc(.65rem - 1px);
}

.trainingcamp-page .trainingcamp-card-layout .trainingcamp-card-content {
    flex: 1 1 auto;
    width: auto;
    max-width: none;
    min-width: 0;
    min-height: 200px;
}

@media (max-width: 767.98px) {
    .trainingcamp-page .trainingcamp-card-layout {
        margin-bottom: 1rem;
    }

    .trainingcamp-page .trainingcamp-card-layout .trainingcamp-card-content {
        width: 100%;
        max-width: 100%;
        min-height: 0;
    }
}


/* =========================================================
   TRAINING CAMP - BOOKING SUMMARY
   ========================================================= */
.trainingcamp-booking-summary-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    height: 52px;
    padding: .75rem 1rem;
    border: 1px solid var(--bs-border-color);
    border-radius: .5rem;
    background: var(--bs-body-bg);
    box-sizing: border-box;
}

.trainingcamp-booking-summary-item>span,
.trainingcamp-booking-summary-item>label {
    margin: 0;
    font-weight: 400;
    white-space: nowrap;
}

.trainingcamp-booking-summary-item>strong {
    margin-left: auto;
    font-weight: 700;
    white-space: nowrap;
}

.trainingcamp-booking-days {
    padding-right: .5rem;
}

.trainingcamp-booking-days .form-control {
    width: 110px;
    height: 36px;
    margin-left: auto;
    padding-top: .375rem;
    padding-bottom: .375rem;
}

@media (max-width: 767.98px) {
    .trainingcamp-booking-summary-item {
        height: 52px;
    }
}

/* TRAINING CAMP - Anreisedatum in der Buchungszeile */
.trainingcamp-booking-date {
    padding-right: .5rem;
}

.trainingcamp-booking-date .form-control {
    width: 140px;
    height: 36px;
    margin-left: auto;
    padding-top: .375rem;
    padding-bottom: .375rem;
}

@media (max-width: 767.98px) {
    .trainingcamp-booking-date .form-control {
        width: 160px;
    }
}

/* =========================================================
   STADIONUMFELD
   ========================================================= */
.stadiumenvironment-section {
    padding: 1rem;
    border: 1px solid var(--bs-border-color);
    border-radius: .75rem;
    background: var(--bs-tertiary-bg);
}

.stadiumenvironment-card {
    display: flex;
    overflow: hidden;
    border: 1px solid var(--bs-border-color);
    border-radius: .65rem;
    background: var(--bs-body-bg);
}

.stadiumenvironment-card-available {
    flex-direction: column;
}

.stadiumenvironment-image {
    flex: 0 0 160px;
    width: 160px;
    min-height: 160px;
    background: var(--bs-tertiary-bg);
}

.stadiumenvironment-card-available .stadiumenvironment-image {
    width: 100%;
    height: 180px;
    min-height: 180px;
}

.stadiumenvironment-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stadiumenvironment-content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    padding: 1rem;
}

.stadiumenvironment-description {
    min-height: 3rem;
}

.stadiumenvironment-stats {
    display: grid;
    gap: .5rem;
}

.stadiumenvironment-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .65rem .75rem;
    border: 1px solid var(--bs-border-color);
    border-radius: .5rem;
    background: var(--bs-tertiary-bg);
}

.stadiumenvironment-stat strong {
    text-align: right;
    white-space: nowrap;
}

.stadiumenvironment-card-construction {
    border-color: var(--bs-warning-border-subtle);
}

@media (max-width: 575.98px) {
    .stadiumenvironment-card:not(.stadiumenvironment-card-available) {
        flex-direction: column;
    }

    .stadiumenvironment-card:not(.stadiumenvironment-card-available) .stadiumenvironment-image {
        width: 100%;
        height: 180px;
    }

    .stadiumenvironment-stat {
        align-items: flex-start;
        flex-direction: column;
        gap: .25rem;
    }

    .stadiumenvironment-stat strong {
        text-align: left;
    }
}

/* =========================================================
   TRANSFERANGEBOTE
   ========================================================= */
.transferoffers-grid {
    display: grid;
    gap: 1rem;
}

.transferoffer-card {
    padding: 1rem;
    border: 1px solid var(--bs-border-color);
    border-radius: .75rem;
    background: var(--bs-body-bg);
}

.transferoffer-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: .85rem;
    border-bottom: 1px solid var(--bs-border-color);
}

.transferoffer-player {
    font-size: 1.1rem;
    font-weight: 600;
}

.transferoffer-amount {
    font-size: 1.1rem;
    white-space: nowrap;
}

.transferoffer-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .75rem;
    padding: 1rem 0;
}

.transferoffer-meta>div {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    padding: .7rem .8rem;
    border: 1px solid var(--bs-border-color);
    border-radius: .55rem;
    background: var(--bs-tertiary-bg);
}

.transferoffer-meta span {
    font-size: .8rem;
    color: var(--bs-secondary-color);
}

.transferoffer-meta strong {
    font-weight: 600;
}

.transferoffer-meta small {
    line-height: 1.2;
}

.transferoffer-exchange {
    margin-bottom: 1rem;
    padding: .65rem .8rem;
    border-radius: .55rem;
    background: var(--bs-tertiary-bg);
}

.transferoffer-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: .85rem;
    border-top: 1px solid var(--bs-border-color);
}

@media (max-width: 991.98px) {
    .transferoffer-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {

    .transferoffer-card-head,
    .transferoffer-card-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .transferoffer-meta {
        grid-template-columns: 1fr;
    }

    .transferoffer-card-footer .d-flex {
        flex-wrap: wrap;
    }
}

/* =========================================================
   TRANSFERMARKT
   ========================================================= */
.transfermarket-filter,
.transferbid-section,
.transferbid-deadline,
.transfermarket-table-wrap {
    padding: 1rem;
    border: 1px solid var(--bs-border-color);
    border-radius: .75rem;
    background: var(--bs-tertiary-bg);
}

.transfermarket-grid {
    display: grid;
    gap: 1rem;
}

.transfermarket-player-card {
    overflow: hidden;
    border: 1px solid var(--bs-border-color);
    border-radius: .75rem;
    background: var(--bs-body-bg);
}

.transfermarket-player-head,
.transfermarket-player-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .9rem 1rem;
}

.transfermarket-player-head {
    border-bottom: 1px solid var(--bs-border-color);
}

.transfermarket-player-footer {
    border-top: 1px solid var(--bs-border-color);
    justify-content: flex-end;
}

.transfermarket-position-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.transfermarket-player-name {
    font-size: 1.05rem;
    font-weight: 600;
}

.transfermarket-deadline {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.transfermarket-deadline span,
.transfermarket-facts span,
.transferbid-label,
.transferbid-facts span {
    font-size: .8rem;
    color: var(--bs-secondary-color);
}

.transfermarket-player-body {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
    gap: 1rem;
    padding: 1rem;
}

.transfermarket-skills {
    display: grid;
    grid-template-columns: repeat(5, minmax(55px, 1fr));
    gap: .5rem;
}

.transfermarket-skills>div,
.transfermarket-facts>div,
.transferbid-facts>div {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    padding: .65rem .75rem;
    border: 1px solid var(--bs-border-color);
    border-radius: .55rem;
    background: var(--bs-tertiary-bg);
}

.transfermarket-skills>div {
    align-items: center;
    text-align: center;
}

.transfermarket-skills strong {
    font-size: 1.05rem;
}

.transfermarket-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
}

.transfermarket-facts small {
    line-height: 1.2;
}

.transferbid-deadline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.transferbid-countdown {
    font-size: 1.25rem;
    font-weight: 600;
}

.transferbid-section h5 {
    margin-bottom: 1rem;
}

.transferbid-facts {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: .75rem;
}

.transferbid-details {
    display: grid;
    grid-template-columns: minmax(160px, .6fr) 1fr;
    margin: 0;
}

.transferbid-details dt,
.transferbid-details dd {
    margin: 0;
    padding: .55rem .7rem;
    border-bottom: 1px solid var(--bs-border-color);
}

.transferbid-details dt {
    color: var(--bs-secondary-color);
    font-weight: 500;
}

.transfermarket-table {
    margin-bottom: 0;
}

.transfermarket-table> :not(caption)>*>* {
    padding: .75rem;
}

@media (max-width: 991.98px) {
    .transfermarket-player-body {
        grid-template-columns: 1fr;
    }

    .transferbid-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .transfermarket-skills {
        grid-template-columns: repeat(3, 1fr);
    }

    .transfermarket-player-head,
    .transferbid-deadline {
        align-items: flex-start;
        flex-direction: column;
    }

    .transfermarket-deadline {
        align-items: flex-start;
    }
}

@media (max-width: 575.98px) {

    .transfermarket-skills,
    .transfermarket-facts,
    .transferbid-facts {
        grid-template-columns: 1fr;
    }

    .transferbid-details {
        grid-template-columns: 1fr;
    }

    .transferbid-details dt {
        padding-bottom: .15rem;
        border-bottom: 0;
    }

    .transferbid-details dd {
        padding-top: 0;
    }
}


/* =========================================================
   TRANSFERMARKT - LETZTE / MEINE TRANSFERS
   ========================================================= */
.transferhistory-grid {
	display: grid;
	gap: 1rem;
}

.transferhistory-card {
	overflow: hidden;
	border: 1px solid var(--bs-border-color);
	border-radius: .75rem;
	background: var(--bs-body-bg);
}

.transferhistory-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: .9rem 1rem;
	border-bottom: 1px solid var(--bs-border-color);
}

.transferhistory-player {
	font-size: 1.05rem;
	font-weight: 600;
}

.transferhistory-amount {
	font-size: 1.05rem;
	white-space: nowrap;
}

.transferhistory-meta {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: .75rem;
	padding: 1rem;
}

.transferhistory-meta > div,
.transferhistory-extra > div {
	display: flex;
	flex-direction: column;
	gap: .2rem;
	padding: .65rem .75rem;
	border: 1px solid var(--bs-border-color);
	border-radius: .55rem;
	background: var(--bs-tertiary-bg);
}

.transferhistory-meta span,
.transferhistory-extra span {
	font-size: .8rem;
	color: var(--bs-secondary-color);
}

.transferhistory-extra {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: .75rem;
	padding: 0 1rem 1rem;
}

.transferhistory-exchange {
	justify-content: center;
}

@media (max-width: 767.98px) {
	.transferhistory-meta,
	.transferhistory-extra {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 575.98px) {
	.transferhistory-head {
		align-items: flex-start;
		flex-direction: column;
	}

	.transferhistory-amount {
		white-space: normal;
	}
}


/* =========================================================
   TRANSFERMARKT - MEINE GEBOTE
   ========================================================= */
.transferbids-grid {
	display: grid;
	gap: 1rem;
}

.transferbid-card {
	overflow: hidden;
	border: 1px solid var(--bs-border-color);
	border-radius: .75rem;
	background: var(--bs-body-bg);
}

.transferbid-card-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: .9rem 1rem;
	border-bottom: 1px solid var(--bs-border-color);
}

.transferbid-card-player {
	font-size: 1.05rem;
	font-weight: 600;
}

.transferbid-card-status {
	white-space: nowrap;
}

.transferbid-card-meta {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: .75rem;
	padding: 1rem;
}

.transferbid-card-meta > div {
	display: flex;
	flex-direction: column;
	gap: .2rem;
	padding: .65rem .75rem;
	border: 1px solid var(--bs-border-color);
	border-radius: .55rem;
	background: var(--bs-tertiary-bg);
}

.transferbid-card-meta span {
	font-size: .8rem;
	color: var(--bs-secondary-color);
}

.transferbid-card-footer {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	padding: .85rem 1rem;
	border-top: 1px solid var(--bs-border-color);
}

@media (max-width: 991.98px) {
	.transferbid-card-meta {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 575.98px) {
	.transferbid-card-head {
		align-items: flex-start;
		flex-direction: column;
	}

	.transferbid-card-meta {
		grid-template-columns: 1fr;
	}

	.transferbid-card-status {
		white-space: normal;
	}
}

/* ==========================================================
   MEIN KADER – KOPFBEREICH UND SPALTENBREITEN
   ========================================================== */
/* Responsive Kopfbereich der Kaderübersicht */
.myteam-overview-summary {
    min-width: 0;
}

.myteam-overview-actions {
    flex: 0 0 auto;
}

.myteam-overview-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

@media (max-width: 1199.98px) {
    .myteam-overview-actions {
        display: flex;
        width: 100%;
    }

    .myteam-overview-actions .btn {
        flex: 1 1 0;
        white-space: normal;
    }
}

@media (max-width: 575.98px) {
    .myteam-overview-actions {
        flex-direction: column;
    }

    .myteam-overview-actions .btn {
        width: 100%;
        border-radius: var(--bs-btn-border-radius) !important;
        margin-left: 0 !important;
    }
}

.myteam-shirt-number-column {
    width:160px;
}

.myteam-position-column {
    width:65px;
}

.myteam-age-column {
    width:50px;
}

.myteam-contract-column {
    width:110px;
}

.myteam-attribute-column {
    width:55px;
}

.myteam-value-column {
    width:130px;
}

.myteam-salary-caption {
    font-size: 0.7rem;
}

/* NACHWUCHS – STADIONBILD */
.academy-stadium-picture {
    width: 180px; height: 120px; object-fit: cover;
}

/* HIGHSCORE – BILDER UND TABELLENSPALTEN */
.fom-highscore-winner-card {
    border-radius: 15px;
}

.fom-highscore-winner-picture {
    max-height: 200px; width: 200px; object-fit: cover;
}

.fom-highscore-winner-club-logo {
    width: 32px; height: 32px; object-fit: contain;
}

.fom-highscore-rank-column {
    width: 80px;
}

.fom-highscore-user-picture {
    width: 40px; height: 40px; object-fit: cover;
}

.fom-highscore-user-placeholder {
    width: 40px; height: 40px;
}

.fom-highscore-club-logo {
    width: 24px; height: 24px; object-fit: contain;
}

/* STADION – AUSLASTUNG (data-width wird von default.js verarbeitet) */
.stadium-occupancy-progress {
    height: 6px;
}

/* Academy: keep the formation button above the stretched match link. */
.academy-formation-link {
    position: relative;
    z-index: 3;
}

/* Trainer portraits: responsive display without changing training behavior. */
.training-trainer-picture {
    width: 100px;
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

/* Vereinsgelände: schematic map, free land and construction states. */
.club-land-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    background: #fff;
    border: 1px solid #d9e5dd;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}
.club-land-map {
    background: #dbe8d2;
    border: 8px solid #8fab85;
    border-radius: 14px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}
.club-land-map[hidden] { display: none; }
.club-land-stadium {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    background: #ebefdf;
    border-radius: 12px;
    color: #204d37;
    text-decoration: none;
}
/* Stadion mit vier Tribünen und Spielfeldmarkierungen. */
.club-land-stadium-illustration {
    position: relative;
    display: block;
    width: min(100%, 380px);
    aspect-ratio: 1.7;
    border-radius: 38% / 28%;
    background: #a1a9a3;
    border: 3px solid #617267;
    box-shadow: 0 12px 0 #87948a, 0 18px 20px #294e3533;
    margin: .5rem 0 1.5rem;
    overflow: hidden;
}
.club-land-stand {
    position: absolute;
    background: repeating-linear-gradient(0deg, #d9dfdf 0 3px, #a6b3b8 3px 7px);
    border: 3px solid #71848a;
    border-radius: 9px;
}
.club-land-stand-north, .club-land-stand-south { left: 19%; width: 62%; height: 18%; }
.club-land-stand-north { top: 5%; }
.club-land-stand-south { bottom: 5%; }
.club-land-stand-west, .club-land-stand-east {
    top: 24%; height: 52%; width: 12%;
    background: repeating-linear-gradient(90deg, #d9dfdf 0 3px, #a6b3b8 3px 7px);
}
.club-land-stand-west { left: 5%; }
.club-land-stand-east { right: 5%; }
.club-land-pitch {
    position: absolute;
    display: block;
    inset: 26% 20%;
    border: 2px solid #f5faf1;
    background: repeating-linear-gradient(90deg, #428450 0 12.5%, #50955b 12.5% 25%);
}
.club-land-pitch::before {
    content: ""; position: absolute; top: 0; bottom: 0; left: 50%; border-left: 2px solid #f5faf1;
}
.club-land-pitch-circle {
    position: absolute; width: 25%; aspect-ratio: 1; left: 50%; top: 50%;
    transform: translate(-50%, -50%); border: 2px solid #f5faf1; border-radius: 50%;
}
.club-land-goal {
    position: absolute; top: 20%; bottom: 20%; width: 18%; border: 2px solid #f5faf1;
}
.club-land-goal-west { left: -2px; }
.club-land-goal-east { right: -2px; }
.club-land-plot summary {
    display: flex; flex-direction: column; align-items: center; gap: .35rem; cursor: pointer;
}
.club-land-plot summary::after { content: "▾"; }
.club-land-plot[open] summary::after { content: "▴"; }
.club-land-plot summary:focus-visible { outline: 3px solid #286440; outline-offset: 4px; }
.club-land-building-details { margin-top: .75rem; font-size: .875rem; }
.club-land-plots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
    gap: .65rem;
}
.club-land-plot {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: .35rem;
    min-height: 110px;
    padding: .7rem;
    border: 1px solid #a8c39e;
    border-radius: 9px;
    background: #f0f5e9;
    color: #214e34;
    text-align: center;
    text-decoration: none;
    overflow-wrap: anywhere;
}
.club-land-plot-free {
    background: #d4e4c8;
    border-style: dashed;
}
.club-land-plot-construction {
    background: #fff0c6;
    border-color: #d0a045;
}
.club-land-house {
    display: block;
    width: 45px;
    height: 30px;
    background: #d7d0b9;
    border: 2px solid #93866b;
    border-top: 8px solid #5d7664;
}
.club-land-meadow {
    display: block;
    padding: 1.25rem;
    margin: 1rem 0;
    border-radius: 8px;
    color: #284d2b;
    background: repeating-linear-gradient(120deg, #b9cda8, #b9cda8 15px, #b1c8a0 15px, #b1c8a0 30px);
}
.club-land-expansion {
    padding: 1.25rem;
    border: 1px solid #d9e5dd;
    border-radius: 12px;
    background: #fff;
}
@media (max-width: 575px) {
    .club-land-map { padding: .6rem; border-width: 5px; }
    .club-land-plots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Vereinsgelände: compact plots, accessible deadlines and expansion dialog. */
.club-land-plots { grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); align-items: start; }
.club-land-plot { min-height: 96px; padding: .6rem; overflow-wrap: normal; }
details.club-land-plot { display: block; }
.club-land-plot summary { position: relative; gap: .2rem; font-size: .875rem; }
.club-land-house { width: 36px; height: 25px; border-top-width: 6px; }
.club-land-area { font-size: .75rem; color: #456345; }
.club-land-tooltip {
    display: none; position: absolute; z-index: 5; bottom: calc(100% + .5rem); left: 50%;
    transform: translateX(-50%); width: 190px; max-width: 70vw; padding: .6rem;
    border-radius: 6px; background: #234732; color: #fff; font-size: .8rem;
    box-shadow: 0 3px 12px #0003; pointer-events: none;
}
.club-land-plot summary:hover .club-land-tooltip,
.club-land-plot summary:focus-visible .club-land-tooltip { display: block; }
.club-land-meadow { width: 100%; border: 0; text-align: left; }
dialog.club-land-expansion { width: min(560px, calc(100% - 2rem)); max-height: 85vh; overflow: auto; }
dialog.club-land-expansion::backdrop { background: #10251980; }
.club-land-dialog-close { display: flex; justify-content: flex-end; margin-bottom: .75rem; }
@media (max-width: 575px) {
    .club-land-plots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Einheitliche Kartenfelder unabhängig von der Länge des Gebäudenamens. */
.club-land-plot { height: 144px; min-height: 144px; }
.club-land-plot summary { min-height: 122px; justify-content: center; }
.club-land-plot summary strong { line-height: 1.2; }
details.club-land-plot[open] { height: auto; }

/* AdminCenter – Kopfzeile der Rechtematrix bleibt beim Seitenscrollen unter der Navigation. */
body.admin-main .admin-permissions-scroll {
    overflow: visible;
    isolation: isolate;
}

body.admin-main .admin-permissions-scroll table {
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    width: 100%;
}

body.admin-main .admin-permissions-scroll th,
body.admin-main .admin-permissions-scroll td {
    overflow-wrap: anywhere;
}

body.admin-main .admin-permissions-scroll thead th:first-child {
    width: 30%;
}

body.admin-main .admin-permissions-scroll thead th:last-child {
    width: 22%;
}

body.admin-main .admin-permissions-scroll thead {
    position: sticky;
    top: 70px;
    z-index: 2;
}

body.admin-main .admin-permissions-scroll thead th {
    background-color: var(--bs-tertiary-bg, #f8f9fa);
    box-shadow: 0 1px 0 var(--bs-border-color, #dee2e6);
}

/* FANSTATIONSKIN — independent stadium design; Default remains unaffected. */
body.fanstationskin {
    --ws-navbar-bg: transparent;
    --ws-primary-rgb: 21, 93, 171;
    --ws-primary-hover: #104b8c;
    --ws-primary-active: #0d3f76;
    --ws-primary-text: #143251;
    --ws-card-bg: #ffffff;
    --ws-card-border: #dce4ed;
    --ws-input-bg: #ffffff;
    --ws-body-bg: #ffffff;
    --ws-body-color: #143251;
    --ws-sidebar-bg: #f4f7fb;
    --ws-sidebar-border: #dce4ed;
    --ws-primary: #155dab;
    --ws-primary-subtle: #e4effa;
    --ws-muted-color: #5b7087;
    --bs-body-bg: #ffffff;
    --bs-body-color: #143251;
    --bs-link-color: #155dab;
    --bs-link-hover-color: #104b8c;
    padding-top: 0;
    background: #0a233a url('../img/fanstationskin/stadium.png') center top / cover no-repeat fixed;
    color: #143251;
}
.fanstationskin .fs-websoccer-frame {
    width: 94%;
    max-width: 1600px;
    margin: 36px auto;
    min-height: calc(100vh - 72px);
    display: flex;
    flex-direction: column;
    box-shadow: 0 15px 60px rgb(0 20 38 / 30%);
}
.fanstationskin .fs-websoccer-header {
    min-height: 253px;
    background: rgb(8 31 51 / 32%);
    color: #fff;
}
.fanstationskin .navbar {
    position: relative;
    inset: auto;
    background: transparent;
    border: 0;
    min-height: 130px;
    padding: 24px 26px 0;
}
.fanstationskin .navbar > .container {
    max-width: none;
    padding: 0;
}
.fanstationskin .fs-websoccer-logo {
    display: block;
    width: 270px;
    max-width: 100%;
    height: auto;
}
.fanstationskin .navbar .nav-link,
.fanstationskin .navbar .ws-btn-auth,
.fanstationskin .navbar .ws-lang-btn {
    color: #fff;
}
.fanstationskin .navbar .nav-link.active,
.fanstationskin .navbar .nav-link:hover {
    background: rgb(255 255 255 / 10%);
    color: #fff;
}
.fanstationskin .fs-websoccer-welcome {
    text-align: center;
    padding: 18px 24px 32px;
}
.fanstationskin .fs-websoccer-welcome h2 {
    margin: 0;
    color: #fff;
    font-size: 25px;
    font-weight: 500;
}
.fanstationskin .ws-app,
.fanstationskin .ws-app-with-sidebar {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    background: #fff;
    flex: 1;
}
.fanstationskin .ws-main,
.fanstationskin .ws-app-with-sidebar .ws-main {
    min-width: 0;
    width: auto;
    max-width: none;
    flex: 1;
    margin: 0;
    padding: 28px;
    color: #143251;
}
.fanstationskin .ws-main .box {
    background: #fff;
    color: #143251;
}
.fanstationskin .ws-hero {
    background: linear-gradient(135deg, #e4effa, #f6f9fc);
}
.fanstationskin .navbar-toggler-icon {
    filter: brightness(0) invert(1);
}
.fanstationskin .ws-footer,
.fanstationskin .ws-footer-with-sidebar {
    margin: 0;
    background: #102d4f;
    color: #dce8f5;
    padding: 22px 26px;
}
.fanstationskin .ws-footer a,
.fanstationskin .ws-footer-brand {
    color: #dce8f5;
}
@media (min-width: 992px) {
    .fanstationskin .ws-sidebar {
        position: relative;
        inset: auto;
        min-height: 0;
        height: auto;
        overflow: visible;
        align-self: stretch;
    }
    .fanstationskin .navbar .offcanvas-body {
        justify-content: flex-end;
    }
    .fanstationskin .navbar .navbar-nav {
        margin-left: auto;
    }
}
@media (max-width: 991.98px) {
    body.fanstationskin { background-attachment: scroll; }
    .fanstationskin .fs-websoccer-frame { width: calc(100% - 24px); margin: 12px auto; }
    .fanstationskin .navbar { min-height: 90px; padding: 16px; }
    .fanstationskin .fs-websoccer-logo { width: 175px; }
    .fanstationskin .fs-websoccer-header { min-height: 190px; }
    .fanstationskin .fs-websoccer-welcome { padding: 18px 16px 24px; }
    .fanstationskin .fs-websoccer-welcome h2 { font-size: 22px; }
    .fanstationskin .ws-main,
    .fanstationskin .ws-app-with-sidebar .ws-main { padding: 18px; }
    .fanstationskin .navbar .offcanvas { background: #102d4f; color: #fff; }
    .fanstationskin .navbar .offcanvas-title { color: #fff; }
    .fanstationskin .navbar .btn-close { filter: brightness(0) invert(1); }
}

/* Fanstation manager summary and top-right desktop menu. */
.fanstationskin .fs-websoccer-manager-stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    margin: 22px 0 0;
    color: #fff;
}
.fanstationskin .fs-websoccer-manager-stats > div {
    padding: 0 18px;
    border-left: 1px solid rgb(255 255 255 / 35%);
    max-width: 100%;
}
.fanstationskin .fs-websoccer-manager-stats > div:first-child { border-left: 0; }
.fanstationskin .fs-websoccer-manager-stats dt {
    font-size: 12px;
    font-weight: 400;
    color: #dce8f5;
}
.fanstationskin .fs-websoccer-manager-stats dd {
    margin: 3px 0 0;
    font-size: 14px;
    overflow-wrap: anywhere;
}
.fanstationskin .fs-websoccer-manager-stats a { color: #fff; text-decoration: none; }
.fanstationskin .fs-websoccer-manager-stats a:hover { text-decoration: underline; }
@media (min-width: 992px) {
    .fanstationskin .fs-websoccer-header { position: relative; }
    .fanstationskin .navbar { min-height: 142px; padding-top: 36px; }
    .fanstationskin .navbar > .container { align-items: flex-start; }
    .fanstationskin .navbar-brand { margin-top: 16px; }
    .fanstationskin .navbar .offcanvas-body { justify-content: flex-end; }
    .fanstationskin .navbar .navbar-nav { margin-left: auto; }
    .fanstationskin .fs-websoccer-welcome { padding: 4px 24px 24px; }
}
@media (max-width: 575.98px) {
    .fanstationskin .fs-websoccer-manager-stats { gap: 14px 0; }
    .fanstationskin .fs-websoccer-manager-stats > div { width: 50%; padding: 0 8px; }
    .fanstationskin .fs-websoccer-manager-stats > div:nth-child(odd) { border-left: 0; }
}

/* Fanstation horizontal manager bar and Suite-like header alignment. */
.fanstationskin .navbar .offcanvas-body { justify-content: flex-end; }
.fanstationskin .navbar .navbar-nav { margin-left: auto; }
.fanstationskin .fs-websoccer-userbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0 18px;
    min-height: 46px;
    padding: 0 24px;
    /* Forum panel: white at 10% over the header tint at 32%. */
    background: rgb(72 89 104 / 38.8%);
    border-top: 1px solid rgb(255 255 255 / 25%);
    color: #fff;
}
.fanstationskin .fs-user-controls,
.fanstationskin .fs-manager-navigation,
.fanstationskin .fs-websoccer-userbar .ws-sidebar-inbox {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 12px;
    margin: 0;
}
.fanstationskin .fs-user-profile-toggle,
.fanstationskin .fs-manager-menu-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 6px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 14px;
}
.fanstationskin .fs-user-avatar {
    width: 64px;
    height: 64px;
    border: 3px solid #fff;
    border-radius: 50%;
    object-fit: cover;
    margin-top: -28px;
    background: #12375a;
    flex-shrink: 0;
}
.fanstationskin .fs-user-avatar-placeholder { display: grid; place-items: center; font-size: 30px; }
.fanstationskin .fs-user-profile-menu { min-width: 290px; max-width: calc(100vw - 36px); }
.fanstationskin .fs-user-profile-menu .ws-sidebar-usercard { margin: 0; border: 0; }
.fanstationskin .fs-websoccer-userbar .ws-sidebar-inbox-link { width: auto; color: #fff; padding: 10px 6px; }
.fanstationskin .fs-websoccer-userbar .ws-sidebar-inbox-link i { font-size: 22px; }
.fanstationskin .fs-manager-menu-toggle:hover,
.fanstationskin .fs-user-profile-toggle:hover { background: rgb(255 255 255 / 10%); }
.fanstationskin .fs-websoccer-userbar .dropdown-menu { color: #143251; z-index: 1040; }
.fanstationskin .ws-app-with-sidebar { display: block; }
@media (min-width: 992px) {
    .fanstationskin .navbar .offcanvas-body { flex-grow: 0; margin-left: auto; }
    .fanstationskin .navbar .navbar-nav { margin-left: 0; }
    .fanstationskin .navbar .offcanvas { flex-grow: 0; margin-left: auto; }
}
@media (max-width: 575.98px) {
    .fanstationskin .fs-websoccer-userbar { padding: 0 12px; gap: 0; }
    .fanstationskin .fs-user-avatar { width: 48px; height: 48px; margin-top: -12px; }
    .fanstationskin .fs-user-controls { width: 100%; justify-content: space-between; }
    .fanstationskin .fs-websoccer-userbar .ws-sidebar-inbox-link > span:not(.badge) { display: none; }
    .fanstationskin .fs-manager-navigation { width: 100%; padding: 4px 0; }
    .fanstationskin .fs-manager-menu-toggle { font-size: 13px; }
}

/* Icon-only inbox controls in the Fanstation user bar. */
.fanstationskin .fs-websoccer-userbar .ws-sidebar-inbox-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-height: 44px;
    overflow: visible;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    box-shadow: none;
    border-radius: 4px;
    text-decoration: none;
}
.fanstationskin .fs-websoccer-userbar .ws-sidebar-inbox-link:hover {
    background: rgb(255 255 255 / 12%);
    color: #fff;
}
.fanstationskin .fs-websoccer-userbar .ws-sidebar-inbox-link:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}
.fanstationskin .fs-websoccer-userbar .ws-sidebar-inbox-link .badge {
    position: absolute;
    top: 2px;
    right: 0;
    margin: 0;
}

/* Keep the manager bar visible while scrolling, including its avatar. */
.fanstationskin .fs-websoccer-userbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    flex-shrink: 0;
    background: rgb(218 232 245 / 28%);
    box-shadow: 0 2px 8px rgb(0 20 38 / 18%);
}
.fanstationskin .fs-websoccer-userbar .fs-user-avatar {
    width: 48px;
    height: 48px;
    margin-top: 0;
}
.fanstationskin .fs-websoccer-userbar .fs-user-profile-toggle {
    padding-top: 4px;
    padding-bottom: 4px;
}

/* Preserve stadium transparency until the sticky bar reaches the viewport top. */
.fanstationskin .fs-websoccer-userbar.is-stuck {
    background: #264c75;
}

/* Guest layout aligned with the Fanstation Suite header. */
.fs-guest .fs-websoccer-welcome {
    padding: 28px 24px 32px;
}
.fs-guest .fs-websoccer-welcome h2 { margin-bottom: 12px; line-height: 1.48; }
.fs-guest .fs-websoccer-welcome p { color: #edf4ff; margin: 0; font-size: 15px; line-height: 1.48; }
.fs-guest .fs-guest-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.fs-guest .fs-guest-actions a {
    display: inline-flex;
    justify-content: center;
    min-width: 240px;
    max-width: 100%;
    padding: 10px 22px;
    border: 1px solid rgb(255 255 255 / 75%);
    border-radius: 3px;
    background: rgb(255 255 255 / 5%);
    color: #fff;
    font-size: 15px;
    line-height: 1.48;
    text-decoration: none;
}
.fs-guest .fs-guest-actions a:hover { background: rgb(255 255 255 / 16%); }
.fs-guest .ws-app { border-top: 40px solid #ecf0f1; }
.fs-guest .fs-guest-language { display: inline-flex; align-items: center; gap: 8px; }
.fs-guest .fs-guest-bar {
    display: flex;
    align-items: center;
    gap: 26px;
    min-height: 44px;
    padding: 0 24px;
    /* Forum panel: white at 10% over the header tint at 32%. */
    background: rgb(72 89 104 / 38.8%);
    border-top: 1px solid rgb(255 255 255 / 25%);
    color: #fff;
    font-size: 14px;
}
.fs-guest .fs-guest-bar > a,
.fs-guest .fs-guest-bar .ws-lang-btn { color: #fff; background: transparent; border: 0; text-decoration: none; }
.fanstationskin .navbar .nav-link {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.48;
    padding: 12px 15px;
    border-bottom: 3px solid transparent;
}
.fanstationskin .navbar .nav-link.active { border-bottom-color: #fff; }
@media (min-width: 992px) {
    /* Let the desktop menu overlap the header top by 8px, as in Suite. */
    .fanstationskin .navbar .offcanvas-body { position: relative; top: -44px; }
    .fs-guest .navbar .offcanvas-body { top: -8px; }
    /* Forum reference: 36px frame margin and 46px menu items. */
    .fanstationskin .fs-websoccer-frame { margin-top: 36px; }
    .fanstationskin .navbar .nav-link { display: flex; align-items: center; height: 46px; padding: 0 15px; }
    .fs-guest .navbar { height: 80px; min-height: 80px; padding: 0 26px; align-items: flex-start; }
    .fs-guest .navbar-brand { position: absolute; top: 6px; left: 26px; margin-top: 0; }
    .fanstationskin .fs-websoccer-logo { width: auto; height: 80px; }
}
@media (max-width: 991.98px) {
    .fs-guest .fs-websoccer-welcome { padding: 24px 16px; }
    .fs-guest .fs-guest-bar { padding: 0 16px; }
}

/* National teams: compact filters and multiple nominations. */
.nt-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}
.nt-filter-grid label { display: block; margin-bottom: 4px; }
.nt-filter-buttons, .nt-selection-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.nt-filter-buttons { align-self: end; }
.nt-selection-bar { padding: 12px; margin-bottom: 12px; border: 1px solid var(--bs-border-color); border-radius: 6px; }
.nt-nomination .table th { white-space: nowrap; }

/* National-team overview: three compact cards. */
.nt-overview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 16px; }

/* National-player roster: position counts and compact, accessible rows. */
.nt-position-counts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 18px 0; }
.nt-position-count { display: flex; align-items: center; gap: 8px; padding: 12px; border: 1px solid var(--nt-position-border); border-radius: 6px; background: var(--nt-position-bg); color: #172b3a; }
.nt-position-count strong { margin-left: auto; font-size: 1.4rem; }
.nt-position-count abbr { font-weight: 700; }
.nt-position-goaly { --nt-position-bg: #fff5d9; --nt-position-border: #cda535; }
.nt-position-defense { --nt-position-bg: #eaf3ff; --nt-position-border: #6394cd; }
.nt-position-midfield { --nt-position-bg: #eaf6ed; --nt-position-border: #66a87b; }
.nt-position-striker { --nt-position-bg: #f8edf4; --nt-position-border: #b979a0; }
.nt-roster-scroll { overflow-x: auto; }
.nt-roster-table { min-width: 690px; margin-bottom: 0; }
.nt-roster-table th { white-space: nowrap; font-size: .8rem; text-transform: uppercase; }
.nt-roster-table th, .nt-roster-table td { padding: 10px 12px; text-align: center; vertical-align: middle; }
.nt-roster-table .nt-roster-name { text-align: left; width: 45%; min-width: 220px; }
.nt-roster-table tbody tr > td { background: var(--nt-position-bg); color: #172b3a; box-shadow: none; border-bottom: 1px solid #ccd4dc; }
.nt-roster-table tbody tr > td:first-child { border-left: 4px solid var(--nt-position-border); }
.nt-roster-player { display: block; font-weight: 700; }
.nt-roster-remove { display: inline-block; margin-top: 5px; font-size: .78rem; }
.nt-position-badge { display: inline-block; border: 1px solid var(--nt-position-border); border-radius: 5px; padding: 2px 6px; font-weight: 700; }
.nt-roster-positions { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.nt-roster-status { min-width: 90px; }
.nt-status-ready { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: #168252; color: #fff; font-weight: 700; }
.nt-status-warning { display: block; color: #8a2727; font-size: .8rem; }
@media (max-width: 800px) {
    .nt-position-counts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nt-position-count { flex-wrap: wrap; }
    .nt-roster-table th, .nt-roster-table td { padding: 8px; }
}
