:root {
    --bg: #071018;
    --panel: #0a141d;
    --panel2: #0d1822;
    --line: #172530;
    --text: #f5f7f8;
    --muted: #9da8b1;
    --green: #4dd12b;
    --green2: #2f9e1c;
    --header: 74px
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, Arial, sans-serif
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: auto
}

.page-loader {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    background: #050b10;
    z-index: 9999;
    transition: .45s
}

.page-loader.hide {
    opacity: 0;
    visibility: hidden
}

.page-loader span {
    width: 44px;
    height: 44px;
    border: 3px solid rgba(255, 255, 255, .15);
    border-top-color: var(--green);
    border-radius: 50%;
    animation: spin .8s linear infinite
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

.site-header {
    height: var(--header);
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(4, 11, 16, .94);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, .04)
}

.nav-wrap {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 32px
}

.brand {
    display: block;
    width: 165px
}

.brand img {
    width: 100%;
    display: block
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 27px;
    flex: 1
}

.main-nav a,
.login-btn {
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    transition: .25s
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--green)
}

.login-btn {
    border: 1px solid #26343e;
    border-radius: 28px;
    padding: 13px 20px
}

.login-btn:hover {
    border-color: var(--green);
    color: var(--green)
}

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    padding: 0
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: #fff;
    margin: 5px
}

.hero {
    min-height: 430px;
    position: relative;
    background: url('../img/hero.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    overflow: hidden
}

.hero:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(3, 9, 13, .98) 0%, rgba(3, 9, 13, .83) 34%, rgba(3, 9, 13, .2) 68%, rgba(3, 9, 13, .08) 100%)
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 50px 0
}

.eyebrow {
    display: none
}

.hero h1 {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 48px;
    line-height: .98;
    margin: 0 0 22px;
    font-weight: 800;
    letter-spacing: .2px
}

.hero h1 span {
    color: var(--green)
}

.hero-copy {
    color: #d5dadd;
    line-height: 1.6;
    font-size: 15px
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 25px
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 15px 22px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    color: #fff;
    transition: .25s
}

.btn.primary {
    background: linear-gradient(90deg, var(--green2), var(--green));
    box-shadow: 0 10px 30px rgba(77, 209, 43, .18)
}

.btn.secondary {
    background: rgba(8, 19, 17, .8);
    border: 1px solid rgba(255, 255, 255, .08)
}

.btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.08)
}

.slider-dots {
    position: absolute;
    z-index: 3;
    bottom: 14px;
    left: 50%;
    display: flex;
    gap: 8px
}

.slider-dots span {
    width: 20px;
    height: 8px;
    border-radius: 8px;
    background: #98a1a6
}

.slider-dots span.active {
    background: var(--green)
}

.section {
    padding: 28px 0
}

.dark-section {
    background: #081119
}

.split-line {
    border-top: 1px solid #111e28
}

.two-col {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 30px
}

.panel {
    min-width: 0
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 17px
}

.section-head h2 {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 22px;
    letter-spacing: .4px;
    margin: 0;
    padding-left: 12px;
    border-left: 4px solid var(--green)
}

.section-head a {
    font-family: "Barlow Condensed", sans-serif;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    border: 1px solid #21303b;
    padding: 9px 14px;
    border-radius: 3px
}

.section-head a:hover {
    border-color: var(--green);
    color: var(--green)
}

.matches-list,
.table-wrap,
.stats-panel,
.scorers-list {
    background: linear-gradient(180deg, #0d1720, #09131b);
    border: 1px solid #12212b
}

.match-row {
    display: grid;
    grid-template-columns: 66px 1fr 35px 1fr 88px;
    align-items: center;
    min-height: 65px;
    border-bottom: 1px solid #17242d;
    text-decoration: none;
    color: #fff;
    padding: 0 12px;
    transition: .25s
}

.match-row:last-child {
    border-bottom: 0
}

.match-row:hover {
    background: #111f29;
    transform: translateX(4px)
}

.date-box {
    border-right: 1px solid #1b2a34;
    text-align: left
}

.date-box strong {
    font-size: 23px;
    line-height: 1;
    display: block
}

.date-box span {
    font-size: 11px;
    color: var(--green);
    font-weight: 700
}

.date-box small {
    display: block;
    color: #b8c0c6;
    margin-top: 3px
}

.team {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 700;
    font-size: 14px
}

.team.home {
    justify-content: flex-end
}

.team i {
    font-style: normal;
    font-size: 25px
}

.versus {
    text-align: center;
    font-size: 18px;
    font-weight: 800
}

.place {
    color: var(--green);
    font-family: "Barlow Condensed", sans-serif;
    text-align: center;
    font-size: 11px
}

.table-wrap {
    overflow: auto
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px
}

th {
    color: #aab3ba;
    text-align: center;
    font-weight: 500;
    padding: 11px 8px
}

th:nth-child(2),
td:nth-child(2) {
    text-align: left
}

td {
    text-align: center;
    border-top: 1px solid #16232d;
    padding: 8px
}

.rank {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px
}

.rank.first {
    background: var(--green2);
    border-radius: 3px
}

.club-dot {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #702b9e, #25102e);
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: -3px
}

.more-link {
    display: block;
    text-align: right;
    margin-top: 10px;
    color: var(--green);
    text-decoration: none;
    font-size: 12px;
    font-weight: 700
}

.content-grid {
    display: grid;
    grid-template-columns: 2.1fr .85fr;
    gap: 30px
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px
}

.news-card {
    background: #0b151e;
    border: 1px solid #15232d;
    transition: .25s;
    overflow: hidden
}

.news-card:hover {
    transform: translateY(-6px);
    border-color: #2c4930
}

.news-card img {
    width: 100%;
    height: 150px;
    object-fit: cover
}

.news-body {
    padding: 15px
}

.news-body time {
    font-size: 10px;
    color: #a0abb3
}

.news-body h3 {
    font-size: 14px;
    margin: 7px 0
}

.news-body p {
    font-size: 12px;
    line-height: 1.5;
    color: #ccd2d6;
    margin: 0
}

.stats-panel {
    padding: 6px 20px
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #182630
}

.stat-item:last-child {
    border-bottom: 0
}

.stat-item>span {
    width: 43px;
    height: 43px;
    border: 2px solid var(--green);
    color: var(--green);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 20px
}

.stat-item small {
    display: block;
    color: #a7b0b6;
    font-size: 10px
}

.stat-item strong {
    display: block;
    font-size: 28px;
    font-family: "Barlow Condensed", sans-serif
}

.bottom-grid {
    grid-template-columns: .95fr 1.25fr
}

.scorer-row {
    display: grid;
    grid-template-columns: 28px 38px 1fr 55px;
    align-items: center;
    padding: 9px 13px;
    border-bottom: 1px solid #17242d;
    color: #fff;
    text-decoration: none
}

.scorer-row:hover {
    background: #101f29
}

.position {
    color: var(--green)
}

.avatar {
    width: 31px;
    height: 31px;
    border-radius: 50%;
    background: #25333d;
    display: grid;
    place-items: center
}

.player b,
.goals b {
    display: block;
    font-size: 12px
}

.player small,
.goals small {
    font-size: 9px;
    color: #84919b
}

.goals {
    text-align: right
}

.goals b {
    font-size: 20px
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px
}

.gallery-grid a {
    overflow: hidden;
    border-radius: 3px
}

.gallery-grid img {
    width: 100%;
    height: 98px;
    object-fit: cover;
    display: block;
    transition: .35s
}

.gallery-grid a:hover img {
    transform: scale(1.08)
}

.social-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 28px
}

