
/* Kommandanten */
.commanders-count-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-bottom: 24px;
}

.commanders-search-section {
    margin-bottom: 24px;
}

.commanders-search-row {
    grid-template-columns: minmax(260px, 1fr) 150px;
}

.commanders-category-list {
    margin-top: 20px;
}

.commanders-category .category-header {
    gap: 14px;
}

.commanders-category .category-title {
    flex: 1 1 auto;
    min-width: 0;
}

.commander-category-count {
    color: var(--text-muted);
    font-size: 0.78rem;
    white-space: nowrap;
    margin-left: auto;
}

.commanders-category.command-category-open .bot-commands-grid {
    max-height: none;
    overflow: visible;
    opacity: 1;
    margin-top: 20px;
}

.commanders-command-grid {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.commander-command-card {
    align-items: center;
    position: relative;
    padding-right: 42px;
}

.commander-command-link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.commander-icon {
    width: 88px;
    height: 88px;
    object-fit: contain;
    flex: 0 0 88px;
    filter: drop-shadow(0 8px 10px rgba(0,0,0,0.35));
}

.commander-command-info {
    min-width: 0;
}

.commander-command-info strong {
    line-height: 1.3;
}

.commander-detail-image {
    width: min(320px, 72vw);
    max-height: 320px;
}

.commander-detail-page .ship-detail-list strong {
    overflow-wrap: anywhere;
}

.commander-detail-hero {
    min-height: 225px;
    margin-bottom: 28px;
}

.commander-detail-page .ship-detail-grid {
    gap: 12px;
}

.commander-detail-page .ship-detail-card {
    padding: 16px;
}

.commander-detail-flag {
    width: 24px;
    height: 16px;
    object-fit: cover;
    margin-right: 8px;
    border-radius: 2px;
    vertical-align: -2px;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.18);
}

.commander-skill-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.commander-class-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 24px;
    padding: 0 8px;
    border: 1px solid rgba(197, 160, 89, 0.45);
    border-radius: 4px;
    color: var(--accent-gold);
    background: rgba(197, 160, 89, 0.08);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
}

.commander-rank-table-wrap {
    border: 1px solid rgba(197, 160, 89, 0.18);
    border-radius: 4px;
}

.commander-rank-table th:first-child,
.commander-rank-table td:first-child {
    width: 95px;
    text-align: center;
}

.commander-rank-table th:nth-child(2),
.commander-rank-table td:nth-child(2) {
    width: 135px;
    text-align: right;
}

.commander-rank-table td:last-child {
    color: var(--text-main);
    font-weight: 700;
}

.commander-skill-category.command-category-open .commander-skill-grid {
    max-height: none;
    overflow: visible;
    opacity: 1;
    margin-top: 20px;
}

.commander-skill-card {
    align-items: flex-start;
    position: relative;
    padding-right: 42px;
}

.commander-skill-icon {
    width: 46px;
    height: 46px;
    object-fit: contain;
    flex: 0 0 46px;
    filter: drop-shadow(0 8px 10px rgba(0,0,0,0.35));
}

@media (max-width: 700px) {
    .commanders-search-row {
        grid-template-columns: 1fr;
    }

    .commander-category-count {
        display: none;
    }

    .commanders-command-grid {
        grid-template-columns: 1fr;
    }
}
