.club2-body {
    background: #f5f7f6;
}

.club2-body .club-profile-page {
    width: min(1380px, calc(100% - 48px));
    margin: 0 auto;
    padding: 28px 0 72px;
}

.club2-body .back-link {
    display: inline-flex;
    align-items: center;
    margin-bottom: 18px;
    color: #5d6872;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.club2-hero,
.club2-card,
.club2-stats article,
.club2-subnav {
    background: #fff;
    border: 1px solid #e5e9e7;
    box-shadow: 0 8px 26px rgba(18, 27, 23, .045);
}

.club2-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    min-height: 190px;
    padding: 30px 34px;
    border-radius: 22px;
}

.club2-hero-main {
    display: flex;
    align-items: center;
    gap: 24px;
    min-width: 0;
}

.club2-crest {
    width: 126px;
    height: 126px;
    flex: 0 0 126px;
    display: grid;
    place-items: center;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(17, 24, 39, .08);
    border-radius: 31px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .09);
}

.club2-crest img {
    width: 96px;
    height: 96px;
    max-width: 96px;
    max-height: 96px;
    margin: 0;
    padding: 0;
    object-fit: contain;
    object-position: center;
    display: block;
}

.club2-crest > span {
    display: grid;
    place-items: center;
    width: 78px;
    height: 78px;
    border-radius: 24px;
    background: #ecf6f0;
    color: #169b57;
    font-size: 34px;
    font-weight: 850;
}

.club2-identity {
    min-width: 0;
}

.club2-kicker {
    display: block;
    margin-bottom: 7px;
    color: #169b57;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .1em;
}

.club2-identity h1,
.club2-section-head h2 {
    color: #111b16;
    letter-spacing: -.035em;
}

.club2-identity h1 {
    margin: 0;
    font-size: clamp(30px, 3vw, 44px);
    line-height: 1.05;
}

.club2-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    margin-top: 14px;
    color: #66726c;
    font-size: 14px;
    font-weight: 600;
}

.club2-meta a,
.club2-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: inherit;
    text-decoration: none;
}