.social-row a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff
}

.social-row small {
    display: block;
    color: #c8d0d5
}

.social-icon {
    font-size: 28px
}

.social-icon.facebook {
    background: #2877df;
    border-radius: 50%;
    width: 33px;
    height: 33px;
    display: grid;
    place-items: center;
    font-weight: 700
}

.social-icon.youtube {
    color: #fff;
    background: #e32828;
    border-radius: 9px;
    padding: 4px 8px
}

.join-banner {
    background: linear-gradient(90deg, rgba(7, 36, 15, .94), rgba(35, 132, 29, .92)), url('../img/cta.jpg') center/cover no-repeat;
    border-top: 1px solid #2b5b2b;
    border-bottom: 1px solid #2b5b2b
}

.join-inner {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.join-inner h2 {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 34px;
    margin: 0
}

.join-inner p {
    margin: 3px 0 0;
    color: #e1e7e3
}

.site-footer {
    background: #071018;
    padding: 30px 0 15px
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.1fr repeat(4, 1fr);
    gap: 40px
}

.footer-logo {
    width: 150px
}

.footer-grid h4 {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 18px;
    margin: 0 0 12px
}

.footer-grid a,
.footer-grid p {
    display: block;
    color: #b7c0c6;
    text-decoration: none;
    font-size: 12px;
    line-height: 1.9;
    margin: 0
}

.footer-grid a:hover {
    color: var(--green)
}

.footer-social {
    display: flex;
    gap: 16px;
    margin-top: 10px
}

.footer-social a {
    font-size: 22px
}

.copyright {
    text-align: center;
    color: #75818a;
    font-size: 11px;
    margin-top: 14px
}

.reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: .75s cubic-bezier(.2, .7, .2, 1)
}

.reveal.visible {
    opacity: 1;
    transform: none
}

@media(max-width:1050px) {
    .main-nav {
        gap: 15px
    }

    .main-nav a {
        font-size: 11px
    }

    .two-col,
    .content-grid,
    .bottom-grid {
        grid-template-columns: 1fr
    }

    .hero {
        background-position: 62% center
    }

    .stats-panel {
        display: grid;
        grid-template-columns: repeat(2, 1fr)
    }
}

@media(max-width:820px) {
    .site-header {
        height: 68px
    }

    .brand {
        width: 135px
    }

    .nav-toggle {
        display: block;
        margin-left: auto
    }

    .login-btn {
        display: none
    }

    .main-nav {
        position: fixed;
        left: 0;
        right: 0;
        top: 68px;
        background: #061018;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 22px;
        transform: translateY(-130%);
        transition: .35s;
        z-index: -1
    }

    .main-nav.open {
        transform: none
    }

    .main-nav a {
        font-size: 14px;
        width: 100%;
        padding: 8px
    }

    .hero {
        min-height: 480px;
        background-position: 68% center
    }

    .hero:after {
        background: linear-gradient(90deg, rgba(3, 9, 13, .98), rgba(3, 9, 13, .76))
    }

    .hero h1 {
        font-size: 42px
    }

    .news-grid {
        grid-template-columns: 1fr
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr)
    }

    .social-row,
    .footer-grid {
        grid-template-columns: 1fr 1fr
    }

    .match-row {
        grid-template-columns: 58px 1fr 28px 1fr
    }

    .place {
        display: none
    }

    .join-inner {
        padding: 25px 0;
        gap: 20px
    }

    .join-inner h2 {
        font-size: 28px
    }
}

