/* Auto-wydzielone z klub.php. Logika strony bez zmian. */

body.club-not-found-page {
                min-height: 100vh;
                margin: 0;
                display: flex;
                flex-direction: column;
                background:
                    radial-gradient(
                        circle at 50% 15%,
                        rgba(57, 255, 20, 0.06),
                        transparent 35%
                    ),
                    #121212;
                color: #fff;
            }

            .club-not-found {
                width: min(560px, calc(100% - 32px));
                margin: auto;
                padding: 34px 26px;
                border: 1px solid #333;
                border-radius: 13px;
                background: #191919;
                text-align: center;
                box-sizing: border-box;
            }

            .club-not-found-icon {
                width: 58px;
                height: 58px;
                margin: 0 auto 18px;
                display: grid;
                place-items: center;
                border: 1px solid rgba(57, 255, 20, 0.34);
                border-radius: 12px;
                background: rgba(57, 255, 20, 0.07);
                color: #39ff14;
                font-size: 23px;
                line-height: 1;
            }

            .club-not-found h1 {
                margin: 0;
                font-size: 29px;
            }

            .club-not-found p {
                margin: 13px 0 22px;
                color: #999;
                line-height: 1.65;
            }

            .club-not-found a {
                min-height: 44px;
                padding: 10px 17px;
                display: inline-flex;
                align-items: center;
                justify-content: center;
                gap: 9px;
                border: 1px solid #39ff14;
                border-radius: 8px;
                background: #39ff14;
                color: #050505;
                font-weight: 900;
                text-decoration: none;
                box-sizing: border-box;
            }

            .club-not-found a i {
                width: 17px;
                height: 17px;
                display: inline-grid;
                place-items: center;
                line-height: 1;
            }

