.club-profile {
    max-width: none;
    display: grid;
    gap: 1.5rem;
}
.club-profile-logo {
    width: 140px;
    height: 140px;
    margin: 0 auto;
}
.club-profile-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.club-profile-content { min-width: 0; }
.club-counts {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}
.club-count--total { grid-column: 1 / -1; }
.club-count {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
}
.club-count dt {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
}
.club-count svg { width: 32px; height: 32px; flex: 0 0 32px; }
.club-count--mcr dt { color: var(--mcr-green); }
.club-count--riichi dt { color: var(--riichi-red); }
.club-count dd { margin: 0; font-size: 1.4rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.club-count-note { margin: 1rem 0 0; color: #666; font-size: 0.85rem; }
.club-ranking--mcr .ranking-table thead th { background: var(--mcr-green); }
.club-ranking--mcr .match-table thead th { background: var(--mcr-green); }
.club-activity { padding: 24px; margin-bottom: 28px; border: 1px solid #ddd; border-radius: 8px; }
.club-activity h2, .club-matches h2 { font-size: 1.3rem; font-weight: 700; }
.club-activity-counts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 20px 0; }
.club-activity-counts > div { background: #f5f5f5; text-align: center; padding: 14px 8px; border-radius: 6px; }
.club-activity-counts dt { font-size: .9rem; color: #555; }
.club-activity-counts dd { font-size: 1.8rem; font-weight: 700; margin: 4px 0 0; }
.club-matches { margin-top: 32px; }
.club-encounters { padding: 24px; margin-bottom: 28px; border: 1px solid #ddd; border-radius: 8px; }
.club-encounters h2 { font-size: 1.3rem; font-weight: 700; }
.club-encounters-table { width: 100%; border-collapse: collapse; }
.club-encounters-table th, .club-encounters-table td { padding: 10px 8px; border-bottom: 1px solid #ddd; }
.club-encounters-table th:first-child { text-align: left; }
.club-encounters-table th:last-child, .club-encounters-table td { text-align: right; }
.club-encounters-table td { font-weight: 700; font-variant-numeric: tabular-nums; }
.club-encounters-table .secondary-link { padding-left: 0; text-align: left; justify-content: flex-start; gap: 10px; }
.club-encounter-logo { width: 36px; height: 36px; flex: 0 0 36px; object-fit: contain; }
@media (max-width: 600px) { .club-encounters { padding: 16px; } .club-encounters-table th:last-child { width: 100px; } }
.club-monthly { --club-chart-color: var(--riichi-red); padding: 24px; margin-bottom: 28px; border: 1px solid #ddd; border-radius: 8px; }
.club-ranking--mcr .club-monthly { --club-chart-color: var(--mcr-green); }
.club-monthly h2 { font-size: 1.3rem; font-weight: 700; }
.club-monthly-controls { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 16px 0; }
.club-monthly-controls select { min-height: 44px; border: 1px solid #777; border-radius: 6px; padding: 8px 12px; background: white; color: #333; }
.club-monthly-legend { display: flex; gap: 16px; flex-wrap: wrap; }
.club-monthly-legend > span { display: inline-flex; gap: 8px; align-items: center; }
.club-monthly-key { display: inline-block; width: 16px; height: 16px; background: var(--club-chart-color); }
.club-monthly-key--members { background: repeating-linear-gradient(135deg, #526574 0 3px, #e7edf1 3px 6px); }
.club-monthly-scroll { overflow-x: auto; padding: 26px 0 8px; }
.club-monthly-chart { display: grid; grid-template-columns: repeat(var(--month-count), minmax(92px, 1fr)); gap: 12px; }
.club-monthly-bars { height: 180px; display: flex; align-items: flex-end; justify-content: center; gap: 12px; border-bottom: 1px solid #ccc; }
.club-monthly-bar { width: 24px; position: relative; background: var(--club-chart-color); }
.club-monthly-bar--members { background: repeating-linear-gradient(135deg, #526574 0 3px, #e7edf1 3px 6px); }
.club-monthly-bar > span { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); padding-bottom: 4px; color: #333; font-size: .85rem; }
.club-monthly-label { display: block; text-align: center; font-size: .8rem; margin-top: 10px; white-space: nowrap; }
.club-monthly :focus-visible { outline: 3px solid #0d6efd; outline-offset: 3px; }
@media (max-width: 600px) { .club-monthly { padding: 16px; } }
@media (max-width: 600px) { .club-activity-counts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .club-activity { padding: 16px; } }
@media (min-width: 768px) {
    .club-profile { grid-template-columns: 180px minmax(0, 1fr); text-align: left; gap: 2rem; }
    .club-profile-logo { position: relative; width: 100%; height: auto; min-height: 180px; }
    .club-profile-logo img { position: absolute; inset: 0; }
    .club-counts { display: flex; flex-wrap: wrap; gap: 1rem 2rem; }
    .club-count { justify-content: flex-start; }
}

.club-profile .player-profile-name { margin-bottom: 0.65rem; }
.club-community {
    margin: 0 0 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    color: #666;
}
.club-community .autonomy-flag { cursor: default; }
@media (min-width: 768px) {
    .club-community { justify-content: flex-start; }
}