@media(max-width:540px) {
    .container {
        width: min(100% - 24px, 1180px)
    }

    .hero h1 {
        font-size: 37px
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start
    }

    .section-head h2 {
        font-size: 19px
    }

    .section-head a {
        display: none
    }

    .match-row {
        grid-template-columns: 48px 1fr 25px 1fr;
        padding: 7px 6px
    }

    .team {
        font-size: 11px;
        gap: 5px
    }

    .team i {
        font-size: 18px
    }

    .stats-panel {
        grid-template-columns: 1fr
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .social-row,
    .footer-grid {
        grid-template-columns: 1fr
    }

    .join-inner {
        flex-direction: column;
        align-items: flex-start
    }

    .join-inner .btn {
        width: 100%
    }
}

/* Integracja z CMS v2 */
.team-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px
}

.team-logo img,
.club-dot img,
.avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain
}

.club-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden
}

.avatar {
    overflow: hidden
}

.place small {
    display: block;
    margin-top: 2px;
    opacity: .68;
    font-size: 9px
}

.empty-state {
    padding: 28px 18px;
    border: 1px dashed rgba(255, 255, 255, .12);
    color: #7f8b92;
    text-align: center;
    background: rgba(255, 255, 255, .015)
}

.empty-table {
    text-align: center !important;
    color: #7f8b92 !important;
    padding: 28px !important
}

.news-grid>.empty-state {
    grid-column: 1/-1
}

.versus {
    min-width: 44px
}

/* Multi-ligowy sezon v3 */
.league-switcher-section {
    padding: 32px 0 24px;
    background: linear-gradient(180deg, #0b161e, #081119);
    border-top: 1px solid rgba(255, 255, 255, .05);
    border-bottom: 1px solid #15232d
}

.league-switcher-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px
}

.season-kicker {
    font-size: 10px;
    letter-spacing: 1.8px;
    color: var(--green);
    font-weight: 800
}

.league-switcher-head h2 {
    font: 800 34px/1 "Barlow Condensed", sans-serif;
    margin: 5px 0 6px
}

.league-switcher-head p {
    margin: 0;
    color: var(--muted);
    font-size: 13px
}

.season-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border: 1px solid #1d303b;
    background: #0b171f;
    border-radius: 6px
}

.season-summary strong {
    font: 800 30px/1 "Barlow Condensed", sans-serif;
    color: var(--green)
}

.season-summary span {
    font-size: 10px;
    color: #a8b2b9;
    font-weight: 800;
    max-width: 54px
}

.league-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 12px
}

.league-tab {
    position: relative;
    display: flex;
    min-height: 132px;
    flex-direction: column;
    padding: 17px;
    border: 1px solid #172832;
    background: linear-gradient(145deg, #0e1a23, #09131a);
    color: #fff;
    text-decoration: none;
    overflow: hidden;
    transition: .3s
}

.league-tab:before {
    content: "";
    position: absolute;
    inset: auto -35px -55px auto;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: rgba(77, 209, 43, .08);
    transition: .35s
}

.league-tab:hover {
    transform: translateY(-5px);
    border-color: #315c34
}

.league-tab:hover:before {
    transform: scale(1.35)
}

.league-tab.active {
    border-color: var(--green);
    box-shadow: inset 0 0 0 1px rgba(77, 209, 43, .22), 0 12px 35px rgba(0, 0, 0, .25);
    background: linear-gradient(145deg, #11261b, #0b171c)
}

.league-tab-status {
    align-self: flex-start;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--green);
    margin-bottom: 10px
}

.league-tab strong {
    font: 700 23px/1.05 "Barlow Condensed", sans-serif;
    position: relative;
    z-index: 1
}

.league-tab small {
    color: #99a6ae;
    font-size: 10px;
    margin-top: 7px;
    position: relative;
    z-index: 1
}

.league-tab i {
    margin-top: auto;
    padding-top: 14px;
    color: var(--green);
    font-style: normal;
    font-size: 9px;
    font-weight: 800;
    position: relative;
    z-index: 1
}

.current-league-bar {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 17px;
    padding: 10px 14px;
    border-left: 3px solid var(--green);
    background: linear-gradient(90deg, rgba(77, 209, 43, .09), transparent)
}

.current-league-bar span {
    font-size: 9px;
    color: #95a1a9;
    font-weight: 800;
    letter-spacing: 1px
}

.current-league-bar strong {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 19px
}

.current-league-bar small {
    color: var(--green);
    margin-left: auto
}

.league-switching {
    pointer-events: none;
    opacity: .72
}

.league-switching:after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(4, 10, 14, .25);
    z-index: 200
}

@media(max-width:700px) {
    .league-switcher-head {
        align-items: flex-start;
        flex-direction: column
    }

    .season-summary {
        align-self: stretch;
        justify-content: center
    }

    .league-tabs {
        grid-template-columns: 1fr
    }

    .current-league-bar {
        flex-wrap: wrap
    }

    .current-league-bar small {
        width: 100%;
        margin-left: 0
    }
}

/* PUBLIC PORTAL V4 */
.context-bar {
    position: sticky;
    top: 72px;
    z-index: 80;
    background: #0b1419;
    border-bottom: 1px solid rgba(255, 255, 255, .07)
}

.context-inner {
    min-height: 54px;
    display: flex;
    align-items: center;
    gap: 18px
}

.context-inner label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 800;
    color: #79c845
}

.context-inner select {
    background: #111d23;
    color: #fff;
    border: 1px solid #26363d;
    border-radius: 7px;
    padding: 8px 30px 8px 10px
}

.context-inner>span {
    margin-left: auto;
    color: #7e929c;
    font-size: 12px
}

.page-hero {
    padding: 85px 0 55px;
    background: linear-gradient(90deg, rgba(1, 8, 12, .98), rgba(4, 20, 18, .8)), url('../img/hero.jpg') center/cover
}

.page-hero span,
.article-page header span {
    color: #64bf31;
    font-weight: 800;
    font-size: 12px
}

.page-hero h1,
.article-page header h1 {
    font-family: 'Barlow Condensed';
    font-size: 58px;
    margin: 8px 0
}

.filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 22px
}

.filter-tabs a {
    padding: 11px 17px;
    border: 1px solid #26353c;
    border-radius: 5px;
    color: #9fb0b8;
    font-weight: 800;
    font-size: 12px
}

.filter-tabs a.active,
.filter-tabs a:hover {
    background: #54b629;
    color: #fff
}

.public-match-list {
    display: grid;
    gap: 10px
}

.public-match {
    display: grid;
    grid-template-columns: 78px 1fr 135px 1fr 180px;
    align-items: center;
    background: #101a20;
    border: 1px solid #1c2b31;
    border-left: 3px solid #294038;
    padding: 14px;
    color: #fff;
    transition: .25s
}

.public-match:hover {
    transform: translateY(-2px);
    border-color: #4cae29
}

.public-match.is-live {
    border-left-color: #e53449
}

.match-date {
    text-align: center
}

.match-date b {
    font-size: 28px
}

.match-date span,
.match-date small {
    display: block;
    color: #62bc34
}

.match-club {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    font-family: 'Barlow Condensed';
    font-size: 19px
}

.match-club.away {
    justify-content: flex-start
}

.match-club img,
.player-cell img {
    width: 45px;
    height: 45px;
    object-fit: contain
}

.match-score {
    text-align: center
}

.match-score em {
    display: block;
    color: #60bc32;
    font-style: normal;
    font-size: 10px
}

.match-score b {
    font-size: 26px
}

.match-score small {
    display: block;
    color: #6f8189
}

.match-place {
    color: #8fa1a8;
    font-size: 12px
}

.match-place span {
    display: block;
    color: #60bc32;
    margin-top: 5px
}

.match-hero {
    padding: 62px 0;
    background: radial-gradient(circle at center, #173225, #071015)
}

.match-hero.live {
    box-shadow: inset 0 3px #e53449
}

.match-badge {
    text-align: center;
    color: #67c33a;
    font-weight: 900
}

.scoreboard {
    display: grid;
    grid-template-columns: 1fr 180px 1fr;
    align-items: center;
    text-align: center;
    margin: 30px 0
}

.scoreboard>div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px
}

.scoreboard img {
    width: 100px;
    height: 100px;
    object-fit: contain
}

.scoreboard strong {
    font-family: 'Barlow Condensed';
    font-size: 70px
}

.match-info {
    text-align: center;
    color: #8da0a8
}

.match-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px
}

.timeline {
    padding: 10px
}

.timeline-event {
    display: grid;
    grid-template-columns: 50px 38px 1fr;
    gap: 12px;
    padding: 15px;
    border-bottom: 1px solid #233139
}

.timeline-event.away {
    background: rgba(83, 181, 43, .04)
}

.timeline-event time {
    color: #64bf31;
    font-weight: 900
}

.timeline-event small {
    display: block;
    color: #788c95
}

.timeline-event p {
    margin: 5px 0;
    color: #b7c2c7
}

.facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px
}

.facts dt {
    color: #71858e
}

.facts dd {
    text-align: right;
    margin: 0
}

.btn.full {
    display: block;
    text-align: center;
    margin-top: 20px
}

.table-wrap.large table {
    font-size: 14px
}

.stats-table .player-cell {
    display: flex;
    align-items: center;
    gap: 12px
}

.stats-table strong {
    font-size: 18px;
    color: #61bd34
}

.news-archive {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px
}

.news-card.extended {
    display: block
}

.news-card.extended img {
    height: 230px;
    width: 100%;
    object-fit: cover
}

.news-card.extended h2 {
    font-family: 'Barlow Condensed';
    font-size: 27px
}

.news-card.extended span {
    color: #65bf35;
    font-weight: 800;
    font-size: 11px
}

.article-page header {
    min-height: 430px;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center
}

.article-page header .container {
    padding-bottom: 55px
}

.article-content {
    max-width: 850px;
    padding-top: 45px;
    padding-bottom: 70px
}

.article-content .lead {
    font-size: 20px;
    color: #d9e1e4
}

.rich-content {
    line-height: 1.85;
    color: #c0cbd0
}

.rich-content img {
    max-width: 100%;
    height: auto
}

.news-card {
    color: inherit;
    text-decoration: none
}

@media(max-width:900px) {
    .context-inner {
        flex-wrap: wrap;
        padding: 10px 15px
    }

    .context-inner>span {
        display: none
    }

    .public-match {
        grid-template-columns: 60px 1fr 85px 1fr
    }

    .match-place {
        grid-column: 2/5;
        text-align: center;
        margin-top: 8px
    }

    .scoreboard {
        grid-template-columns: 1fr 90px 1fr
    }

    .scoreboard>div {
        display: block
    }

    .scoreboard img {
        width: 70px;
        height: 70px
    }

    .scoreboard strong {
        font-size: 45px
    }

    .match-detail-grid,
    .news-archive {
        grid-template-columns: 1fr
    }

    .page-hero h1 {
        font-size: 42px
    }
}

@media(max-width:600px) {
    .public-match {
        grid-template-columns: 45px 1fr 60px 1fr;
        padding: 9px
    }

    .match-club {
        display: block;
        text-align: center;
        font-size: 14px
    }

    .match-club img {
        width: 36px;
        height: 36px
    }

    .match-score b {
        font-size: 18px
    }

    .scoreboard h2 {
        font-size: 20px
    }

    .page-hero {
        padding: 55px 0 40px
    }
}


/* ===== Public portal v4.1: rankingi TOP 10 ===== */
.rankings-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
}

.ranking-card {
    min-width: 0;
    overflow: hidden;
}

.ranking-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 22px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
}

