/* RadarMeczy V52: Inter Tight, konto, ranking i odświeżona tabela */

:root {
    --rm-border: #e3e8e5;
    --rm-soft: #f5f7f6;
    --rm-text: #17221e;
    --rm-muted: #68756f;
    --rm-type-body: 15px;
    --rm-type-small: 12px;
    --rm-type-label: 13px;
    --rm-type-h2: 24px;
    --rm-type-page-title: clamp(38px, 4vw, 52px);
}

body,
button,
input,
select,
textarea {
    font-family: "Inter Tight", Arial, sans-serif;
}

body {
    color: var(--rm-text);
    font-weight: 400;
    font-size: var(--rm-type-body);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Inter Tight", Arial, sans-serif;
    font-weight: 700;
    letter-spacing: -.025em;
}

.eyebrow,
.main-nav a,
button,
.topbar a,
table th {
    font-weight: 600;
}

.top-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

/* Jeden header na stronie głównej i wszystkich podstronach. */
.topbar,
.home-v27 .home-topbar-v27 {
    width: 100%;
    height: 72px;
    grid-template-columns: 270px minmax(0, 1fr) auto;
    padding: 0 24px 0 0;
    border-bottom: 1px solid #e7eaec;
    background: #fff;
    box-shadow: 0 1px 0 rgba(20, 27, 31, .02);
}

.topbar .brand,
.home-v27 .home-topbar-v27 .brand {
    height: 72px;
    padding: 0 28px;
}

/* Wspolny, firmowy logotyp zamiast skladanego znaku CSS. */
.topbar .brand > span,
.home-v27 .home-topbar-v27 .brand > span {
    display: none;
}

.topbar .brand::before,
.home-v27 .home-topbar-v27 .brand::before {
    content: "";
    display: block;
    width: 204px;
    max-width: 100%;
    aspect-ratio: 1176 / 306;
    flex: 0 1 204px;
    background: url("/assets/brand/radarmeczy-logo.png?v=1") left center / contain no-repeat;
}

.topbar .main-nav,
.home-v27 .home-topbar-v27 .main-nav {
    height: 72px;
    justify-content: flex-start;
    gap: 4px;
}

.topbar .main-nav a,
.home-v27 .home-topbar-v27 .main-nav a {
    height: 72px;
    padding: 0 17px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .01em;
}

.topbar .top-actions,
.home-v27 .home-topbar-v27 .top-actions {
    min-width: 0;
    gap: 9px;
    padding: 0;
}

.topbar .icon-button {
    width: 44px;
    min-width: 44px;
    height: 44px;
    border-radius: 12px;
}

.topbar .rm-favorites-trigger-v46,
.topbar .rm-account-trigger-v52 {
    height: 42px;
    border-radius: 11px;
}

/* Skrypt dodaje wyszukiwarkę na podstronach — wizualnie ma być identyczna jak na głównej. */
.topbar .global-search-button {
    width: 44px;
    min-width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid #e1e5e7;
    border-radius: 12px;
    background: #fff;
    color: #273035;
    line-height: 1;
}

.topbar .global-search-button > i {
    display: block;
    font-size: 15px;
    line-height: 1;
    transform: none;
}

.topbar .global-search-button:hover {
    border-color: #b9d8c7;
    background: #f8fcf9;
    color: var(--green-dark);
}

.global-search-symbol {
    font-size: 0;
}

.global-search-symbol::before {
    content: "\f002";
    font-family: "Font Awesome 6 Free";
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
}

@media (max-width: 1180px) {
    .topbar,
    .home-v27 .home-topbar-v27 {
        grid-template-columns: 220px minmax(0, 1fr) auto;
        padding-right: 14px;
    }

    .topbar .brand,
    .home-v27 .home-topbar-v27 .brand {
        padding: 0 18px;
    }

    .topbar .main-nav a,
    .home-v27 .home-topbar-v27 .main-nav a {
        padding: 0 10px;
        font-size: 13px;
    }
}

@media (max-width: 980px) {
    .topbar,
    .home-v27 .home-topbar-v27 {
        height: 62px;
        grid-template-columns: minmax(0, 204px) auto;
        column-gap: 8px;
        padding: 0 8px;
    }

    .topbar .brand,
    .home-v27 .home-topbar-v27 .brand {
        width: 100%;
        max-width: 204px;
        min-width: 0;
        height: 62px;
        padding: 0;
    }

    .topbar .brand::before,
    .home-v27 .home-topbar-v27 .brand::before {
        width: 100%;
        max-width: 204px;
        aspect-ratio: 1176 / 306;
        flex: 0 1 204px;
        background-size: contain;
        background-position: left center;
        background-repeat: no-repeat;
    }

    .topbar .main-nav,
    .home-v27 .home-topbar-v27 .main-nav {
        display: none;
    }

    .topbar .top-actions,
    .home-v27 .home-topbar-v27 .top-actions {
        gap: 4px;
        justify-content: flex-end;
    }

    .topbar .icon-button,
    .topbar .rm-account-trigger-v52,
    .topbar .rm-favorites-trigger-v46 {
        min-width: 38px;
        height: 38px;
        border-radius: 10px;
    }

    .topbar .global-search-button {
        width: 38px;
        min-width: 38px;
        height: 38px;
        border-radius: 10px;
    }

    .topbar .rm-favorites-trigger-v46 {
        width: 46px;
    }

    .topbar .mobile-menu {
        display: grid;
        place-items: center;
    }
}

.rm-account-trigger-v52 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 96px;
    height: 38px;
    padding: 0 13px;
    border: 1px solid #d7e2dc;
    border-radius: 12px;
    background: #fff;
    color: #1c2924;
    font-size: 13px;
    cursor: pointer;
    transition: border-color .16s ease, color .16s ease, background .16s ease;
}

.rm-account-trigger-v52:hover,
.rm-account-trigger-v52[aria-expanded="true"] {
    border-color: var(--green);
    background: #f2fbf6;
    color: var(--green);
}

.rm-account-trigger-v52 > i {
    font-size: 15px;
}

.rm-account-trigger-v52 > img {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    object-fit: cover;
}

