
.module-card-head {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.module-image {
    width: 54px;
    height: 54px;
    object-fit: contain;
    flex: 0 0 54px;
    filter: drop-shadow(0 8px 12px rgba(0,0,0,0.35));
}

.module-profile-list strong {
    max-width: 52%;
    overflow-wrap: anywhere;
}

.ranked-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 140px;
    gap: 16px;
    align-items: center;
}

.ranked-layout > .ship-stats.ranked-stats {
    grid-template-columns: 1fr;
}

.ranked-layout > .ranked-image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ranked-rank-icon {
    width: 145px;
    height: 145px;
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(197, 160, 89, 0.22));
}

.clan-overview {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.9fr);
    gap: 24px;
    align-items: start;
    margin-bottom: 42px;
}

.clan-overview-single {
    grid-template-columns: 1fr;
}

.clan-description {
    color: var(--text-muted);
    line-height: 1.7;
    white-space: pre-line;
}

.clan-profile-list,
.clan-role-list {
    display: grid;
    gap: 10px;
}

.clan-profile-list > div,
.clan-role-list > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 11px 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.clan-profile-list > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
}

.clan-profile-list span,
.clan-role-list span,
.clan-profile-list small {
    color: var(--text-muted);
}

.clan-profile-list strong,
.clan-role-list strong {
    color: #fff;
}

.clan-role-list strong {
    color: var(--accent-gold);
    font-size: 1.2rem;
}

.clan-battle-rank-value {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
}

.clan-battle-rank-value span {
    color: #fff;
}

.clan-battle-rank-icon {
    width: 74px;
    height: 74px;
    flex: 0 0 74px;
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(197, 160, 89, 0.22));
}

.clan-insight-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
    gap: 20px;
    align-items: stretch;
}

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

.clan-highlight-card {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 20px;
    color: inherit;
    text-decoration: none;
    background: rgba(0,0,0,0.22);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 5px;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.clan-highlight-card:hover {
    border-color: rgba(197, 160, 89, 0.45);
    background: rgba(197, 160, 89, 0.08);
}

.clan-highlight-card svg {
    width: 22px;
    height: 22px;
    color: var(--accent-gold);
}

.clan-highlight-card span,
.clan-highlight-card small {
    color: var(--text-muted);
}

.clan-highlight-card strong {
    color: #fff;
    font-size: 1.05rem;
}

.clan-record-count-card a {
    display: block;
    margin-top: 9px;
    color: #fff;
    text-decoration: none;
}

.clan-record-count-card small {
    display: block;
    margin-top: 5px;
    color: var(--text-muted);
}

.clan-record-count-card small a {
    display: inline;
    margin: 0;
    color: var(--accent-gold);
}

.clan-command-list {
    display: grid;
    gap: 12px;
}

.clan-note {
    color: var(--text-muted);
    margin: 0 0 22px;
}

.section-action-row {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin: 0 0 22px;
}

.clan-detail-actions {
    margin-top: 30px;
}

.clan-summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.clan-battle-history-wrap {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, margin-top 0.3s ease;
}

.command-category.command-category-open .clan-battle-history-wrap {
    max-height: none;
    overflow-x: auto;
    opacity: 1;
    margin-top: 24px;
}

.ranked-battle-history-panel {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, margin-top 0.3s ease;
}

.command-category.command-category-open .ranked-battle-history-panel {
    max-height: none;
    overflow: visible;
    opacity: 1;
    margin-top: 20px;
}

.clan-battle-history-table,
.clan-ranking-table {
    min-width: 980px;
}

.player-ranking-table {
    min-width: 920px;
}

.player-ranking-mode-tabs {
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.player-ranking-mode-tabs .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.player-ranking-mode-tabs .btn svg {
    width: 16px;
    height: 16px;
}

.player-ranking-name {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
}

.player-ranking-clan {
    color: var(--text-muted) !important;
}

.player-ranking-pr,
.player-ranking-ship,
.table-subtle,
.table-empty {
    color: var(--text-muted);
}

.player-ranking-ship a {
    color: var(--text-muted);
}

.mode-ranking-link {
    text-decoration: none;
}

.mode-ranking-link:hover {
    color: var(--accent-gold);
}

.player-ranking-table tbody tr.player-ranking-highlight {
    background: rgba(197, 160, 89, 0.13);
    box-shadow: inset 3px 0 0 var(--accent-gold);
}

.player-ranking-table tbody tr.player-ranking-highlight:hover {
    background: rgba(197, 160, 89, 0.18);
}

.player-rank-history-grid {
    align-items: stretch;
}

.player-rank-history-card {
    overflow: hidden;
}

.player-rank-history-link {
    color: var(--text-muted);
    font-size: 0.84rem;
    text-decoration: none;
}

.player-rank-history-link:hover {
    color: var(--accent-gold);
}

.player-rank-history-summary {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    margin: 12px 0 10px;
}

.player-rank-history-summary strong {
    color: #fff;
    font-size: 1.65rem;
    letter-spacing: 0.02em;
}

.player-rank-history-move {
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 0.82rem;
    color: var(--text-muted);
    background: rgba(0,0,0,0.22);
    white-space: nowrap;
}

.player-rank-history-move.rank-move-up {
    color: #9df2c5;
    border-color: rgba(90, 220, 150, 0.24);
    background: rgba(90, 220, 150, 0.08);
}

.player-rank-history-move.rank-move-down {
    color: #ffb4a8;
    border-color: rgba(255, 120, 100, 0.24);
    background: rgba(255, 120, 100, 0.08);
}

.player-rank-history-chart {
    display: block;
    width: 100%;
    height: 132px;
    margin: 8px 0 12px;
    border-radius: 10px;
    /*background:
        linear-gradient(180deg, rgba(197, 160, 89, 0.08), rgba(0,0,0,0.06)),
        rgba(0,0,0,0.18); */
}

.player-rank-history-chart line {
    stroke: rgba(255,255,255,0.08);
    stroke-width: 1;
}

.player-rank-history-chart polyline {
    fill: none;
    stroke: var(--accent-gold);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 5px rgba(197, 160, 89, 0.38));
}

.player-rank-history-chart circle {
    fill: var(--accent-gold);
    stroke: #101417;
    stroke-width: 1.5;
}

.player-rank-history-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.player-rank-history-empty,
.player-rank-history-passive {
    margin-top: 16px;
}

.player-rank-history-passive .bot-commands-grid {
    margin-top: 0;
}

.player-rank-history-passive-card .player-rank-history-move {
    margin-left: 8px;
    padding: 2px 7px;
    font-size: 0.76rem;
}

.clan-ranking-note {
    margin-bottom: 22px;
}