.ranking-head small {
    display: block;
    margin-bottom: 4px;
    color: var(--green, #83d318);
    font-weight: 800;
    letter-spacing: .13em;
}

.ranking-head h2 {
    margin: 0;
    font-size: 22px;
}

.ranking-icon {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    place-items: center;
    border-radius: 14px;
    background: rgba(131, 211, 24, .12);
    font-size: 24px;
}

.ranking-wrap {
    overflow-x: auto;
}

.ranking-table {
    width: 100%;
    min-width: 520px;
}

.ranking-table th,
.ranking-table td {
    padding: 13px 12px;
}

.ranking-team {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ranking-team img {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: contain;
    background: rgba(255, 255, 255, .08);
}

.ranking-value {
    display: inline-grid;
    min-width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 12px;
    background: rgba(131, 211, 24, .13);
    color: var(--green, #83d318);
    font-size: 18px;
}

.podium-row {
    background: rgba(255, 255, 255, .018);
}

@media (max-width: 1250px) {
    .rankings-grid {
        grid-template-columns: 1fr;
    }

    .ranking-table {
        min-width: 640px;
    }
}

@media (max-width: 640px) {
    .ranking-head {
        padding: 18px 16px 14px;
    }

    .ranking-table {
        min-width: 540px;
    }
}

/* ===== Public portal v4.2: menu sezonów i lig ===== */
.nav-dropdown {
    position: relative;
    display: flex;
    align-items: center
}

.nav-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    border: 0;
    background: transparent;
    color: #fff;
    font: 700 12px Inter, Arial, sans-serif;
    cursor: pointer;
    padding: 26px 0;
    transition: .25s
}

.nav-dropdown-trigger:hover,
.nav-dropdown.active .nav-dropdown-trigger {
    color: var(--green)
}

.nav-dropdown-trigger span {
    font-size: 14px;
    transition: .25s
}

.nav-dropdown.open .nav-dropdown-trigger span {
    transform: rotate(180deg)
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% - 7px);
    left: 50%;
    width: 340px;
    max-height: 520px;
    overflow: auto;
    padding: 10px;
    background: #09131a;
    border: 1px solid #21323b;
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .52);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 10px);
    transition: .22s;
    z-index: 120
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0)
}

.nav-season-group {
    padding: 10px
}

.nav-season-group+.nav-season-group {
    border-top: 1px solid #1b2b34
}

.nav-season-title {
    padding: 2px 8px 9px;
    color: var(--green);
    font: 800 14px 'Barlow Condensed', sans-serif;
    letter-spacing: .06em
}

.nav-season-group a {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding: 9px 10px !important;
    border-radius: 5px;
    color: #dbe2e5 !important;
    font-size: 12px !important
}

.nav-season-group a:hover {
    background: #12212a;
    color: #fff !important
}

.nav-season-group a b {
    color: var(--green)
}

.nav-league-empty,
.nav-dropdown-empty {
    display: block;
    padding: 9px 10px;
    color: #71838c;
    font-size: 11px
}

/* ===== Kontakt ===== */
.contact-layout {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 28px
}

.contact-details,
.contact-form-panel {
    background: linear-gradient(180deg, #0d1720, #09131b);
    border: 1px solid #172731;
    padding: 24px
}

.contact-cards {
    display: grid;
    gap: 12px
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px;
    border: 1px solid #1b2b34;
    background: #0a151d
}

.contact-card>span {
    display: grid;
    place-items: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid rgba(77, 209, 43, .45);
    color: var(--green);
    font-size: 20px
}

.contact-card small {
    display: block;
    color: #7f919a;
    font-size: 10px;
    font-weight: 800;
    margin-bottom: 5px
}

.contact-card a,
.contact-card strong {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.5
}

.contact-card a:hover {
    color: var(--green)
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px
}

.contact-form label {
    display: grid;
    gap: 7px;
    color: #b7c3c9;
    font-size: 11px;
    font-weight: 700
}

.contact-form label:nth-child(4),
.contact-form .btn {
    grid-column: 1/-1
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    border: 1px solid #26363e;
    background: #081219;
    color: #fff;
    border-radius: 6px;
    padding: 12px;
    font: inherit;
    outline: none
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(77, 209, 43, .1)
}

.contact-form textarea {
    resize: vertical
}

.contact-form .btn {
    border: 0;
    cursor: pointer
}

.contact-note {
    color: #71838c;
    font-size: 11px;
    margin: 15px 0 0
}

.contact-note code {
    color: #9bcf7e
}

@media(max-width:900px) {
    .contact-layout {
        grid-template-columns: 1fr
    }

    .nav-dropdown {
        display: block;
        width: 100%
    }

    .nav-dropdown-trigger {
        width: 100%;
        justify-content: space-between;
        padding: 8px
    }

    .nav-dropdown-menu {
        position: static;
        width: 100%;
        max-height: 0;
        padding: 0;
        border: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        overflow: hidden;
        transform: none;
        background: #08131a
    }

    .nav-dropdown.open .nav-dropdown-menu {
        max-height: 600px;
        padding: 8px;
        border: 1px solid #1b2b34;
        margin-top: 6px
    }

    .nav-dropdown:hover .nav-dropdown-menu {
        transform: none
    }
}

@media(max-width:600px) {
    .contact-form {
        grid-template-columns: 1fr
    }

    .contact-form label {
        grid-column: 1/-1
    }
}

/* ===== Public portal v4.3: profile drużyn, zawodników i kolejki ===== */
.match-row a,
.public-match a {
    color: inherit;
    text-decoration: none
}

.match-row .team:hover,
.team-profile-link:hover,
.table-team-link:hover,
.ranking-player-link:hover,
.ranking-team-link:hover,
.timeline-player-link:hover {
    color: var(--green)
}

.match-main-link {
    color: inherit;
    text-decoration: none
}

.table-team-link,
.ranking-player-link,
.ranking-team-link,
.timeline-player-link {
    color: #fff;
    text-decoration: none;
    font-weight: 700
}

.ranking-team-link {
    font-weight: 500
}

.scoreboard-team {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    color: #fff;
    text-decoration: none;
    transition: .25s
}

.scoreboard-team:hover {
    color: var(--green);
    transform: translateY(-3px)
}

.schedule-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 16px 18px;
    margin-bottom: 24px
}