.club2-meta a:hover { color: #169b57; }

.club2-form-inline {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 16px;
}

.club2-form-inline small {
    margin-right: 4px;
    color: #66726c;
    font-size: 13px;
    font-weight: 700;
}

.club2-form-badge {
    width: 30px;
    height: 30px;
    display: inline-grid;
    place-items: center;
    border-radius: 9px;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.club2-form-badge.is-win { background: #169b57; }
.club2-form-badge.is-draw { background: #88938e; }
.club2-form-badge.is-loss { background: #d44949; }
.club2-form-empty { color: #85908b; font-size: 13px; }

.club2-hero-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.club2-follow,
.club2-primary,
.club2-secondary,
.club2-ghost-action {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 17px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    transition: .16s ease;
}

.club2-follow,
.club2-primary {
    border: 1px solid #169b57;
    background: #169b57;
    color: #fff !important;
}

.club2-follow:hover,
.club2-primary:hover { background: #117e48; border-color: #117e48; }

.club2-secondary,
.club2-ghost-action {
    border: 1px solid #dce3df;
    background: #fff;
    color: #25312b;
}

.club2-secondary:hover,
.club2-ghost-action:hover { border-color: #169b57; color: #169b57; }

.club2-subnav {
    display: flex;
    gap: 6px;
    margin: 14px 0 24px;
    padding: 7px;
    border-radius: 15px;
    overflow-x: auto;
}

.club2-subnav a {
    flex: 0 0 auto;
    padding: 10px 14px;
    border-radius: 10px;
    color: #5d6862;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.club2-subnav a:hover { background: #f1f7f3; color: #169b57; }

.club2-top-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(310px, .75fr);
    gap: 20px;
    margin-bottom: 18px;
}

.club2-card {
    border-radius: 20px;
    padding: 24px;
}

.club2-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.club2-section-head.compact { margin-bottom: 14px; }

.club2-section-head h2 {
    margin: 0;
    font-size: 23px;
    line-height: 1.15;
}

.club2-section-head > a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #169b57;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.club2-next-meta {
    display: flex;
    align-items: center;
    gap: 10px 14px;
    flex-wrap: wrap;
    padding: 11px 13px;
    border-radius: 12px;
    background: #f6f8f7;
    color: #606d66;
    font-size: 14px;
}

.club2-next-meta span,
.club2-next-meta a { display: inline-flex; align-items: center; gap: 7px; }
.club2-next-meta strong { color: #111b16; font-size: 17px; }
.club2-next-meta a { margin-left: auto; color: #169b57; font-weight: 700; text-decoration: none; }

.club2-next-matchup {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
    padding: 28px 18px 22px;
}

.club2-next-team {
    display: grid;
    justify-items: center;
    gap: 10px;
    min-width: 0;
    text-align: center;
}

.club2-next-team strong {
    color: #17211c;
    font-size: 17px;
    line-height: 1.25;
}

.club2-next-logo {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
}

.club2-next-logo img { width: 100%; height: 100%; object-fit: contain; }
.club2-next-logo span { width: 62px; height: 62px; display: grid; place-items: center; border-radius: 50%; background: #edf2ef; color: #55615b; font-size: 24px; font-weight: 800; }

.club2-next-vs { display: grid; justify-items: center; gap: 2px; color: #8a948f; }
.club2-next-vs small { font-size: 11px; text-transform: uppercase; font-weight: 800; }
.club2-next-vs b { color: #24302a; font-size: 20px; }

.club2-next-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid #edf0ee;
}

.club2-next-footer > span {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #69746e;
    font-size: 14px;
}

.club2-next-footer > span i { color: #169b57; }

.club2-form-large { display: flex; gap: 8px; margin: 4px 0 17px; }
.club2-form-large .club2-form-badge { width: 38px; height: 38px; border-radius: 11px; font-size: 15px; }

.club2-form-record {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid #edf0ee;
}

.club2-form-record span { color: #78827d; font-size: 12px; line-height: 1.25; }
.club2-form-record b { display: block; margin-bottom: 3px; color: #17211c; font-size: 19px; }

.club2-form-highlight {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 17px;
    padding: 12px 13px;
    border-radius: 12px;
    background: #eef8f2;
    color: #466151;
    font-size: 13px;
    font-weight: 700;
}
.club2-form-highlight strong { color: #127b47; font-size: 15px; }

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

.club2-stats article {
    min-height: 126px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 18px;
    border-radius: 16px;
}

.club2-stats span { color: #69746e; font-size: 13px; font-weight: 700; }
.club2-stats strong { margin: 6px 0 2px; color: #132019; font-size: 29px; line-height: 1; letter-spacing: -.04em; }
.club2-stats small { color: #98a09c; font-size: 12px; }

.club2-match-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.club2-match-list { border-top: 1px solid #edf0ee; }

.club2-match-row {
    display: grid;
    grid-template-columns: 62px minmax(0,1fr) 58px 20px;
    align-items: center;
    gap: 14px;
    min-height: 98px;
    padding: 14px 4px;
    border-bottom: 1px solid #edf0ee;
    color: inherit;
    text-decoration: none;
}

.club2-match-row:hover .club2-match-arrow { color: #169b57; transform: translateX(2px); }
.club2-match-date { display: grid; gap: 2px; }
.club2-match-date strong { color: #1c2721; font-size: 14px; }
.club2-match-date span { color: #7a8580; font-size: 13px; }
.club2-match-body { display: grid; gap: 5px; min-width: 0; }
.club2-match-body > small { margin-bottom: 2px; color: #8b948f; font-size: 11px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.club2-match-team { display: flex; align-items: center; gap: 8px; min-width: 0; color: #57625c; font-size: 14px; }
.club2-match-team.is-club { color: #152019; font-weight: 800; }
.club2-match-team img { width: 22px; height: 22px; object-fit: contain; flex: 0 0 22px; }
.club2-match-team span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.club2-match-score { min-width: 48px; padding: 7px 5px; border-radius: 9px; background: #f2f5f3; color: #7a8580; text-align: center; font-size: 12px; font-weight: 800; }
.club2-match-score.is-finished { background: #eef8f2; color: #127b47; font-size: 15px; }
.club2-match-arrow { color: #a3aca7; transition: .15s ease; }

.club2-table-section,
.club2-body #druzyny,
.club2-venue,
.club2-schedule-details,
.club2-league-grid + * { margin-top: 20px; }

.club2-table-wrap { overflow-x: auto; border: 1px solid #e8ecea; border-radius: 14px; }
.club2-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.club2-table th { padding: 11px 10px; background: #f6f8f7; color: #78827d; font-size: 11px; font-weight: 800; text-align: center; text-transform: uppercase; letter-spacing: .04em; }
.club2-table th:nth-child(2) { text-align: left; }
.club2-table td { padding: 11px 10px; border-top: 1px solid #edf0ee; color: #56615b; font-size: 13px; text-align: center; }
.club2-table tr.is-club td { background: #eef8f2; color: #152019; font-weight: 700; }
.club2-table-team { display: flex; align-items: center; gap: 9px; text-align: left !important; min-width: 220px; }
.club2-table-team img { width: 28px; height: 28px; object-fit: contain; }

.club2-team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.club2-team-card { position: relative; border: 1px solid #e6ebe8; border-radius: 15px; background: #fbfcfb; }
.club2-team-card > a { display: grid; grid-template-columns: 48px minmax(0,1fr) 14px; align-items: center; gap: 12px; min-height: 92px; padding: 14px 52px 14px 14px; color: inherit; text-decoration: none; }
.club2-team-icon { width: 48px; height: 48px; display: grid; place-items: center; }
.club2-team-icon img { width: 100%; height: 100%; object-fit: contain; }
.club2-team-icon span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: #169b57; color: #fff; font-weight: 800; }
.club2-team-card small { display: block; margin-bottom: 3px; color: #88928d; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.club2-team-card strong { display: block; color: #18231d; font-size: 15px; }
.club2-team-card span span { display: inline-flex; align-items: center; gap: 5px; margin-top: 5px; color: #838d88; font-size: 11px; }
.club2-team-card > button { position: absolute; top: 50%; right: 14px; transform: translateY(-50%); }

.club2-league-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.club2-league-card { display: grid; gap: 5px; min-height: 130px; padding: 17px; border: 1px solid #e6ebe8; border-radius: 15px; background: #fbfcfb; color: inherit; text-decoration: none; }
.club2-league-card > span { color: #169b57; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.club2-league-card strong { color: #18231d; font-size: 16px; }
.club2-league-card small { color: #7b8680; font-size: 13px; }
.club2-league-card b { margin-top: auto; color: #55615b; font-size: 12px; }

.club2-venue-grid { display: grid; grid-template-columns: minmax(280px,.7fr) minmax(0,1.3fr); gap: 22px; align-items: stretch; }
.club2-venue-copy { align-self: center; padding: 12px 6px; }
.club2-venue-icon { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 14px; border-radius: 12px; background: #eef8f2; color: #169b57; font-size: 18px; }
.club2-venue-copy h3 { margin: 0 0 8px; font-size: 21px; }
.club2-venue-copy h3 a { color: #17211c; text-decoration: none; }
.club2-venue-copy p { margin: 0; color: #69746e; font-size: 14px; line-height: 1.55; }
.club2-venue-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.club2-map { min-height: 310px; border-radius: 16px; overflow: hidden; border: 1px solid #e2e8e4; }
.club2-verified { display: inline-flex; align-items: center; gap: 6px; color: #169b57; font-size: 12px; font-weight: 800; text-transform: uppercase; }

.club2-empty { min-height: 180px; display: grid; place-items: center; align-content: center; gap: 7px; padding: 24px; color: #87918c; text-align: center; }
.club2-empty i { color: #b0bab5; font-size: 25px; }
.club2-empty strong { color: #36423c; font-size: 15px; }
.club2-empty span { font-size: 13px; }
.club2-empty.is-small { min-height: 90px; }

.club2-schedule-details { margin-top: 20px; }
.club2-schedule-details > summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; cursor: pointer; list-style: none; }
.club2-schedule-details > summary::-webkit-details-marker { display: none; }
.club2-schedule-details > summary span { display: grid; gap: 3px; }
.club2-schedule-details > summary small { color: #169b57; font-size: 11px; font-weight: 800; }
.club2-schedule-details > summary strong { color: #17211c; font-size: 17px; }
.club2-rounds { display: grid; gap: 14px; margin-top: 20px; }
.club2-round { border: 1px solid #e7ece9; border-radius: 14px; overflow: hidden; }
.club2-round header { display: flex; justify-content: space-between; gap: 15px; padding: 12px 14px; background: #f6f8f7; }
.club2-round header div { display: grid; gap: 2px; }
.club2-round header strong { font-size: 14px; }
.club2-round header span, .club2-round header a { color: #78827d; font-size: 12px; text-decoration: none; }
.club2-source-fixture { display: grid; grid-template-columns: 100px 1fr 50px 1fr; gap: 12px; align-items: center; padding: 10px 14px; border-top: 1px solid #edf0ee; font-size: 13px; }
.club2-source-fixture time { color: #86908b; }
.club2-source-fixture strong { text-align: center; }

/* Zachowujemy panel administracyjny bez zmian funkcjonalnych. */
.club2-body .club-admin-venue-v111 { margin: 20px 0; }

@media (max-width: 1100px) {
    .club2-body .club-profile-page { width: min(100% - 32px, 1380px); }
    .club2-crest { width: 112px; height: 112px; flex-basis: 112px; border-radius: 28px; }
    .club2-crest img { width: 84px; height: 84px; max-width: 84px; max-height: 84px; }
    .club2-top-grid { grid-template-columns: 1fr; }
    .club2-stats { grid-template-columns: repeat(3,1fr); }
    .club2-team-grid, .club2-league-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 760px) {
    .club2-body .club-profile-page { width: calc(100% - 24px); padding-top: 18px; }
    .club2-hero { align-items: flex-start; flex-direction: column; padding: 22px; }
    .club2-hero-main { align-items: flex-start; gap: 16px; }
    .club2-crest { width: 84px; height: 84px; flex-basis: 84px; padding: 0; border-radius: 22px; box-shadow: 0 10px 24px rgba(15, 23, 42, .08); }
    .club2-identity h1 { font-size: 29px; }
    .club2-meta { font-size: 13px; }
    .club2-hero-actions { width: 100%; }
    .club2-hero-actions > * { flex: 1; }
    .club2-subnav { margin-bottom: 16px; }
    .club2-card { padding: 18px; border-radius: 17px; }
    .club2-section-head h2 { font-size: 21px; }
    .club2-next-matchup { gap: 10px; padding-inline: 0; }
    .club2-next-logo { width: 58px; height: 58px; }
    .club2-next-team strong { font-size: 14px; }
    .club2-next-footer { align-items: stretch; flex-direction: column; }
    .club2-stats { grid-template-columns: repeat(2,1fr); }
    .club2-stats article { min-height: 110px; }
    .club2-stats article:last-child { grid-column: 1/-1; }
    .club2-match-grid { grid-template-columns: 1fr; }
    .club2-team-grid, .club2-league-grid { grid-template-columns: 1fr; }
    .club2-venue-grid { grid-template-columns: 1fr; }
    .club2-map { min-height: 260px; }
    .club2-source-fixture { grid-template-columns: 70px 1fr 38px 1fr; gap: 7px; font-size: 11px; }
}

@media (max-width: 480px) {
    .club2-hero-main { display: grid; grid-template-columns: 70px minmax(0,1fr); }
    .club2-crest { width: 84px; height: 84px; flex-basis: 84px; }
    .club2-identity h1 { font-size: 25px; }
    .club2-meta { gap: 6px 10px; }
    .club2-form-inline { grid-column: 1 / -1; }
    .club2-ghost-action { display: none; }
    .club2-stats { gap: 9px; }
    .club2-stats strong { font-size: 25px; }
    .club2-match-row { grid-template-columns: 52px minmax(0,1fr) 46px 12px; gap: 8px; }
    .club2-match-team { font-size: 13px; }
    .club2-match-team img { width: 20px; height: 20px; flex-basis: 20px; }
    .club2-table-section { padding-inline: 14px; }
}


/* v31 — normalizacja kadru herbów na profilach klubów */
.club2-crest,
.club2-next-logo,
.club2-team-icon {
    overflow: hidden;
}

.club2-crest img {
    width: 100%;
    height: 100%;
    padding: 6px;
    box-sizing: border-box;
    object-fit: contain;
    object-position: center;
    display: block;
}

.club2-next-logo {
    padding: 7px;
    box-sizing: border-box;
    border: 1px solid #e8edea;
    border-radius: 14px;
    background: #fbfcfb;
}

.club2-next-logo img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    padding: 0;
    object-fit: contain;
    object-position: center;
    display: block;
}

.club2-match-team img,
.club2-table-team img,
.club2-team-icon img {
    object-fit: contain;
    object-position: center;
    display: block;
    box-sizing: border-box;
}

.club2-table-team img {
    padding: 2px;
    border-radius: 6px;
    background: #fff;
}

.club2-team-icon img {
    padding: 4px;
}

/* v32 — normalizacja wizualnego rozmiaru herbów, bez sztucznych ramek i kadrowania */
.club2-next-logo {
    width: 96px;
    height: 96px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
}

.club2-next-logo img {
    width: auto;
    height: auto;
    max-width: 88px;
    max-height: 88px;
    margin: auto;
    padding: 0;
    object-fit: contain;
    object-position: center;
    display: block;
    filter: drop-shadow(0 3px 5px rgba(17, 24, 39, .08));
}

.club2-next-logo span {
    width: 72px;
    height: 72px;
}

.club2-crest {
    overflow: hidden;
    padding: 0;
}

.club2-crest img {
    width: 96px;
    height: 96px;
    max-width: 96px;
    max-height: 96px;
    margin: 0;
    padding: 0;
    object-fit: contain;
    object-position: center;
    display: block;
}

@media (max-width: 760px) {
    .club2-crest img {
        width: 64px;
        height: 64px;
        max-width: 64px;
        max-height: 64px;
    }

    .club2-crest > span {
        width: 58px;
        height: 58px;
        border-radius: 18px;
        font-size: 25px;
    }
}

.club2-table-team img {
    width: auto;
    height: auto;
    max-width: 30px;
    max-height: 30px;
    flex: 0 0 30px;
    object-fit: contain;
    object-position: center;
}

.club2-match-team img {
    width: auto;
    height: auto;
    max-width: 24px;
    max-height: 24px;
    flex: 0 0 24px;
    object-fit: contain;
    object-position: center;
}

.club2-team-icon {
    overflow: visible;
}

.club2-team-icon img {
    width: auto;
    height: auto;
    max-width: 46px;
    max-height: 46px;
    margin: auto;
    object-fit: contain;
    object-position: center;
}

@media (max-width: 760px) {
    .club2-next-logo {
        width: 74px;
        height: 74px;
    }

    .club2-next-logo img {
        max-width: 68px;
        max-height: 68px;
    }
}