body.club-page {
            min-height: 100vh;
            margin: 0;
            overflow-x: hidden;
            background:
                radial-gradient(
                    circle at 15% 4%,
                    rgba(57, 255, 20, 0.055),
                    transparent 26%
                ),
                #121212;
            color: #e6e6e6;
        }

        .public-topbar {
            border-bottom: 1px solid #282828;
            background: rgba(18, 18, 18, 0.96);
        }

        .public-topbar-inner {
            width: min(1180px, calc(100% - 32px));
            min-height: 72px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 20px;
        }

        .public-brand {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            color: #fff;
            text-decoration: none;
            font-size: 21px;
            font-weight: 900;
        }

        .public-brand img {
            width: 42px;
            height: 42px;
            display: block;
            object-fit: contain;
        }

        .public-brand span {
            color: #39ff14;
        }

        .public-actions {
            display: flex;
            align-items: center;
            gap: 9px;
        }

        .public-action {
            min-height: 40px;
            padding: 9px 14px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            border: 1px solid #3a3a3a;
            border-radius: 7px;
            background: #1d1d1d;
            color: #fff;
            text-decoration: none;
            font-size: 13px;
            font-weight: 800;
            box-sizing: border-box;
        }

        .public-action-primary {
            border-color: #39ff14;
            background: #39ff14;
            color: #050505;
        }

        .public-action i {
            width: 16px;
            height: 16px;
            display: inline-grid !important;
            place-items: center;
            flex: 0 0 16px;
            color: inherit !important;
            font-size: 14px;
            line-height: 1 !important;
        }

        .public-action-primary i {
            color: #050505 !important;
        }

        .club-shell {
            width: min(1160px, calc(100% - 32px));
            margin: 0 auto;
            padding: 42px 0 58px;
        }

        .club-breadcrumbs {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 21px;
            color: #777;
            font-size: 13px;
        }

        .club-breadcrumbs a {
            color: #9b9b9b;
            text-decoration: none;
        }

        .club-breadcrumbs a:hover {
            color: #39ff14;
        }

        .club-breadcrumbs i {
            width: 12px;
            height: 12px;
            display: inline-grid !important;
            place-items: center;
            flex: 0 0 12px;
            font-size: 9px;
            line-height: 1 !important;
        }

        .club-hero {
            padding: 31px;
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto;
            align-items: center;
            gap: 26px;
            border: 1px solid #333;
            border-radius: 14px;
            background:
                linear-gradient(
                    135deg,
                    rgba(57, 255, 20, 0.075),
                    transparent 56%
                ),
                #191919;
            box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
        }

        .club-hero-main {
            min-width: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
        }

        .team-colors {
            min-height: 43px;
            display: flex;
            align-items: center;
            justify-content: flex-start;
            gap: 4px;
        }

        /* Wyśrodkowanie dotyczy tylko głównych barw przy nazwie klubu. */
        .club-hero-main > .team-colors {
            width: 100%;
            justify-content: center;
        }

        .team-colors i {
            width: 40px;
            height: 40px;
            display: inline-grid !important;
            place-items: center;
            line-height: 1 !important;
            -webkit-text-stroke: 1.5px #000;
            filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.76));
        }

        .club-hero h1 {
            width: 100%;
            margin: 13px 0 0;
            color: #fff;
            font-size: clamp(32px, 5vw, 54px);
            line-height: 1.08;
            letter-spacing: -1.2px;
            text-align: center;
            overflow-wrap: anywhere;
        }

        .club-badges {
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 18px;
        }

        .club-badge {
            min-height: 34px;
            padding: 7px 11px;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            border: 1px solid #383838;
            border-radius: 999px;
            background: rgba(0, 0, 0, 0.17);
            color: #aaa;
            font-size: 12px;
            box-sizing: border-box;
        }

        .club-badge i {
            width: 15px;
            height: 15px;
            display: inline-grid !important;
            place-items: center;
            flex: 0 0 15px;
            color: #39ff14;
            line-height: 1 !important;
        }

        .club-hero-stats {
            min-width: 210px;
            display: grid;
            gap: 9px;
        }

        .club-hero-stat {
            padding: 13px 15px;
            display: flex;
            align-items: center;
            gap: 11px;
            border: 1px solid #333;
            border-radius: 9px;
            background: rgba(0, 0, 0, 0.16);
        }

        .club-hero-stat i {
            width: 34px;
            height: 34px;
            display: inline-grid !important;
            place-items: center;
            flex: 0 0 34px;
            border-radius: 8px;
            background: rgba(57, 255, 20, 0.07);
            color: #39ff14;
            font-size: 14px;
            line-height: 1 !important;
        }

        .club-hero-stat span {
            display: block;
            color: #777;
            font-size: 10px;
            line-height: 1.3;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .club-hero-stat strong {
            display: block;
            margin-top: 2px;
            color: #fff;
            font-size: 17px;
            line-height: 1.2;
        }

        .club-dashboard {
            display: grid;
            grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
            gap: 18px;
            margin-top: 22px;
        }

        .club-panel {
            padding: 23px;
            border: 1px solid #303030;
            border-radius: 12px;
            background: #191919;
            box-sizing: border-box;
        }

        .club-panel-heading {
            display: flex;
            align-items: center;
            gap: 11px;
            margin-bottom: 17px;
        }

        .club-panel-heading-icon {
            width: 38px;
            height: 38px;
            display: inline-grid !important;
            place-items: center;
            flex: 0 0 38px;
            border: 1px solid rgba(57, 255, 20, 0.31);
            border-radius: 9px;
            background: rgba(57, 255, 20, 0.07);
            color: #39ff14;
            line-height: 1 !important;
        }

        .club-panel-heading h2 {
            margin: 0;
            color: #fff;
            font-size: 20px;
            line-height: 1.3;
        }

        .club-panel-subtitle {
            margin: -7px 0 17px 49px;
            color: #7d7d7d;
            font-size: 11px;
            line-height: 1.5;
        }

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

        .rating-row {
            padding: 11px 12px;
            border: 1px solid #2f2f2f;
            border-radius: 9px;
            background: #161616;
        }

        .rating-row-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 13px;
        }

        .rating-label {
            display: flex;
            align-items: center;
            gap: 9px;
            color: #d5d5d5;
            font-size: 13px;
            font-weight: 750;
        }

        .rating-label i {
            width: 20px;
            height: 20px;
            display: inline-grid !important;
            place-items: center;
            flex: 0 0 20px;
            line-height: 1 !important;
        }

        .rating-value {
            color: #fff;
            font-size: 14px;
            font-weight: 900;
        }

        .rating-value span {
            color: #6f6f6f;
            font-size: 10px;
            font-weight: 600;
        }

        .rating-track {
            height: 5px;
            margin-top: 9px;
            overflow: hidden;
            border-radius: 999px;
            background: #2d2d2d;
        }

        .rating-fill {
            width: var(--rating-width);
            height: 100%;
            border-radius: inherit;
            background: var(--rating-color);
        }

        .rating-overall {
            margin-top: 15px;
            padding: 16px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            border: 1px solid rgba(57, 255, 20, 0.38);
            border-radius: 10px;
            background: rgba(57, 255, 20, 0.055);
        }

        .rating-overall-label {
            color: #aaa;
            font-size: 11px;
            line-height: 1.45;
            text-transform: uppercase;
            letter-spacing: 0.65px;
        }

        .rating-overall-value {
            color: #39ff14;
            font-size: 27px;
            font-weight: 950;
            line-height: 1;
        }

        .rating-overall-value span {
            color: #7a7a7a;
            font-size: 12px;
        }

        .club-empty-rating {
            min-height: 275px;
            display: grid;
            place-items: center;
            color: #777;
            text-align: center;
        }

        .club-empty-rating i {
            width: 52px;
            height: 52px;
            margin: 0 auto 12px;
            display: grid;
            place-items: center;
            border-radius: 11px;
            background: rgba(57, 255, 20, 0.06);
            color: #39ff14;
            font-size: 20px;
            line-height: 1;
        }

        .club-empty-rating strong {
            display: block;
            margin-bottom: 5px;
            color: #ddd;
        }

        .club-map {
            width: 100%;
            height: 390px;
            overflow: hidden;
            border: 1px solid #303030;
            border-radius: 9px;
            background: #131313;
        }

        .club-map-empty {
            height: 100%;
            display: grid;
            place-items: center;
            color: #777;
            text-align: center;
        }

        .club-map-empty i {
            width: 48px;
            height: 48px;
            margin: 0 auto 10px;
            display: grid;
            place-items: center;
            border-radius: 10px;
            background: rgba(57, 255, 20, 0.06);
            color: #39ff14;
            font-size: 19px;
            line-height: 1;
        }

        .matches-panel {
            margin-top: 18px;
        }

        .matches-summary {
            margin: -6px 0 17px 49px;
            color: #7f7f7f;
            font-size: 11px;
            line-height: 1.5;
        }

        .matches-list {
            display: grid;
            gap: 9px;
        }

        .match-row {
            padding: 12px 14px;
            display: grid;
            grid-template-columns: 58px minmax(0, 1fr) auto;
            align-items: center;
            gap: 14px;
            border: 1px solid #2f2f2f;
            border-radius: 9px;
            background: #161616;
        }

        .match-date {
            padding-right: 12px;
            border-right: 1px solid #303030;
            text-align: center;
        }

        .match-date strong {
            display: block;
            color: #fff;
            font-size: 16px;
            line-height: 1.15;
        }

        .match-date span {
            display: block;
            margin-top: 3px;
            color: #777;
            font-size: 10px;
        }

        .match-main {
            min-width: 0;
        }

        .match-teams {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 8px;
            color: #e8e8e8;
            font-size: 14px;
            font-weight: 850;
            line-height: 1.4;
        }

        .match-teams .team-colors {
            width: auto;
            min-height: 20px;
            justify-content: flex-start;
            flex: 0 0 auto;
            gap: 1px;
        }

        .match-teams .team-colors i {
            width: 18px;
            height: 18px;
            font-size: 15px !important;
            -webkit-text-stroke-width: 1px;
        }

        .match-versus {
            color: #666;
            font-size: 11px;
            font-weight: 700;
        }

        .match-meta {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 6px 10px;
            margin-top: 5px;
            color: #6f6f6f;
            font-size: 10px;
        }

        .match-meta span {
            display: inline-flex;
            align-items: center;
            gap: 5px;
        }

        .match-meta i {
            width: 13px;
            height: 13px;
            display: inline-grid !important;
            place-items: center;
            line-height: 1 !important;
        }

        .match-score {
            min-width: 58px;
            padding: 8px 10px;
            border: 1px solid #343434;
            border-radius: 7px;
            background: #101010;
            color: #39ff14;
            font-size: 15px;
            font-weight: 950;
            text-align: center;
            box-sizing: border-box;
        }

        .matches-empty {
            padding: 30px 20px;
            color: #777;
            text-align: center;
        }

        .matches-empty i {
            width: 48px;
            height: 48px;
            margin: 0 auto 11px;
            display: grid;
            place-items: center;
            border-radius: 10px;
            background: rgba(57, 255, 20, 0.06);
            color: #39ff14;
            font-size: 18px;
            line-height: 1;
        }

        .club-cta {
            margin-top: 18px;
            padding: 24px;
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto;
            align-items: center;
            gap: 24px;
            border: 1px solid rgba(57, 255, 20, 0.36);
            border-radius: 12px;
            background:
                linear-gradient(
                    135deg,
                    rgba(57, 255, 20, 0.06),
                    transparent 58%
                ),
                #191919;
        }

        .club-cta h2 {
            display: flex;
            align-items: center;
            gap: 10px;
            margin: 0;
            color: #fff;
            font-size: 20px;
        }

        .club-cta h2 i {
            width: 32px;
            height: 32px;
            display: inline-grid !important;
            place-items: center;
            flex: 0 0 32px;
            border-radius: 8px;
            background: rgba(57, 255, 20, 0.1);
            color: #39ff14;
            font-size: 14px;
            line-height: 1 !important;
        }

        .club-cta p {
            margin: 9px 0 0;
            color: #999;
            line-height: 1.6;
        }

        .club-cta-button {
            min-height: 44px;
            padding: 10px 16px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 9px;
            border: 1px solid #39ff14;
            border-radius: 8px;
            background: #39ff14;
            color: #050505;
            font-size: 13px;
            font-weight: 900;
            text-decoration: none;
            box-sizing: border-box;
        }

        .club-cta-button i {
            width: 18px;
            height: 18px;
            display: inline-grid !important;
            place-items: center;
            flex: 0 0 18px;
            position: static !important;
            margin: 0 !important;
            padding: 0 !important;
            color: #050505 !important;
            font-size: 15px;
            line-height: 1 !important;
            text-align: center;
            transform: none !important;
            opacity: 1 !important;
            visibility: visible !important;
        }

        .club-cta-button i::before {
            display: block;
            margin: 0;
            color: #050505 !important;
            line-height: 1 !important;
        }

        .club-page .footer-socials a {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            text-decoration: none !important;
            line-height: 1;
        }

        .club-page .club-cta-button {
            overflow: visible;
        }

        .club-page .club-cta-button > i,
        .club-page .public-action-primary > i {
            color: #050505 !important;
            opacity: 1 !important;
            visibility: visible !important;
        }

        .club-page .club-badge i::before,
        .club-page .club-panel-heading-icon i::before,
        .club-page .club-hero-stat i::before,
        .club-page .club-cta-button i::before {
            display: block;
            line-height: 1 !important;
        }

        .leaflet-control-attribution {
            font-size: 9px;
        }

        @media (max-width: 980px) {
            .club-hero {
                grid-template-columns: 1fr;
            }

            .club-hero-stats {
                width: 100%;
                min-width: 0;
                grid-template-columns: repeat(3, minmax(0, 1fr));
            }

            .club-dashboard {
                grid-template-columns: 1fr;
            }

            .club-cta {
                grid-template-columns: 1fr;
            }

            .club-cta-button {
                justify-self: start;
            }
        }

        @media (max-width: 720px) {
            .club-hero-stats {
                grid-template-columns: 1fr;
            }

            .club-hero-stat {
                width: 100%;
                box-sizing: border-box;
            }

            .club-panel-heading {
                align-items: center;
            }

            .club-panel-heading h2 {
                overflow-wrap: anywhere;
            }

            .rating-row-head {
                align-items: flex-start;
            }

            .match-row {
                grid-template-columns: 52px minmax(0, 1fr);
            }

            .match-score {
                grid-column: 2;
                justify-self: start;
            }

            .club-map {
                height: clamp(280px, 58vw, 360px);
            }
        }

        @media (max-width: 620px) {
            .public-topbar-inner,
            .club-shell {
                width: min(100% - 22px, 1160px);
            }

            .public-action-secondary {
                display: none;
            }

            .club-shell {
                padding-top: 28px;
            }

            .club-hero {
                padding: 24px 16px;
                gap: 20px;
            }

            .club-hero-main > .team-colors {
                justify-content: center;
            }

            .club-hero h1 {
                font-size: clamp(29px, 10vw, 42px);
                text-align: center;
                letter-spacing: -0.5px;
            }

            .club-badges {
                justify-content: center;
                gap: 7px;
            }

            .club-badge {
                max-width: 100%;
                min-height: 32px;
                padding: 6px 10px;
                white-space: normal;
                text-align: center;
            }

            .club-hero-stats {
                grid-template-columns: 1fr;
            }

            .club-panel {
                padding: 20px 16px;
            }

            .club-panel-subtitle,
            .matches-summary {
                margin-left: 0;
            }

            .club-map {
                height: 320px;
            }

            .match-row {
                padding: 11px;
                grid-template-columns: 46px minmax(0, 1fr);
                gap: 10px;
            }

            .match-score {
                grid-column: 2;
                justify-self: start;
            }

            .match-date {
                align-self: stretch;
                display: flex;
                flex-direction: column;
                justify-content: center;
                padding-right: 8px;
            }

            .match-teams {
                gap: 6px;
                font-size: 13px;
            }

            .match-meta {
                align-items: flex-start;
            }

            .club-cta {
                padding: 21px 18px;
            }

            .club-cta-button {
                width: 100%;
            }
        }

        @media (max-width: 420px) {
            .club-shell {
                width: calc(100% - 16px);
            }

            .club-breadcrumbs {
                gap: 6px;
                font-size: 11px;
            }

            .club-hero {
                padding: 21px 13px;
                border-radius: 11px;
            }

            .team-colors i {
                width: 34px;
                height: 34px;
            }

            .club-badge {
                width: 100%;
                justify-content: center;
            }

            .club-panel {
                padding: 17px 12px;
            }

            .club-panel-heading {
                gap: 9px;
            }

            .club-panel-heading-icon {
                width: 34px;
                height: 34px;
                flex-basis: 34px;
            }

            .club-panel-heading h2 {
                font-size: 17px;
            }

            .rating-row {
                padding: 10px;
            }

            .rating-row-head {
                gap: 8px;
            }

            .rating-label {
                gap: 6px;
                font-size: 12px;
            }

            .rating-overall {
                align-items: flex-start;
                flex-direction: column;
            }

            .match-row {
                grid-template-columns: 1fr;
            }

            .match-date {
                padding: 0 0 8px;
                border-right: 0;
                border-bottom: 1px solid #303030;
                text-align: left;
                align-items: flex-start;
            }

            .match-date strong,
            .match-date span {
                display: inline;
            }

            .match-score {
                grid-column: 1;
            }

            .club-cta {
                padding: 18px 14px;
            }

            .club-cta h2 {
                align-items: flex-start;
                font-size: 18px;
            }
        }