.schedule-toolbar .filter-tabs {
    margin: 0
}

.round-picker {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--green);
    font-size: 11px;
    font-weight: 800
}

.round-picker select {
    min-width: 210px;
    background: #081219;
    color: #fff;
    border: 1px solid #293a42;
    border-radius: 6px;
    padding: 11px 34px 11px 12px
}

.rounds-list {
    display: grid;
    gap: 28px
}

.round-section {
    overflow: hidden
}

.round-section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 12px;
    padding: 0 4px
}

.round-section-head span {
    color: var(--green);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .14em
}

.round-section-head h2 {
    margin: 3px 0 0;
    font: 800 25px 'Barlow Condensed', sans-serif
}

.round-section-head>strong {
    color: #81939c;
    font-size: 11px
}

.public-match {
    border-radius: 4px
}

.team-profile-link,
.match-details-link {
    min-width: 0
}

.team-profile-link strong {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.profile-hero {
    padding: 65px 0;
    background: radial-gradient(circle at 75% 30%, rgba(58, 159, 47, .2), transparent 40%), linear-gradient(100deg, #061017, #0b1d1d);
    border-bottom: 1px solid #1c302f
}

.profile-hero-inner {
    display: flex;
    align-items: center;
    gap: 28px
}

.profile-logo.large {
    width: 125px;
    height: 125px;
    flex: 0 0 125px;
    padding: 14px;
    border-radius: 24px;
    background: #0b171e;
    border: 1px solid #294039
}

.profile-logo img,
.player-profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain
}

.profile-heading {
    min-width: 0
}

.profile-heading>span {
    color: var(--green);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .12em
}

.profile-heading h1 {
    margin: 5px 0;
    font: 800 54px 'Barlow Condensed', sans-serif
}

.profile-heading p {
    margin: 0;
    color: #8da0a8
}

.profile-actions {
    margin-left: auto
}

.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 26px
}

.profile-stat {
    padding: 22px;
    background: linear-gradient(180deg, #0d1921, #09131a);
    border: 1px solid #172831
}

.profile-stat span,
.profile-stat small {
    display: block;
    color: #7f929b;
    font-size: 10px;
    font-weight: 800
}

.profile-stat strong {
    display: block;
    margin: 6px 0;
    color: #fff;
    font: 800 36px 'Barlow Condensed', sans-serif
}

.profile-stat small {
    color: var(--green)
}

.profile-layout {
    display: grid;
    grid-template-columns: 2fr .8fr;
    gap: 24px
}

.profile-panel {
    padding: 22px
}

.section-head.compact {
    margin-bottom: 17px
}

.section-head.compact h2 {
    font-size: 20px
}

.section-head.compact>span {
    color: #7e919a;
    font-size: 11px
}

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

.roster-card {
    display: grid;
    grid-template-columns: 48px 1fr 38px;
    align-items: center;
    gap: 11px;
    padding: 10px;
    border: 1px solid #1a2b34;
    background: #0a151c;
    color: #fff;
    text-decoration: none;
    transition: .25s
}

.roster-card:hover {
    border-color: #4a9f31;
    transform: translateY(-2px)
}

.roster-photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: #15242c
}

.roster-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.roster-card strong,
.roster-card span {
    display: block
}

.roster-card span {
    color: #7f929b;
    font-size: 10px;
    margin-top: 3px
}

.roster-card>b {
    font: 800 25px 'Barlow Condensed';
    color: var(--green);
    text-align: center
}

.profile-details {
    display: grid;
    gap: 0
}

.profile-details>div {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 13px 0;
    border-bottom: 1px solid #1a2a33
}

.profile-details dt {
    color: #7e919a
}

.profile-details dd {
    margin: 0;
    text-align: right;
    color: #fff
}

.profile-details a {
    color: var(--green)
}

.recent-matches-panel {
    margin-top: 24px
}

.compact-match-list {
    display: grid
}

.compact-match-list>a {
    display: grid;
    grid-template-columns: 125px 1fr 65px 1fr 130px;
    gap: 12px;
    align-items: center;
    padding: 13px;
    border-top: 1px solid #1a2a33;
    color: #fff;
    text-decoration: none
}

.compact-match-list>a:hover {
    background: #0d1b22
}

.compact-match-list time,
.compact-match-list em {
    color: #7e919a;
    font-size: 11px
}

.compact-match-list strong {
    text-align: center;
    color: var(--green);
    font-size: 18px
}

.compact-match-list em {
    text-align: right
}

.player-profile-photo {
    width: 150px;
    height: 180px;
    flex: 0 0 150px;
    overflow: hidden;
    border-radius: 22px 22px 8px 8px;
    background: #0b171e;
    border: 1px solid #294039
}

.player-profile-photo img {
    object-fit: cover
}

.profile-team-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    color: #fff;
    text-decoration: none
}

.profile-team-link:hover {
    color: var(--green)
}

.profile-team-link img {
    width: 27px;
    height: 27px;
    object-fit: contain
}

.player-profile-layout {
    grid-template-columns: 1.45fr .65fr
}

.player-events-list {
    display: grid
}

.player-events-list>a {
    display: grid;
    grid-template-columns: 42px 1fr 44px;
    align-items: center;
    gap: 12px;
    padding: 13px 8px;
    border-bottom: 1px solid #1a2a33;
    color: #fff;
    text-decoration: none
}