.rm-account-trigger-v52 > span {
    max-width: 104px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rm-account-panel-v52 {
    position: fixed;
    z-index: 1200;
    top: 66px;
    right: max(18px, calc((100vw - 1440px) / 2 + 18px));
    width: min(330px, calc(100vw - 28px));
    padding: 16px;
    border: 1px solid var(--rm-border);
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 20px 56px rgba(20, 35, 28, .18);
}

.rm-account-panel-v52[hidden] {
    display: none;
}

.rm-account-profile-v52 {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 2px 2px 14px;
    border-bottom: 1px solid #edf0ee;
}

.rm-account-profile-v52 > img,
.rm-account-profile-v52 > i {
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #eaf8f0;
    color: var(--green);
    object-fit: cover;
}

.rm-account-profile-v52 span {
    min-width: 0;
}

.rm-account-profile-v52 strong,
.rm-account-profile-v52 small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rm-account-profile-v52 strong {
    font-size: 14px;
    font-weight: 700;
}

.rm-account-profile-v52 small {
    margin-top: 2px;
    color: var(--rm-muted);
    font-size: 12px;
}

.rm-account-panel-v52 nav {
    display: grid;
    gap: 3px;
    padding: 10px 0;
}

.rm-account-panel-v52 nav a,
.rm-account-panel-v52 form button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 40px;
    padding: 0 10px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #26332e;
    font-size: 13px;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.rm-account-panel-v52 nav a:hover,
.rm-account-panel-v52 form button:hover {
    background: var(--rm-soft);
    color: var(--green);
}

.rm-account-panel-v52 nav i,
.rm-account-panel-v52 form i {
    width: 18px;
    color: var(--green);
    text-align: center;
}

.rm-account-panel-v52 form {
    margin: 0;
    padding-top: 8px;
    border-top: 1px solid #edf0ee;
}

.rm-account-title-v52 {
    display: block;
    font-size: 18px;
    font-weight: 700;
}

.rm-account-panel-v52 > p {
    margin: 7px 0 15px;
    color: var(--rm-muted);
    font-size: 13px;
    line-height: 1.5;
}

.rm-account-login-v52,
.rm-account-register-v52 {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.rm-account-login-v52 {
    background: var(--green);
    color: #fff;
}

.rm-account-register-v52 {
    margin-top: 7px;
    border: 1px solid #dfe6e2;
    color: #25332d;
}

.account-avatar-v52 {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 16px 0 18px;
}

.account-avatar-v52 > img,
.account-avatar-v52 > span {
    display: grid;
    place-items: center;
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #e9f8f0;
    color: var(--green);
    font-size: 25px;
    object-fit: cover;
}

.account-avatar-v52 > div {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
}

.account-profile-v47 .account-avatar-v52 form {
    margin: 0;
}

.account-avatar-v52 label,
.account-avatar-v52 button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 37px;
    padding: 0 11px;
    border: 1px solid #dbe5df;
    border-radius: 10px;
    background: #fff;
    color: #2c3933;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.account-avatar-v52 label:hover {
    border-color: var(--green);
    color: var(--green);
}

.account-avatar-v52 input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.account-avatar-v52 button {
    color: #bb3740;
}

.account-prediction-links-v52 {
    display: flex;
    gap: 12px;
}

.account-prediction-links-v52 a {
    color: var(--green);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.club-followers-v52 {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #edf8f2;
    color: #278457;
    font-size: 12px;
    font-weight: 600;
}

.team-followers-v52 {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 4px;
    color: #75817b;
    font-size: 11px;
}

.ranking-page-v52 {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 54px 0 80px;
}

.ranking-hero-v52 {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 24px;
}

.ranking-hero-v52 h1 {
    margin: 7px 0 8px;
    font-size: clamp(36px, 5vw, 58px);
    line-height: .98;
}

.ranking-hero-v52 p {
    max-width: 660px;
    margin: 0;
    color: var(--rm-muted);
    line-height: 1.55;
}

.ranking-hero-v52 > div:last-child {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.ranking-hero-v52 > div:last-child a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 11px;
    background: var(--green);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.ranking-hero-v52 > div:last-child a.is-secondary {
    border: 1px solid var(--rm-border);
    background: #fff;
    color: #26332d;
}

.ranking-card-v52 {
    overflow: hidden;
    border: 1px solid var(--rm-border);
    border-radius: 19px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(19, 35, 27, .05);
}

.ranking-row-v52 {
    display: grid;
    grid-template-columns: 52px minmax(210px, 1fr) 90px 100px 118px 90px;
    align-items: center;
    min-height: 58px;
    padding: 0 18px;
    border-bottom: 1px solid #edf0ee;
    font-size: 13px;
}

.ranking-row-v52.is-head {
    min-height: 42px;
    background: #f5f7f6;
    color: #748079;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.ranking-row-v52:not(.is-head):hover,
.ranking-row-v52.is-current {
    background: #f2fbf6;
}

.ranking-position-v52 {
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    color: #5f6c66;
    font-weight: 700;
}

.ranking-position-v52.is-1 { background: #fff2bf; color: #8f6800; }
.ranking-position-v52.is-2 { background: #edf0f2; color: #56616a; }
.ranking-position-v52.is-3 { background: #f7e1ce; color: #95511c; }

.ranking-user-v52 {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.ranking-user-v52 img,
.ranking-user-v52 > i {
    display: grid;
    place-items: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #eaf8f0;
    color: var(--green);
    object-fit: cover;
}

.ranking-user-v52 strong {
    overflow: hidden;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-user-v52 small {
    padding: 2px 6px;
    border-radius: 999px;
    background: var(--green);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
}

.ranking-empty-v52,
.ranking-note-v52 {
    padding: 28px;
    color: var(--rm-muted);
    text-align: center;
}

.ranking-note-v52 {
    margin: 0;
    padding: 16px 24px;
    background: #fafbfa;
    font-size: 11px;
    line-height: 1.5;
}

.standings-scroll-v52 {
    overflow: auto;
    border: 1px solid var(--rm-border);
    border-radius: 16px;
    background: #fff;
}

.standings-table-v52 {
    min-width: 760px;
    border-collapse: separate;
    border-spacing: 0;
}

.standings-table-v52 thead th {
    height: 38px;
    padding: 0 9px;
    border-bottom: 1px solid var(--rm-border);
    background: #f5f7f6;
    color: #748079;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.standings-table-v52 tbody td {
    height: 50px;
    padding: 5px 9px;
    border-bottom: 1px solid #edf0ee;
    color: #3b4742;
    font-size: 13px;
}

.standings-table-v52 tbody tr:last-child td {
    border-bottom: 0;
}

.standings-table-v52 tbody tr:hover td {
    background: #f5fbf7;
}

.standings-table-v52 .position-cell {
    width: 58px;
}

.standings-table-v52 .table-position-v46 {
    justify-content: center;
    gap: 5px;
}

.standings-table-v52 .table-position-number-v46 {
    min-width: 18px;
    background: transparent;
    color: #303c36;
    font-weight: 600;
}

.standings-table-v52 .table-movement-v46 {
    min-width: 13px;
    font-size: 10px;
}

.standings-table-v52 .table-movement-v46.is-up { color: #16a263; }
.standings-table-v52 .table-movement-v46.is-down { color: #df424b; }
.standings-table-v52 .table-movement-v46.is-same { color: #a0aaa5; }

.standings-table-v52 .standing-team {
    min-width: 235px;
    gap: 8px;
}

.standings-table-v52 .standing-team img,
.standings-table-v52 .standing-team .mini-crest {
    width: 28px;
    height: 28px;
}

.standings-table-v52 .standing-team-link {
    color: #1d2924;
    font-weight: 600;
}

.standings-table-v52 .favorite-team-button-v46 {
    width: 25px;
    height: 25px;
}

.standings-table-v52 .points-cell {
    color: #17221e;
    font-size: 14px;
    font-weight: 700;
}

.standings-table-v52 .form-strip {
    gap: 3px;
}

.standings-table-v52 .form-strip span {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 9px;
    font-weight: 700;
}

@media (max-width: 820px) {
    .ranking-hero-v52 {
        align-items: flex-start;
        flex-direction: column;
    }

    .ranking-row-v52 {
        grid-template-columns: 44px minmax(170px, 1fr) 70px 82px 86px 62px;
        padding: 0 12px;
    }
}

@media (max-width: 700px) {
    .rm-account-trigger-v52 {
        min-width: 39px;
        width: 39px;
        padding: 0;
    }

    .rm-account-trigger-v52 > span {
        display: none;
    }

    .rm-account-panel-v52 {
        top: 61px;
        right: 10px;
    }

    .ranking-page-v52 {
        width: min(100% - 20px, 1120px);
        padding: 34px 0 58px;
    }

    .ranking-hero-v52 > div:last-child {
        width: 100%;
        flex-wrap: wrap;
    }

    .ranking-card-v52 {
        border-radius: 15px;
    }

    .ranking-table-v52 {
        overflow: hidden;
    }

    .ranking-row-v52 {
        grid-template-columns: 38px minmax(0, 1fr) 65px;
        min-height: 61px;
    }

    .ranking-row-v52.is-head span:nth-child(3),
    .ranking-row-v52.is-head span:nth-child(4),
    .ranking-row-v52.is-head span:nth-child(5),
    .ranking-row-v52 > span:nth-child(3),
    .ranking-row-v52 > span:nth-child(4),
    .ranking-row-v52 > span:nth-child(5) {
        display: none;
    }

    .ranking-user-v52 img,
    .ranking-user-v52 > i {
        flex-basis: 31px;
        width: 31px;
        height: 31px;
    }

    .standings-table-v52 {
        min-width: 100%;
    }

    .standings-table-v52 th:nth-child(4),
    .standings-table-v52 td:nth-child(4),
    .standings-table-v52 th:nth-child(5),
    .standings-table-v52 td:nth-child(5),
    .standings-table-v52 th:nth-child(6),
    .standings-table-v52 td:nth-child(6),
    .standings-table-v52 th:nth-child(8),
    .standings-table-v52 td:nth-child(8),
    .standings-table-v52 th:nth-child(10),
    .standings-table-v52 td:nth-child(10) {
        display: none;
    }

    .standings-table-v52 .position-cell {
        width: 48px;
    }

    .standings-table-v52 .standing-team {
        min-width: 0;
    }

    .standings-table-v52 .standing-team-link {
        overflow: hidden;
        max-width: 34vw;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* V11.1 — dopracowany układ mobilny strony głównej */
@media (max-width: 760px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .home-v27 .home-shell-v27 {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .home-v27 .home-topbar-v27 .top-actions {
        min-width: 0;
        gap: 4px;
        padding: 0;
        flex-wrap: nowrap;
        justify-content: flex-end;
    }

    .home-v27 .home-city-switch-v27 {
        width: min(104px, 29vw);
        min-width: 0;
        height: 38px;
        grid-template-columns: 22px minmax(0, 1fr);
        gap: 6px;
        padding: 0 7px;
        border-radius: 10px;
    }

    .home-v27 .home-city-switch-v27 > i:first-child {
        width: 22px;
        height: 22px;
        border-radius: 7px;
        font-size: 11px;
    }

    .home-v27 .home-city-switch-v27 strong {
        margin: 0;
        font-size: 11px;
    }

    .home-v27 .home-icon-button-v27,
    .home-v27 .rm-account-trigger-v52 {
        width: 38px;
        min-width: 38px;
        height: 38px;
        border-radius: 10px;
        padding: 0;
    }

    .home-v27 .rm-favorites-trigger-v46 {
        width: 46px;
        min-width: 46px;
        height: 38px;
        gap: 4px;
        padding: 0 5px;
    }

    .home-v27 .home-mobile-tabs-v27 {
        top: 62px;
        width: 100%;
        max-width: 100%;
    }

    .radar-home-v27 {
        width: calc(100% - 20px);
        max-width: 100%;
        padding-top: 21px;
    }

    .radar-hero-copy-v27,
    .radar-hero-v27,
    .radar-location-panel-v27,
    .radar-filterbar-v27,
    .radar-filter-block-v27,
    .radar-levels-v27,
    .radar-sort-v27 {
        min-width: 0;
        max-width: 100%;
    }

    .radar-hero-copy-v27 h1 {
        overflow-wrap: anywhere;
        font-size: clamp(31px, 9.2vw, 36px);
        line-height: 1;
    }

    .radar-location-panel-v27 {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 7px;
        padding: 9px;
    }

    .radar-location-main-v27 {
        grid-column: auto;
        width: 100%;
        min-width: 0;
        padding: 4px 5px 10px;
    }

    .radar-location-main-v27 > span:last-child {
        min-width: 0;
    }

    .radar-location-main-v27 strong {
        overflow: hidden;
        max-width: 100%;
        font-size: 18px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .radar-change-city-v27,
    .radar-gps-v27 {
        width: 100%;
        min-width: 0;
        height: 44px;
        padding: 0 10px;
        font-size: 12px;
    }

    .home-v27 .radar-location-picker-v27,
    .home-v27 .radar-location-search-v27 {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .home-v27 .radar-location-search-v27 {
        grid-template-columns: 30px minmax(0, 1fr) 36px;
        padding-left: 6px;
    }

    .home-v27 .radar-location-search-v27 input {
        width: 100%;
        min-width: 0;
    }

    .radar-filterbar-v27 {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        align-items: stretch;
        width: 100%;
        padding: 10px;
        gap: 11px;
    }

    .radar-filter-period-v27,
    .radar-filter-radius-v27,
    .radar-levels-v27,
    .radar-sort-v27 {
        width: 100%;
        min-width: 0;
        flex: none;
    }

    .radar-segmented-v27 {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        min-width: 0;
        overflow: visible;
    }

    .radar-segmented-v27 button {
        width: 100%;
        min-width: 0;
        min-height: 46px;
    }

    .radar-radius-pills-v27 {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        width: 100%;
        min-width: 0;
    }

    .radar-radius-pills-v27 label,
    .radar-radius-pills-v27 span {
        min-width: 0;
    }

    .radar-levels-v27 > summary,
    .radar-sort-v27 select,
    .radar-levels-menu-v27 {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .radar-level-grid-v27 {
        grid-template-columns: minmax(0, 1fr);
    }

    .radar-reset-v27 {
        width: 100%;
        min-width: 0;
    }

    .rm-favorites-panel-v46,
    .rm-account-panel-v52 {
        top: 68px;
        right: 10px;
        left: auto;
        width: calc(100vw - 20px);
        max-width: 360px;
        box-sizing: border-box;
    }
}

/* V55 — programmatic SEO: treść oparta na realnych danych, w istniejącym stylu. */
.programmatic-intro-v55 {
    margin: -6px 0 22px;
    padding: 16px 18px;
    border: 1px solid #dfe7e3;
    border-radius: 16px;
    background: #fff;
}

.programmatic-intro-v55 p {
    max-width: 920px;
    margin: 0;
    color: #5f6d66;
    font-size: 15px;
    font-weight: 450;
    line-height: 1.65;
}

/* Kompaktowe menu użytkownika — v63 */
.rm-account-panel-v52 {
    width: min(310px, calc(100vw - 20px));
    padding: 8px;
    border-color: #dfe6e2;
    border-radius: 16px;
    box-shadow: 0 18px 48px rgba(20, 35, 28, .16);
}

.rm-account-profile-v52 {
    gap: 10px;
    margin-bottom: 5px;
    padding: 10px;
    border: 0;
    border-radius: 12px;
    background: #f5f8f6;
}

.rm-account-profile-v52 > img,
.rm-account-profile-v52 > i {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
}

.rm-account-panel-v52 nav {
    gap: 2px;
    padding: 0;
}

.rm-account-menu-label-v63 {
    display: block;
    padding: 10px 10px 5px;
    color: #929b96;
    font-size: 9px;
    font-weight: 750;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.rm-account-menu-label-v63:not(:first-child) {
    margin-top: 5px;
    border-top: 1px solid #edf0ee;
}

.rm-account-panel-v52 nav a,
.rm-account-panel-v52 form button {
    min-height: 39px;
    padding: 0 10px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 650;
}

.rm-account-panel-v52 nav a > span,
.rm-account-panel-v52 form button > span {
    min-width: 0;
    flex: 1 1 auto;
}

.rm-account-panel-v52 nav a > i:last-child {
    width: auto;
    margin-left: auto;
    color: #adb5b1;
    font-size: 8px;
}

.rm-account-panel-v52 form {
    margin-top: 6px;
    padding-top: 6px;
}

.rm-account-panel-v52 form button {
    color: #4d5a54;
    font-weight: 700;
}

@media (max-width: 700px) {
    .rm-account-panel-v52 {
        right: 10px;
        left: auto;
        width: min(310px, calc(100vw - 20px));
    }
}

.league-seo-grid-v55 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.league-seo-card-v55 {
    min-width: 0;
}

.league-seo-card-v55 .section-heading {
    align-items: flex-start;
}

.league-seo-card-v55 .section-heading h2 {
    font-size: 20px;
    line-height: 1.2;
}

.league-seo-round-v55 {
    margin: -4px 0 10px;
    color: #75817b;
    font-size: 12px;
    font-weight: 650;
}

.league-seo-match-list-v55 {
    display: grid;
    gap: 0;
}

.league-seo-match-list-v55 > a {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    border-top: 1px solid #edf1ef;
    color: #1b2922;
    font-size: 13px;
    text-decoration: none;
}

.league-seo-match-list-v55 > a span:nth-of-type(2) {
    text-align: right;
}

.league-seo-match-list-v55 > a b,
.league-seo-match-list-v55 > a strong {
    color: #112019;
    font-weight: 750;
}

.league-seo-match-list-v55 > a small {
    color: #77837d;
    font-size: 11px;
    white-space: nowrap;
}

.league-seo-link-grid-v55 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.league-seo-link-grid-v55 > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 46px;
    padding: 9px 11px;
    border: 1px solid #e3e9e6;
    border-radius: 11px;
    background: #f8faf9;
    color: #1b2922;
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
}

.league-seo-link-grid-v55 > a:hover {
    border-color: #9bc7ae;
    color: #0c7b44;
}

.league-seo-link-grid-v55 > a small {
    display: block;
    margin-top: 2px;
    color: #7d8983;
    font-size: 11px;
    font-weight: 500;
}

.city-day-sections-v55,
.city-day-section-v55 {
    display: grid;
}

.city-day-section-v55 + .city-day-section-v55 {
    margin-top: 16px;
}

.city-day-heading-v55 {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f1f5f3;
}

.city-day-heading-v55 h3 {
    margin: 0;
    color: #18261f;
    font-size: 15px;
    font-weight: 750;
}

.city-day-heading-v55 span {
    color: #78847e;
    font-size: 11px;
    font-weight: 650;
}

.city-day-empty-v55 {
    margin: 0;
    padding: 13px 12px;
    border-bottom: 1px solid #edf1ef;
    color: #7b8781;
    font-size: 13px;
}

@media (max-width: 900px) {
    .league-seo-grid-v55 {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 760px) {
    .programmatic-intro-v55 {
        margin: -4px 0 14px;
        padding: 13px 14px;
        border-radius: 13px;
    }

    .programmatic-intro-v55 p {
        font-size: 14px;
        line-height: 1.55;
    }

    .league-seo-grid-v55 {
        gap: 12px;
        margin-top: 12px;
    }

    .league-seo-card-v55 .section-heading h2 {
        font-size: 18px;
    }

    .league-seo-match-list-v55 > a {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        gap: 7px;
        padding: 7px 0;
        font-size: 12px;
    }

    .league-seo-match-list-v55 > a small {
        grid-column: 1 / -1;
    }

    .league-seo-link-grid-v55 {
        grid-template-columns: minmax(0, 1fr);
    }

    .team23-identity-copy h1,
    .competition-identity-v42 h1,
    .city-hero-v7 h1 {
        overflow-wrap: anywhere;
    }
}

@media (max-width: 380px) {
    .home-v27 .home-city-switch-v27 {
        width: 38px;
        min-width: 38px;
        grid-template-columns: 1fr;
        padding: 0;
    }

    .home-v27 .home-city-switch-v27 span {
        display: none;
    }

    .home-v27 .home-city-switch-v27 > i:first-child {
        margin: 0 auto;
    }

    .home-v27 .home-topbar-v27 .top-actions {
        gap: 3px;
    }

    .radar-radius-pills-v27 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Ten sam znak w stopce, w jednolitej bieli na ciemnym tle. */
.site-footer-v13__brand > span {
    display: none;
}

.site-footer-v13__brand::before {
    content: "";
    display: block;
    width: 224px;
    max-width: 100%;
    aspect-ratio: 1176 / 306;
    background: url("/assets/brand/radarmeczy-logo.png?v=1") left center / contain no-repeat;
    filter: brightness(0) invert(1);
}

@media (max-width: 560px) {
    .site-footer-v13__brand::before {
        width: 200px;
    }
}

/* V53/V85 — radar: stabilny układ desktop + prosty tryb mobilny. */
.radar-mobile-location-v53 {
    display: none;
}

/*
 * Nie używamy display: contents na <details>. W Chromium potrafiło ono
 * rozbić flex-wrap i przerzucać filtry do prawego górnego rogu, zostawiając
 * wielką pustą przestrzeń nad wyborem terminu.
 */
.home-v27 .radar-filterbar-v27 {
    display: grid;
    grid-template-columns: minmax(430px, 1fr) auto;
    align-items: end;
    gap: 12px;
}

.home-v27 .radar-filter-period-v27 {
    width: 100%;
    min-width: 0;
}

.radar-more-filters-v53 {
    display: block;
    min-width: 0;
    margin: 0;
}

.radar-more-filters-v53 > summary {
    display: none;
}

.radar-more-filters-content-v53 {
    display: grid;
    grid-template-columns: 240px 250px 180px 68px;
    align-items: end;
    gap: 12px;
    min-width: 0;
}

.home-v27 .radar-more-filters-content-v53 .radar-filter-radius-v27,
.home-v27 .radar-more-filters-content-v53 .radar-levels-v27,
.home-v27 .radar-more-filters-content-v53 .radar-sort-v27 {
    width: 100%;
    min-width: 0;
    max-width: none;
    flex: none;
}

.home-v27 .radar-more-filters-content-v53 .radar-levels-v27 > summary,
.home-v27 .radar-more-filters-content-v53 .radar-sort-v27 select {
    width: 100%;
    min-width: 0;
}

/* Na średnich ekranach termin dostaje własny rząd, a reszta nadal jest zwarta. */
@media (min-width: 761px) and (max-width: 1280px) {
    .home-v27 .radar-filterbar-v27 {
        grid-template-columns: minmax(0, 1fr);
    }

    .home-v27 .radar-more-filters-v53 {
        width: 100%;
    }

    .home-v27 .radar-more-filters-content-v53 {
        grid-template-columns: minmax(0, 1.25fr) minmax(210px, .95fr) minmax(170px, .75fr) 68px;
    }
}

@media (max-width: 760px) {
    .home-v27 .radar-more-filters-v53:not([data-responsive-ready]) > .radar-more-filters-content-v53 {
        display: none;
    }

    .home-v27 .home-city-switch-v27,
    .home-v27 .rm-favorites-trigger-v46,
    .home-v27 .rm-account-trigger-v52 {
        display: none;
    }

    .home-v27 .home-topbar-v27 .top-actions {
        gap: 6px;
    }

    .home-v27 .home-mobile-tabs-v27 {
        padding: 6px 10px;
    }

    .home-v27 .home-mobile-tabs-v27 button {
        min-height: 36px;
        font-size: 12px;
    }

    .home-v27 .radar-home-v27 {
        width: calc(100% - 20px);
        padding-top: 10px;
    }

    .home-v27 .radar-hero-v27 {
        margin-bottom: 8px;
    }

    .home-v27 .radar-hero-copy-v27,
    .home-v27 .radar-location-panel-v27 {
        display: none;
    }

    .home-v27 .radar-mobile-location-v53 {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 46px;
        gap: 6px;
    }

    .radar-mobile-location-v53 button {
        min-width: 0;
        height: 54px;
        border: 1px solid #dfe6e2;
        border-radius: 13px;
        background: #fff;
        color: #1b2520;
    }

    .radar-mobile-location-v53 button:first-child {
        display: grid;
        grid-template-columns: 32px minmax(0, 1fr) auto;
        align-items: center;
        gap: 9px;
        padding: 0 13px 0 10px;
        text-align: left;
    }

    .radar-mobile-location-v53 button:first-child > i {
        width: 32px;
        height: 32px;
        display: grid;
        place-items: center;
        border-radius: 9px;
        background: #eaf7ef;
        color: #169b57;
    }

    .radar-mobile-location-v53 button span {
        min-width: 0;
        display: flex;
        flex-direction: column;
        line-height: 1.1;
    }

    .radar-mobile-location-v53 small {
        color: #7b8580;
        font-size: 9px;
        font-weight: 700;
        letter-spacing: .07em;
        text-transform: uppercase;
    }

    .radar-mobile-location-v53 strong {
        margin-top: 3px;
        overflow: hidden;
        font-size: 16px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .radar-mobile-location-v53 em {
        color: #16894f;
        font-size: 11px;
        font-style: normal;
        font-weight: 700;
    }

    .radar-mobile-location-v53 button:last-child {
        display: grid;
        place-items: center;
        color: #fff;
        border-color: #169b57;
        background: #169b57;
        font-size: 15px;
    }

    .home-v27 .radar-location-picker-v27 {
        margin-top: 7px;
        padding: 8px;
        border-radius: 13px;
    }

    .home-v27 .radar-filterbar-v27 {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 7px;
        margin-bottom: 8px;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .home-v27 .radar-filter-period-v27 {
        gap: 0;
    }

    .home-v27 .radar-filter-period-v27 > .radar-filter-label-v27 {
        display: none;
    }

    .home-v27 .radar-segmented-v27 {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 3px;
        min-height: 0;
        padding: 4px;
        overflow: hidden;
        border: 1px solid #e0e6e3;
        border-radius: 13px;
        background: #fff;
    }

    .home-v27 .radar-segmented-v27 button {
        min-width: 0;
        min-height: 45px;
        padding: 5px 2px;
        border-radius: 9px;
    }

    .home-v27 .radar-segmented-v27 button strong {
        font-size: 10px;
    }

    .home-v27 .radar-segmented-v27 button small {
        margin-top: 2px;
        font-size: 8px;
    }

    .home-v27 .radar-segmented-v27 button.is-active {
        background: #169b57;
        box-shadow: none;
    }

    .home-v27 .radar-segmented-v27 button.is-active small {
        color: #d9f2e4;
    }

    .home-v27 .radar-more-filters-v53 {
        display: block;
        width: 100%;
    }

    .home-v27 .radar-more-filters-v53 > summary {
        height: 42px;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        gap: 8px;
        padding: 0 13px;
        list-style: none;
        cursor: pointer;
        border: 1px solid #e0e6e3;
        border-radius: 12px;
        background: #fff;
        color: #24302a;
    }

    .home-v27 .radar-more-filters-v53 > summary::-webkit-details-marker {
        display: none;
    }

    .home-v27 .radar-more-filters-v53 > summary span {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        font-size: 12px;
        font-weight: 700;
    }

    .home-v27 .radar-more-filters-v53 > summary span i {
        color: #169b57;
    }

    .home-v27 .radar-more-filters-v53 > summary small {
        overflow: hidden;
        color: #89928d;
        font-size: 10px;
        text-align: right;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .home-v27 .radar-more-filters-v53 > summary > i {
        color: #7b8580;
        font-size: 10px;
        transition: transform .18s ease;
    }

    .home-v27 .radar-more-filters-v53[open] > summary > i {
        transform: rotate(180deg);
    }

    .home-v27 .radar-more-filters-v53:not([open]) > .radar-more-filters-content-v53 {
        display: none;
    }

    .home-v27 .radar-more-filters-content-v53 {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 11px;
        margin-top: 7px;
        padding: 12px;
        border: 1px solid #e0e6e3;
        border-radius: 13px;
        background: #fff;
    }

    .home-v27 .radar-more-filters-content-v53 .radar-filter-radius-v27,
    .home-v27 .radar-more-filters-content-v53 .radar-levels-v27,
    .home-v27 .radar-more-filters-content-v53 .radar-sort-v27 {
        width: 100%;
        min-width: 0;
    }

    .home-v27 .radar-more-filters-content-v53 .radar-levels-menu-v27 {
        position: static;
        width: 100%;
        margin-top: 7px;
        box-shadow: none;
    }

    .home-v27 .radar-results-status-v27 {
        display: none;
    }

    .home-v27 .radar-results-head-v27 {
        min-height: 68px;
        padding: 12px 13px;
        gap: 10px;
    }

    .home-v27 .radar-results-head-v27 .eyebrow,
    .home-v27 .radar-results-head-v27 p,
    .home-v27 .radar-head-actions-v51 > a {
        display: none;
    }

    .home-v27 .radar-results-head-v27 h2 {
        margin: 0;
        font-size: 21px;
    }

    .home-v27 .radar-counter-v27 {
        min-width: 58px;
        min-height: 42px;
        padding: 5px 8px;
        border-radius: 10px;
    }

    .home-v27 .radar-counter-v27 strong {
        font-size: 19px;
    }

    .home-v27 .radar-counter-v27 span {
        font-size: 8px;
    }
}

@media (max-width: 370px) {
    .home-v27 .radar-segmented-v27 button strong {
        font-size: 9px;
    }

    .home-v27 .radar-more-filters-v53 > summary small {
        display: none;
    }

    .home-v27 .radar-more-filters-v53 > summary {
        grid-template-columns: minmax(0, 1fr) auto;
    }
}

/* V54 — szybkie typowanie 1/X/2 bez opuszczania radaru. */
.home-prediction-v54 {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 8px;
    padding-top: 7px;
    border-top: 1px solid #edf1ef;
}

.home-prediction-v54 > span {
    flex: 0 0 auto;
    color: #77837d;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.home-prediction-v54 > div {
    display: inline-flex;
    gap: 4px;
}

.home-prediction-v54 button {
    width: 30px;
    height: 28px;
    padding: 0;
    border: 1px solid #dce5e0;
    border-radius: 8px;
    background: #f7faf8;
    color: #34463d;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.home-prediction-v54 button:hover {
    border-color: #9bc7ae;
    color: #0c7b44;
}

.home-prediction-v54 button.is-selected {
    border-color: #169b57;
    background: #169b57;
    color: #fff;
}

.home-prediction-v54 button:disabled {
    cursor: wait;
    opacity: .58;
}

.home-prediction-v54 small {
    min-width: 0;
    color: #7d8983;
    font-size: 9px;
    line-height: 1.25;
}

.home-prediction-v54 small:empty {
    display: none;
}

.home-prediction-v54 [data-home-prediction-feedback] {
    flex: 0 0 auto;
}

.home-prediction-v54 [data-home-prediction-feedback].is-success {
    color: #0b7b45;
}

.home-prediction-v54 [data-home-prediction-feedback].is-error {
    color: #a83d37;
}

.home-prediction-v54 [data-home-prediction-feedback] a {
    color: #0c7b44;
    font-weight: 700;
}

.home-prediction-v54 [data-home-prediction-distribution] {
    flex: 1 1 auto;
    text-align: right;
}

@media (max-width: 760px) {
    .home-prediction-v54 {
        flex-wrap: wrap;
        gap: 5px;
        margin-top: 7px;
        padding-top: 6px;
    }

    .home-prediction-v54 button {
        width: 29px;
        height: 27px;
    }

    .home-prediction-v54 [data-home-prediction-feedback],
    .home-prediction-v54 [data-home-prediction-distribution] {
        flex: 1 0 100%;
        text-align: left;
    }
}

/* Ostateczne pozycjonowanie panelu konta względem przycisku. */
.rm-account-panel-v52 {
    left: auto;
    width: min(310px, calc(100vw - 20px));
    max-width: 310px;
    max-height: calc(100vh - 78px);
    overflow-y: auto;
    overscroll-behavior: contain;
}

/* V90 — dopracowany główny radar: zasięg 5 km, statusy, sortowanie odległościowe i smart empty state. */
@media (min-width: 1281px) {
    .home-v27 .radar-more-filters-content-v53 {
        grid-template-columns: 285px 250px 180px 68px;
    }
}

.home-v27 .radar-radius-pills-v27 span {
    min-width: 0;
    padding-inline: 5px;
}

.match-time-head-v90 {
    width: calc(100% - 12px);
    min-height: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
}

.match-time-head-v90 > span {
    min-width: 0;
    color: #7a8387;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .01em;
    white-space: nowrap;
}

.match-time-head-v90 > span small {
    color: #a0a6a9;
    font-size: 9px;
    font-weight: 700;
}

.match-state-v90 {
    min-height: 17px;
    max-width: 72px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border: 1px solid #dfe6e2;
    border-radius: 999px;
    background: #f4f7f5;
    color: #67736d;
    font-size: 7px;
    font-style: normal;
    font-weight: 850;
    line-height: 1;
    letter-spacing: .045em;
    text-transform: uppercase;
    white-space: nowrap;
}

.match-state-v90.is-today {
    border-color: #cce7d8;
    background: #eef8f2;
    color: #137846;
}

.match-state-v90.is-live {
    border-color: #169b57;
    background: #169b57;
    color: #fff;
}

.match-state-v90.is-live::before {
    width: 5px;
    height: 5px;
    margin-right: 4px;
    border-radius: 50%;
    background: currentColor;
    content: "";
    box-shadow: 0 0 0 3px rgba(255,255,255,.18);
}

.match-state-v90.is-finished {
    border-color: #d9dfdc;
    background: #eef1ef;
    color: #59645e;
}

.match-state-v90.is-waiting {
    border-color: #ead9ad;
    background: #fff8e8;
    color: #91681f;
}

.match-state-v90.is-postponed {
    border-color: #e5d0aa;
    background: #fff5e6;
    color: #965d18;
}

.match-state-v90.is-cancelled {
    border-color: #e7c8c8;
    background: #fff0f0;
    color: #a54646;
}

.match-state-v90.is-tomorrow,
.match-state-v90.is-scheduled {
    border-color: #dce3df;
    background: #f5f7f6;
    color: #66716b;
}

.home-v27 .match-time-v27 {
    min-height: 94px;
    height: auto;
}

.home-v27 .match-time-v27 > strong {
    margin-top: 4px;
}

.home-v27 .match-time-v27 .match-score {
    margin-top: 5px;
}

.home-v27 .match-time-v27 .match-result-note-v84 {
    margin-top: 4px;
}

.match-distance-head-v90 > div {
    min-width: 0;
}

.match-distance-head-v90 > div > strong {
    flex: 0 0 auto;
}

.match-distance-head-v90 > div > small {
    overflow: hidden;
    color: #929b96;
    font-size: 9px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.match-distance-group-v90:first-child .match-distance-head-v90 {
    background: #f0f8f4;
}

.match-distance-group-v90:first-child .match-distance-head-v90 i {
    color: #169b57;
}

.radar-empty-v90 {
    min-height: 310px;
    padding: 42px 28px;
}

.radar-empty-v90 > strong {
    color: #243029;
    font-family: "Inter Tight", Arial, sans-serif;
    font-size: 20px;
    font-weight: 750;
}

.radar-empty-v90 > span:not(.radar-empty-icon-v27) {
    max-width: 520px;
    margin-top: 7px;
    color: #78837d;
    font-size: 12px;
    line-height: 1.55;
}

.radar-empty-v90 > span b {
    color: #425048;
}

.radar-empty-actions-v90 {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.radar-empty-actions-v90 button {
    min-height: 42px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid #d8e3dd;
    border-radius: 11px;
    background: #fff;
    color: #33443b;
    font: 750 11px/1 "Inter Tight", Arial, sans-serif;
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease, color .16s ease, transform .16s ease;
}

.radar-empty-actions-v90 button:first-child {
    border-color: #169b57;
    background: #169b57;
    color: #fff;
}

.radar-empty-actions-v90 button:hover,
.radar-empty-actions-v90 button:focus-visible {
    transform: translateY(-1px);
}

.radar-empty-actions-v90 button:not(:first-child):hover,
.radar-empty-actions-v90 button:not(:first-child):focus-visible {
    border-color: #a9cfba;
    background: #f0f8f4;
    color: #117544;
}

@media (max-width: 800px) {
    .home-v27 .match-time-v27 {
        min-height: 105px;
    }

    .match-time-head-v90 {
        width: 100%;
        align-items: flex-start;
        flex-direction: column;
        justify-content: flex-start;
        gap: 4px;
    }

    .match-state-v90 {
        min-height: 16px;
        max-width: 76px;
        padding-inline: 5px;
        font-size: 7px;
    }

    .match-distance-head-v90 > div > small {
        display: none;
    }

    .radar-empty-v90 {
        min-height: 260px;
        padding: 34px 18px;
    }

    .radar-empty-v90 > strong {
        font-size: 18px;
    }

    .radar-empty-actions-v90 {
        width: 100%;
        margin-top: 15px;
    }

    .radar-empty-actions-v90 button {
        flex: 1 1 145px;
        min-height: 40px;
        padding: 0 10px;
    }
}

@media (max-width: 390px) {
    .home-v27 .radar-radius-pills-v27 span {
        padding-inline: 3px;
        font-size: 11px;
    }

    .radar-empty-actions-v90 {
        flex-direction: column;
    }

    .radar-empty-actions-v90 button {
        width: 100%;
        flex: none;
    }
}

/* V34 — centrum powiadomień */
.topbar .rm-notification-trigger-v34 {
    position: relative;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border: 1px solid #dfe6e2;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #1b2822;
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease, color .16s ease;
}

.topbar .rm-notification-trigger-v34:hover,
.topbar .rm-notification-trigger-v34[aria-expanded="true"] {
    border-color: #bcdcca;
    background: #f5faf7;
    color: #0e9250;
}

.rm-notification-trigger-v34 > i { font-size: 15px; }
.rm-notification-trigger-v34 > b {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border: 2px solid #fff;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #159b57;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
}
.rm-notification-trigger-v34 > b[hidden] { display: none; }

.rm-notification-panel-v34 {
    position: fixed;
    z-index: 10030;
    width: min(410px, calc(100vw - 20px));
    max-height: min(620px, calc(100vh - 92px));
    overflow: hidden;
    border: 1px solid #dfe6e2;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 22px 60px rgba(17, 31, 23, .18);
}
.rm-notification-panel-v34[hidden] { display: none; }

.rm-notification-head-v34 {
    min-height: 70px;
    padding: 14px 16px;
    border-bottom: 1px solid #edf1ef;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.rm-notification-head-v34 > div { display: grid; gap: 3px; }
.rm-notification-head-v34 strong { color: #111b16; font-size: 17px; font-weight: 800; }
.rm-notification-head-v34 small { color: #7d8983; font-size: 11px; }
.rm-notification-head-v34 button {
    border: 0;
    padding: 0;
    background: transparent;
    color: #0d9250;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}
.rm-notification-head-v34 button[hidden] { display: none; }

.rm-notification-list-v34 {
    max-height: 445px;
    overflow-y: auto;
    overscroll-behavior: contain;
}
.rm-notification-item-v34 {
    position: relative;
    min-height: 78px;
    padding: 12px 16px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 8px;
    align-items: start;
    gap: 10px;
    border-bottom: 1px solid #f0f3f1;
    color: #1d2923;
    text-decoration: none;
    transition: background .15s ease;
}
.rm-notification-item-v34:hover { background: #f8faf9; }
.rm-notification-item-v34.is-unread { background: #f4fbf7; }
.rm-notification-item-v34.is-unread:hover { background: #eef8f2; }
.rm-notification-icon-v34 {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: #eaf7f0;
    color: #139854;
    font-size: 14px;
}
.rm-notification-copy-v34 { min-width: 0; display: grid; gap: 3px; }
.rm-notification-copy-v34 strong {
    overflow: hidden;
    color: #111b16;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.rm-notification-copy-v34 small {
    display: -webkit-box;
    overflow: hidden;
    color: #65716b;
    font-size: 11px;
    line-height: 1.38;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.rm-notification-copy-v34 time { color: #9aa39e; font-size: 10px; font-weight: 650; }
.rm-notification-dot-v34 {
    width: 7px;
    height: 7px;
    margin-top: 7px;
    border-radius: 50%;
    background: #169b57;
}
.rm-notification-empty-v34 {
    min-height: 220px;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    text-align: center;
}
.rm-notification-empty-v34 > i { color: #9cab9f; font-size: 24px; }
.rm-notification-empty-v34 strong { color: #25312b; font-size: 14px; }
.rm-notification-empty-v34 span { max-width: 260px; color: #7c8781; font-size: 11px; line-height: 1.45; }
.rm-notification-settings-v34 {
    min-height: 48px;
    padding: 0 16px;
    border-top: 1px solid #edf1ef;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #47554e;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
}
.rm-notification-settings-v34:hover { color: #0d9250; background: #fafcfb; }

@media (max-width: 700px) {
    .topbar .rm-notification-trigger-v34 {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }
    .rm-notification-panel-v34 {
        right: 10px !important;
        left: 10px !important;
        width: auto;
        max-height: calc(100dvh - 82px);
    }
    .rm-notification-list-v34 { max-height: calc(100dvh - 210px); }
}

/* V34 — radar mobilny: mapa zawsze dostępna i poprawnie wymiarowana */
@media (max-width: 980px) {
    .home-v27 .home-mobile-tabs-v27 { z-index: 40; }
    .home-v27 .radar-map-card-v27 {
        width: 100%;
        min-width: 0;
        overflow: hidden;
    }
    .home-v27 .radar-map-card-v27.is-visible {
        display: block !important;
        height: calc(100dvh - 158px);
        min-height: 430px;
    }
    .home-v27 .radar-map-card-v27.is-visible #radar-map {
        height: calc(100% - 68px) !important;
        min-height: 360px;
    }
    .home-v27 .radar-results-v27.is-hidden-mobile { display: none !important; }
}

@media (max-width: 560px) {
    .home-v27 .radar-map-card-v27.is-visible {
        height: calc(100dvh - 132px);
        min-height: 420px;
        border-radius: 14px;
    }
    .home-v27 .radar-map-toolbar-v27 { min-height: 62px; height: 62px; }
    .home-v27 .radar-map-card-v27.is-visible #radar-map {
        height: calc(100% - 62px) !important;
        min-height: 350px;
    }
}
.rm-notification-trigger-v34[hidden] { display: none !important; }