.player-events-list>a:hover {
    background: #0d1b22
}

.player-events-list .event-icon {
    font-size: 23px;
    text-align: center
}

.player-events-list small {
    display: block;
    color: #7d9099;
    margin-top: 4px
}

.player-events-list>b {
    text-align: center;
    color: var(--green)
}

@media(max-width:900px) {
    .schedule-toolbar {
        align-items: stretch;
        flex-direction: column
    }

    .round-picker {
        justify-content: space-between
    }

    .profile-hero-inner {
        align-items: flex-start;
        flex-wrap: wrap
    }

    .profile-actions {
        margin-left: 0;
        width: 100%
    }

    .profile-stats-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .profile-layout,
    .player-profile-layout {
        grid-template-columns: 1fr
    }

    .compact-match-list>a {
        grid-template-columns: 105px 1fr 48px 1fr
    }

    .compact-match-list em {
        display: none
    }

    .roster-grid {
        grid-template-columns: 1fr
    }
}

@media(max-width:600px) {
    .round-picker {
        align-items: stretch;
        flex-direction: column
    }

    .round-picker select {
        width: 100%
    }

    .profile-heading h1 {
        font-size: 39px
    }

    .profile-logo.large {
        width: 90px;
        height: 90px;
        flex-basis: 90px
    }

    .player-profile-photo {
        width: 100px;
        height: 125px;
        flex-basis: 100px
    }

    .profile-stats-grid {
        grid-template-columns: 1fr 1fr
    }

    .profile-stat {
        padding: 15px
    }

    .compact-match-list>a {
        grid-template-columns: 1fr 45px 1fr
    }

    .compact-match-list time {
        grid-column: 1/-1
    }

    .public-match {
        grid-template-columns: 45px 1fr 60px 1fr
    }

    .match-place {
        grid-column: 2/5
    }
}

/* v4.3.1 — dane profilu z panelu trenera */
.team-profile-hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid color-mix(in srgb, var(--team-primary, #21c55d) 45%, transparent);
}

.team-profile-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 18%, color-mix(in srgb, var(--team-primary, #21c55d) 24%, transparent), transparent 36%),
        linear-gradient(115deg, color-mix(in srgb, var(--team-secondary, #101827) 88%, transparent), transparent);
    pointer-events: none;
}

.team-profile-hero .profile-hero-inner {
    position: relative;
    z-index: 1;
}

.team-profile-hero .profile-logo.large {
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--team-primary, #21c55d) 22%, transparent),
        0 22px 55px rgba(0, 0, 0, .35);
}

.team-about-panel {
    margin-top: 24px;
    border-top: 3px solid var(--team-primary, #21c55d);
}

.team-description {
    color: var(--text, #f8fafc);
    line-height: 1.8;
    white-space: normal;
}

.team-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.team-social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid color-mix(in srgb, var(--team-primary, #21c55d) 40%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--team-primary, #21c55d) 12%, transparent);
    color: var(--text, #fff);
    font-weight: 800;
    text-decoration: none;
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.team-social-links a:hover {
    transform: translateY(-2px);
    background: color-mix(in srgb, var(--team-primary, #21c55d) 22%, transparent);
    border-color: var(--team-primary, #21c55d);
}

.profile-details a {
    color: var(--green, #22c55e);
    word-break: break-word;
}

/* ===== v5.3: nowoczesne rankingi TOP 10 bez poziomego scrolla ===== */
.rankings-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    align-items: start;
}

.ranking-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #182b35;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(15, 29, 38, .98), rgba(7, 17, 24, .98));
    box-shadow: 0 18px 45px rgba(0, 0, 0, .2);
}

.ranking-head {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    background: linear-gradient(100deg, rgba(77, 209, 43, .06), transparent 60%);
}

.ranking-head::after {
    content: "";
    position: absolute;
    right: 18px;
    bottom: 0;
    left: 82px;
    height: 2px;
    background: linear-gradient(90deg, var(--green), transparent);
    opacity: .65;
}

.ranking-icon {
    display: grid;
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    place-items: center;
    border: 1px solid rgba(77, 209, 43, .16);
    border-radius: 16px;
    background: rgba(77, 209, 43, .1);
    font-size: 26px;
}

.ranking-head small {
    display: block;
    margin-bottom: 3px;
    color: var(--green);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .18em;
}

.ranking-head h2 {
    margin: 0;
    font: 800 29px "Barlow Condensed", sans-serif;
    letter-spacing: .02em;
}

.ranking-list {
    display: grid;
}

.ranking-item {
    position: relative;
    display: grid;
    grid-template-columns: 34px 46px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    min-width: 0;
    padding: 13px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .055);
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.ranking-item:last-child {
    border-bottom: 0;
}

.ranking-item:hover {
    z-index: 2;
    background: rgba(255, 255, 255, .035);
    transform: translateX(4px);
}

.ranking-position {
    display: grid;
    place-items: center;
}

.ranking-position span {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid #263943;
    border-radius: 9px;
    color: #91a1a9;
    font-size: 12px;
    font-weight: 900;
}

.ranking-podium-1 .ranking-position span {
    border-color: transparent;
    background: linear-gradient(135deg, #49c928, #27940f);
    color: #fff;
    box-shadow: 0 7px 18px rgba(77, 209, 43, .2);
}

.ranking-podium-2 .ranking-position span {
    border-color: #788891;
    color: #e5ecef;
}

.ranking-podium-3 .ranking-position span {
    border-color: #895c32;
    color: #dca36c;
}

.ranking-avatar {
    display: block;
    width: 46px;
    height: 46px;
    overflow: hidden;
    border: 1px solid #243740;
    border-radius: 50%;
    background: #0c1820;
}

.ranking-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ranking-person {
    min-width: 0;
}

.ranking-player-link {
    display: block;
    overflow: hidden;
    color: #f6f8f9;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-player-link:hover {
    color: var(--green);
}

.ranking-team-link {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    margin-top: 5px;
    color: #788b94;
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
}

.ranking-team-link img {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    object-fit: contain;
}

.ranking-team-link span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-team-link:hover {
    color: #c6d1d6;
}

.ranking-score {
    min-width: 47px;
    text-align: right;
}

.ranking-score strong {
    display: block;
    color: var(--green);
    font: 800 25px "Barlow Condensed", sans-serif;
    line-height: 1;
}

.ranking-score small {
    display: block;
    margin-top: 3px;
    color: #667982;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .08em;
}

.ranking-empty {
    display: grid;
    min-height: 250px;
    place-items: center;
    align-content: center;
    padding: 30px;
    text-align: center;
}

.ranking-empty>span {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    margin-bottom: 12px;
    border: 1px dashed #2b414b;
    border-radius: 50%;
    color: #536770;
}

.ranking-empty strong {
    font-size: 13px;
}

.ranking-empty small {
    max-width: 240px;
    margin-top: 7px;
    color: #72858e;
    line-height: 1.55;
}

@media (max-width: 1180px) {
    .rankings-grid {
        grid-template-columns: 1fr 1fr;
    }

    .ranking-card:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .rankings-grid {
        grid-template-columns: 1fr;
    }

    .ranking-card:last-child {
        grid-column: auto;
    }
}

@media (max-width: 460px) {
    .ranking-item {
        grid-template-columns: 30px 40px minmax(0, 1fr) auto;
        gap: 8px;
        padding: 11px 10px;
    }

    .ranking-avatar {
        width: 40px;
        height: 40px;
    }

    .ranking-head {
        padding: 16px;
    }

    .ranking-head h2 {
        font-size: 25px;
    }
}


/* Match public text / organizer note */
.match-public-note {
    margin: 0 0 22px;
    padding: 18px 20px;
    border: 1px solid rgba(89, 255, 54, .22);
    border-left: 4px solid #59ff36;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(89, 255, 54, .08), rgba(255, 255, 255, .025));
}

.match-public-note span {
    display: block;
    margin-bottom: 8px;
    color: #59ff36;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .13em;
}

.match-public-note p {
    margin: 5px 0 0;
    color: #dce8e1;
    line-height: 1.65;
    white-space: normal;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
    align-items: start;
    margin-top: 20px;
}

.info-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 8px;
}

.contact-row {
    margin-bottom: 20px;
}

.contact-row strong {
    display: block;
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form label {
    font-size: 0.95rem;
    font-weight: 500;
    color: #cbd5e1;
    margin-bottom: -5px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #fff;
    font-size: 1rem;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: #2e6ff2;
    outline: none;
}

.btn-primary {
    display: inline-block;
    width: auto;
    padding: 12px 24px;
    background-color: #2e6ff2;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
}

/* Responsywność dla telefonów */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}
/* Naprawa warstw menu rozwijanego w nagłówku, aby nigdy nie nachodziło pod pasek */
.site-header {
    position: relative;
    z-index: 1000 !important;
}

.nav-dropdown-menu {
    z-index: 9999 !important;
}

.context-bar {
    position: relative;
    z-index: 10 !important;
}
/* Poprawka pozycjonowania i wyglądu menu rozwijanego */
.site-header .nav-wrap {
    position: relative !important;
}

.nav-dropdown {
    position: relative !important;
}

.nav-dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    min-width: 240px !important;
    z-index: 99999 !important;
    background: #0f172a !important;
    border: 1px solid #334155 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5) !important;
}
.rank.first {
    background-color: #ffd700; /* Złoty */
    color: #000;
}

.rank.second {
    background-color: #c0c0c0; /* Srebrny */
    color: #000;
}

.rank.third {
    background-color: #cd7f32; /* Brązowy */
    color: #fff;
}
/* === OGÓLNE STYLE KART I UKŁADU === */
.card {
    background: #ffffff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
}

/* Nagłówki sekcji w panelu */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.page-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

/* === KAFELKI STATYSTYK (DASHBOARD / FINANSE) === */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.stat-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    border-left: 4px solid #0284c7; /* Domyślny akcent */
}

.stat-card.blue { border-left-color: #0284c7; }
.stat-card.teal { border-left-color: #0d9488; }
.stat-card.green { border-left-color: #16a34a; }
.stat-card.red { border-left-color: #dc2626; }

.stat-card span {
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.stat-card .value {
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 5px;
    color: #0f172a;
}

/* === TABELE ADMINISTRACYJNE === */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
}

.admin-table th {
    background: #f8fafc;
    color: #475569;
    font-weight: 600;
    padding: 12px 16px;
    border-bottom: 2px solid #e2e8f0;
}

.admin-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
    color: #1e293b;
}

.admin-table tbody tr:hover {
    background: #f8fafc;
}

.admin-table tfoot tr {
    background: #f8fafc;
    font-weight: 600;
}

/* === FORMULARZE I POLA FILTRÓW === */
.admin-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #334155;
    font-size: 0.9rem;
}

.admin-form input[type="text"],
.admin-form input[type="email"],
.admin-form input[type="password"],
.admin-form input[type="date"],
.admin-form input[type="month"],
.admin-form select,
.admin-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.95rem;
    color: #0f172a;
    background: #fff;
    margin-bottom: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
    outline: none;
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

/* Przyciski */
.btn-primary {
    background: #0284c7;
    color: white;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #0369a1;
}

.btn-secondary {
    background: #e2e8f0;
    color: #334155;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}

.btn-secondary:hover {
    background: #cbd5e1;
}

