/* Primer 5 — klubovi, timovi i profili */

/* Shared page hero (independent from the competitions stylesheet). */
.primer5-page-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 82% 28%, rgba(190, 47, 67, .24), transparent 32%),
        linear-gradient(115deg, var(--p5-navy-950), var(--p5-navy-900) 62%, #0a4b77);
}

.primer5-page-hero__inner {
    position: relative;
    z-index: 2;
    min-height: 360px;
    padding-top: 72px;
    padding-bottom: 78px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.primer5-page-hero__shape {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 50%;
}

.primer5-page-hero__shape--one {
    width: 360px;
    height: 360px;
    right: 5%;
    top: -130px;
}

.primer5-page-hero__shape--two {
    width: 210px;
    height: 210px;
    right: 14%;
    bottom: -105px;
    background: rgba(255, 255, 255, .025);
}

.primer5-page-hero__kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, .72);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.primer5-page-hero__kicker i {
    width: 28px;
    height: 2px;
    flex: 0 0 28px;
    background: var(--p5-red-500);
}

.primer5-page-hero h1 {
    max-width: 900px;
    margin: 18px 0 14px;
    color: #fff;
    font-size: clamp(46px, 6vw, 78px);
    line-height: .98;
    font-weight: 900;
    letter-spacing: -.055em;
}

.primer5-page-hero p {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, .72);
    font-size: 18px;
}

.primer5-breadcrumb {
    margin-bottom: 36px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: rgba(255, 255, 255, .62);
    font-size: 13px;
    font-weight: 700;
}

.primer5-breadcrumb a {
    color: rgba(255, 255, 255, .78);
    transition: color var(--p5-transition);
}

.primer5-breadcrumb a:hover,
.primer5-breadcrumb > span:last-child {
    color: #fff;
}

.primer5-breadcrumb--light {
    margin-bottom: 38px;
}

.primer5-directory-main {
    background: var(--p5-surface);
}

.primer5-directory-overview {
    padding-bottom: 78px;
}

.primer5-directory-topline {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 285px;
    gap: 24px;
    align-items: stretch;
}

.primer5-directory-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--p5-line);
    border-radius: var(--p5-radius-md);
    box-shadow: var(--p5-shadow-sm);
}

.primer5-directory-stats article {
    min-height: 116px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-right: 1px solid var(--p5-line);
}

.primer5-directory-stats article:last-child {
    border-right: 0;
}

.primer5-directory-stats article > span {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: grid;
    place-items: center;
    color: var(--p5-red-600);
    background: var(--p5-red-100);
    border-radius: 14px;
}

.primer5-directory-stats strong,
.primer5-directory-stats small {
    display: block;
}

.primer5-directory-stats strong {
    color: var(--p5-ink-900);
    font-size: 30px;
    line-height: 1;
    font-weight: 900;
}

.primer5-directory-stats small {
    margin-top: 7px;
    color: var(--p5-ink-500);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.primer5-directory-switch {
    min-height: 116px;
    padding: 23px;
    display: grid;
    grid-template-columns: 52px 1fr auto;
    align-items: center;
    gap: 15px;
    color: #fff;
    background:
        radial-gradient(circle at 100% 0, rgba(255,255,255,.14), transparent 40%),
        linear-gradient(135deg, var(--p5-navy-900), var(--p5-navy-700));
    border-radius: var(--p5-radius-md);
    box-shadow: var(--p5-shadow-sm);
    transition: transform var(--p5-transition), box-shadow var(--p5-transition);
}

.primer5-directory-switch:hover {
    color: #fff;
    transform: translateY(-4px);
    box-shadow: var(--p5-shadow-lg);
}

.primer5-directory-switch > span {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    color: #fff;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 14px;
}

.primer5-directory-switch small,
.primer5-directory-switch strong {
    display: block;
}

.primer5-directory-switch small {
    color: rgba(255,255,255,.58);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.primer5-directory-switch strong {
    margin-top: 4px;
    color: #fff;
    font-size: 18px;
    font-weight: 850;
}

.primer5-directory-content {
    padding-top: 82px;
}

.primer5-directory-filter {
    margin-bottom: 68px;
    padding: 24px;
    display: grid;
    grid-template-columns: minmax(250px, 1.4fr) minmax(170px, .7fr) minmax(230px, 1fr) auto auto;
    gap: 14px;
    align-items: end;
    background: #fff;
    border: 1px solid var(--p5-line);
    border-radius: var(--p5-radius-md);
    box-shadow: var(--p5-shadow-sm);
}

.primer5-directory-filter--teams {
    grid-template-columns: minmax(220px, 1.3fr) minmax(160px, .75fr) minmax(150px, .7fr) minmax(210px, 1fr) auto auto;
}

.primer5-directory-filter label {
    min-width: 0;
}

.primer5-directory-filter label > span {
    margin-bottom: 8px;
    display: block;
    color: var(--p5-ink-700);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.primer5-directory-filter input,
.primer5-directory-filter select {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    color: var(--p5-ink-900);
    background: var(--p5-surface-soft);
    border: 1px solid var(--p5-line);
    border-radius: 10px;
    outline: 0;
    font-size: 14px;
    transition: border-color var(--p5-transition), box-shadow var(--p5-transition), background var(--p5-transition);
}

.primer5-directory-filter select {
    padding-right: 38px;
}

.primer5-directory-filter input:focus,
.primer5-directory-filter select:focus {
    background: #fff;
    border-color: rgba(190,47,67,.55);
    box-shadow: 0 0 0 4px rgba(190,47,67,.1);
}

.primer5-directory-filter__search > div {
    position: relative;
}

.primer5-directory-filter__search > div > svg {
    position: absolute;
    left: 14px;
    top: 50%;
    z-index: 2;
    color: var(--p5-ink-500);
    transform: translateY(-50%);
}

.primer5-directory-filter__search input {
    padding-left: 43px;
}

.primer5-directory-filter .primer5-button {
    height: 48px;
    white-space: nowrap;
}

.primer5-directory-filter__reset {
    height: 48px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: var(--p5-ink-500);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.primer5-directory-filter__reset:hover {
    color: var(--p5-red-600);
}

.primer5-directory-heading {
    margin-bottom: 38px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
}

.primer5-card-eyebrow {
    display: block;
    color: var(--p5-red-600);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.primer5-directory-heading h2 {
    margin: 8px 0 8px;
    color: var(--p5-ink-900);
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.07;
    font-weight: 900;
    letter-spacing: -.04em;
}

.primer5-directory-heading p {
    max-width: 680px;
    margin: 0;
    color: var(--p5-ink-500);
}

.primer5-directory-count {
    min-width: 170px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #fff;
    border: 1px solid var(--p5-line);
    border-radius: 15px;
}

.primer5-directory-count strong {
    color: var(--p5-red-600);
    font-size: 33px;
    line-height: 1;
    font-weight: 900;
}

.primer5-directory-count span {
    color: var(--p5-ink-500);
    font-size: 10px;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.primer5-club-grid,
.primer5-team-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.primer5-club-card,
.primer5-team-card {
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--p5-line);
    border-radius: var(--p5-radius-md);
    box-shadow: 0 8px 24px rgba(0,55,100,.055);
    transition: transform var(--p5-transition), box-shadow var(--p5-transition), border-color var(--p5-transition);
}

.primer5-club-card:hover,
.primer5-team-card:hover {
    border-color: rgba(0,55,100,.22);
    box-shadow: var(--p5-shadow-lg);
    transform: translateY(-6px);
}

.primer5-club-card__visual {
    position: relative;
    min-height: 190px;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--entity-secondary) 88%, #001c31), color-mix(in srgb, var(--entity-primary) 55%, var(--entity-secondary)));
}

@supports not (background: color-mix(in srgb, #fff 50%, #000)) {
    .primer5-club-card__visual {
        background: linear-gradient(135deg, var(--entity-secondary), var(--entity-primary));
    }
}

.primer5-club-card__mesh {
    position: absolute;
    inset: 0;
    opacity: .34;
    background-image:
        linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(90deg, #000, transparent 92%);
}

.primer5-club-card__visual::after {
    content: "";
    position: absolute;
    width: 210px;
    height: 210px;
    right: -80px;
    top: -80px;
    border: 30px solid rgba(255,255,255,.055);
    border-radius: 50%;
}

.primer5-club-card__crest,
.primer5-team-card__crest,
.primer5-entity-crest,
.primer5-club-team-list__crest {
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #fff;
}

.primer5-club-card__crest {
    position: relative;
    z-index: 2;
    width: 112px;
    height: 112px;
    padding: 13px;
    border: 7px solid rgba(255,255,255,.15);
    border-radius: 28px;
    box-shadow: 0 20px 42px rgba(0,0,0,.2);
}

.primer5-club-card__crest img,
.primer5-team-card__crest img,
.primer5-entity-crest img,
.primer5-club-team-list__crest img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.primer5-club-card__crest b,
.primer5-team-card__crest b,
.primer5-entity-crest b,
.primer5-club-team-list__crest b {
    color: var(--p5-navy-900);
    font-weight: 900;
}

.primer5-club-card__crest b {
    font-size: 25px;
}

.primer5-club-card__location {
    position: absolute;
    z-index: 3;
    left: 18px;
    bottom: 16px;
    max-width: calc(100% - 36px);
    min-height: 30px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(255,255,255,.9);
    background: rgba(0,0,0,.28);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 999px;
    backdrop-filter: blur(7px);
    font-size: 11px;
    font-weight: 750;
}

.primer5-club-card__body {
    padding: 28px;
}

.primer5-club-card h2,
.primer5-team-card h2 {
    margin: 8px 0 20px;
    color: var(--p5-ink-900);
    font-size: 25px;
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -.035em;
}

.primer5-club-card h2 a,
.primer5-team-card h2 a {
    color: inherit;
}

.primer5-club-card h2 a:hover,
.primer5-team-card h2 a:hover {
    color: var(--p5-red-600);
}

.primer5-card-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--p5-line);
    border-bottom: 1px solid var(--p5-line);
}

.primer5-card-metrics span {
    padding: 16px 8px;
    text-align: center;
    border-right: 1px solid var(--p5-line);
}

.primer5-card-metrics span:last-child {
    border-right: 0;
}

.primer5-card-metrics strong,
.primer5-card-metrics small {
    display: block;
}

.primer5-card-metrics strong {
    color: var(--p5-ink-900);
    font-size: 20px;
    line-height: 1;
    font-weight: 900;
}

.primer5-card-metrics small {
    margin-top: 6px;
    color: var(--p5-ink-500);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.primer5-card-metrics .is-highlight {
    background: var(--p5-red-100);
}

.primer5-card-metrics .is-highlight strong {
    color: var(--p5-red-600);
}

.primer5-card-address {
    margin: 18px 0 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--p5-ink-500);
    font-size: 13px;
}

.primer5-card-address svg {
    margin-top: 2px;
    flex: 0 0 auto;
    color: var(--p5-red-600);
}

.primer5-card-tags {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.primer5-card-tags span {
    min-height: 27px;
    padding: 0 9px;
    display: inline-flex;
    align-items: center;
    color: var(--p5-ink-700);
    background: var(--p5-surface-soft);
    border-radius: 7px;
    font-size: 10px;
    font-weight: 750;
}

.primer5-card-open {
    margin-top: 22px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--p5-red-600);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.primer5-card-open:hover {
    color: var(--p5-navy-900);
}

.primer5-team-card {
    padding: 26px;
    position: relative;
}

.primer5-team-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--entity-primary), var(--entity-secondary));
}

.primer5-team-card__header {
    display: flex;
    align-items: center;
    gap: 18px;
}

.primer5-team-card__crest {
    width: 82px;
    height: 82px;
    flex: 0 0 82px;
    padding: 10px;
    background: var(--p5-surface-soft);
    border: 1px solid var(--p5-line);
    border-radius: 20px;
}

.primer5-team-card__crest b {
    font-size: 20px;
}

.primer5-team-card__identity {
    min-width: 0;
}

.primer5-team-card h2 {
    margin: 5px 0 7px;
    font-size: 22px;
}

.primer5-team-card__club {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--p5-ink-500);
    font-size: 12px;
    font-weight: 700;
}

.primer5-team-card__club:hover {
    color: var(--p5-red-600);
}

.primer5-team-card__competition {
    min-height: 76px;
    margin: 22px 0 18px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--p5-surface-soft);
    border-left: 3px solid var(--entity-primary);
    border-radius: 10px;
}

.primer5-team-card__competition small,
.primer5-team-card__competition strong {
    display: block;
}

.primer5-team-card__competition small {
    color: var(--p5-ink-500);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.primer5-team-card__competition strong {
    margin-top: 5px;
    color: var(--p5-ink-900);
    font-size: 14px;
    line-height: 1.35;
    font-weight: 800;
}

.primer5-team-card__footer {
    margin-top: 19px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.primer5-team-card__footer > span {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--p5-ink-500);
    font-size: 12px;
}

.primer5-team-card__footer .primer5-card-open {
    margin: 0;
    flex: 0 0 auto;
}

.primer5-pagination {
    margin-top: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.primer5-pagination__direction {
    min-width: 120px;
    min-height: 44px;
    padding: 0 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--p5-ink-700);
    background: #fff;
    border: 1px solid var(--p5-line);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.primer5-pagination__direction:hover {
    color: #fff;
    background: var(--p5-navy-900);
    border-color: var(--p5-navy-900);
}

.primer5-pagination__direction.is-disabled {
    opacity: .42;
    pointer-events: none;
}

.primer5-pagination__pages {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.primer5-pagination__pages a,
.primer5-pagination__pages span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: var(--p5-ink-700);
    background: #fff;
    border: 1px solid var(--p5-line);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 850;
}

.primer5-pagination__pages a:hover,
.primer5-pagination__pages a.is-active {
    color: #fff;
    background: var(--p5-red-600);
    border-color: var(--p5-red-600);
}

.primer5-empty-state--large {
    padding: 38px;
    align-items: flex-start;
    box-shadow: var(--p5-shadow-sm);
}

.primer5-empty-state__icon {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    display: grid;
    place-items: center;
    color: var(--p5-red-600);
    background: var(--p5-red-100);
    border-radius: 15px;
}

.primer5-empty-state--large p {
    margin: 6px 0 10px;
}

/* Entity profile hero. */
.primer5-entity-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 87% 24%, color-mix(in srgb, var(--entity-primary) 34%, transparent), transparent 29%),
        linear-gradient(120deg, var(--p5-navy-950), color-mix(in srgb, var(--entity-secondary) 72%, var(--p5-navy-900)) 64%, var(--p5-navy-700));
}

@supports not (background: color-mix(in srgb, #fff 50%, #000)) {
    .primer5-entity-hero {
        background: linear-gradient(120deg, var(--p5-navy-950), var(--entity-secondary) 64%, var(--p5-navy-700));
    }
}

.primer5-entity-hero::after {
    content: "";
    position: absolute;
    width: 480px;
    height: 480px;
    right: -145px;
    bottom: -245px;
    border: 55px solid rgba(255,255,255,.045);
    border-radius: 50%;
}

.primer5-entity-hero__mesh {
    position: absolute;
    inset: 0;
    opacity: .22;
    background-image:
        linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(90deg, #000, transparent 86%);
}

.primer5-entity-hero__inner {
    position: relative;
    z-index: 2;
    padding-top: 52px;
    padding-bottom: 52px;
}

.primer5-entity-hero__main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.primer5-entity-identity {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 28px;
}

.primer5-entity-crest {
    width: 144px;
    height: 144px;
    flex: 0 0 144px;
    padding: 18px;
    border: 9px solid rgba(255,255,255,.14);
    border-radius: 32px;
    box-shadow: 0 28px 65px rgba(0,0,0,.25);
}

.primer5-entity-crest b {
    font-size: 31px;
}

.primer5-entity-identity__type {
    display: inline-flex;
    min-height: 28px;
    padding: 0 10px;
    align-items: center;
    color: #fff;
    background: var(--entity-primary);
    border-radius: 7px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.primer5-entity-identity h1 {
    max-width: 800px;
    margin: 12px 0 8px;
    color: #fff;
    font-size: clamp(42px, 5vw, 70px);
    line-height: .98;
    font-weight: 900;
    letter-spacing: -.05em;
}

.primer5-entity-identity p {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,.7);
    font-size: 15px;
    font-weight: 700;
}

.primer5-entity-identity p a {
    color: rgba(255,255,255,.85);
}

.primer5-entity-identity p a:hover {
    color: #fff;
}

.primer5-entity-facts {
    margin-top: 42px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: hidden;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 18px;
    backdrop-filter: blur(8px);
}

.primer5-entity-facts article {
    min-height: 92px;
    padding: 19px 22px;
    display: flex;
    align-items: center;
    gap: 13px;
    border-right: 1px solid rgba(255,255,255,.1);
}

.primer5-entity-facts article:last-child {
    border-right: 0;
}

.primer5-entity-facts article > span {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    color: #fff;
    background: rgba(255,255,255,.09);
    border-radius: 12px;
}

.primer5-entity-facts small,
.primer5-entity-facts strong {
    display: block;
}

.primer5-entity-facts small {
    color: rgba(255,255,255,.52);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.primer5-entity-facts strong {
    max-width: 200px;
    margin-top: 5px;
    color: #fff;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 850;
}

.primer5-profile-nav {
    position: sticky;
    top: var(--p5-header-height);
    z-index: 1010;
    color: var(--p5-ink-700);
    background: rgba(255,255,255,.98);
    border-bottom: 1px solid var(--p5-line);
    box-shadow: 0 10px 28px rgba(0,55,100,.08);
    backdrop-filter: blur(12px);
}

.primer5-profile-nav__inner {
    min-height: 70px;
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
}

.primer5-profile-nav__inner::-webkit-scrollbar {
    display: none;
}

.primer5-profile-nav a {
    position: relative;
    min-height: 70px;
    padding: 0 18px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--p5-ink-700);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .04em;
    text-transform: uppercase;
    transition: color var(--p5-transition), background var(--p5-transition);
}

.primer5-profile-nav a::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 0;
    height: 3px;
    background: var(--p5-red-600);
    transform: scaleX(0);
    transition: transform var(--p5-transition);
}

.primer5-profile-nav a:hover,
.primer5-profile-nav a.is-active {
    color: var(--p5-red-600);
    background: var(--p5-red-100);
}

.primer5-profile-nav a:hover::after,
.primer5-profile-nav a.is-active::after {
    transform: scaleX(1);
}

.primer5-profile-nav a b {
    min-width: 23px;
    height: 23px;
    padding: 0 6px;
    display: inline-grid;
    place-items: center;
    color: #fff;
    background: var(--p5-navy-900);
    border-radius: 999px;
    font-size: 10px;
}

.primer5-profile-main {
    padding: 82px 0 100px;
    background: var(--p5-surface-soft);
}

.primer5-profile-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 30px;
    align-items: start;
}

.primer5-profile-content,
.primer5-profile-sidebar,
.primer5-profile-section {
    display: grid;
    gap: 28px;
}

.primer5-profile-panel,
.primer5-sidebar-card {
    min-width: 0;
    padding: 32px;
    background: #fff;
    border: 1px solid var(--p5-line);
    border-radius: var(--p5-radius-md);
    box-shadow: 0 8px 26px rgba(0,55,100,.055);
    scroll-margin-top: calc(var(--p5-header-height) + 92px);
}

.primer5-profile-panel__header,
.primer5-sidebar-card > header {
    margin-bottom: 25px;
}

.primer5-profile-panel__header--split {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.primer5-profile-panel__header span,
.primer5-sidebar-card > header span {
    display: block;
    color: var(--p5-red-600);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.primer5-profile-panel__header h2,
.primer5-sidebar-card > header h2 {
    margin: 6px 0 0;
    color: var(--p5-ink-900);
    font-size: 29px;
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -.035em;
}

.primer5-panel-count {
    min-width: 72px;
    padding: 11px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--p5-red-600);
    background: var(--p5-red-100);
    border-radius: 12px;
    font-size: 25px;
    line-height: 1;
    font-weight: 900;
}

.primer5-panel-count small {
    margin-top: 5px;
    color: var(--p5-ink-500);
    font-size: 8px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.primer5-richtext {
    color: var(--p5-ink-700);
    line-height: 1.8;
}

.primer5-richtext > *:first-child {
    margin-top: 0;
}

.primer5-richtext > *:last-child {
    margin-bottom: 0;
}

.primer5-richtext h2,
.primer5-richtext h3,
.primer5-richtext h4 {
    color: var(--p5-ink-900);
}

.primer5-richtext a {
    color: var(--p5-red-600);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.primer5-richtext img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
}

.primer5-club-team-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}

.primer5-club-team-list > a {
    min-height: 86px;
    padding: 14px;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    color: var(--p5-ink-900);
    background: var(--p5-surface-soft);
    border: 1px solid transparent;
    border-radius: 13px;
    transition: background var(--p5-transition), border-color var(--p5-transition), transform var(--p5-transition);
}

.primer5-club-team-list > a:hover {
    background: #fff;
    border-color: var(--p5-line);
    transform: translateY(-2px);
}

.primer5-club-team-list__crest {
    width: 58px;
    height: 58px;
    padding: 7px;
    border: 1px solid var(--p5-line);
    border-radius: 13px;
}

.primer5-club-team-list__crest b {
    font-size: 15px;
}

.primer5-club-team-list strong,
.primer5-club-team-list small {
    display: block;
}

.primer5-club-team-list strong {
    color: var(--p5-ink-900);
    font-size: 15px;
    line-height: 1.2;
    font-weight: 850;
}

.primer5-club-team-list small {
    margin-top: 5px;
    color: var(--p5-ink-500);
    font-size: 11px;
}

.primer5-club-team-list > a > svg {
    color: var(--p5-red-600);
}

.primer5-info-list {
    display: grid;
}

.primer5-info-list > div {
    padding: 16px 0;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    border-bottom: 1px solid var(--p5-line);
}

.primer5-info-list > div:first-child {
    padding-top: 0;
}

.primer5-info-list > div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.primer5-info-list > div > span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: var(--p5-red-600);
    background: var(--p5-red-100);
    border-radius: 11px;
}

.primer5-info-list small,
.primer5-info-list strong,
.primer5-info-list a {
    display: block;
}

.primer5-info-list small {
    color: var(--p5-ink-500);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.primer5-info-list strong,
.primer5-info-list a {
    margin-top: 4px;
    color: var(--p5-ink-900);
    font-size: 13px;
    line-height: 1.45;
    font-weight: 750;
    word-break: break-word;
}

.primer5-info-list a:hover {
    color: var(--p5-red-600);
}

.primer5-sidebar-links {
    display: grid;
}

.primer5-sidebar-links > a {
    padding: 14px 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--p5-line);
}

.primer5-sidebar-links > a:first-child {
    padding-top: 0;
}

.primer5-sidebar-links > a:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.primer5-sidebar-links strong,
.primer5-sidebar-links small {
    display: block;
}

.primer5-sidebar-links strong {
    color: var(--p5-ink-900);
    font-size: 13px;
    font-weight: 850;
}

.primer5-sidebar-links small {
    margin-top: 4px;
    color: var(--p5-ink-500);
    font-size: 10px;
}

.primer5-sidebar-links > a > svg {
    color: var(--p5-red-600);
}

.primer5-team-standing-list {
    display: grid;
    overflow: hidden;
    border: 1px solid var(--p5-line);
    border-radius: 14px;
}

.primer5-team-standing-list > a {
    min-height: 78px;
    padding: 13px 16px;
    display: grid;
    grid-template-columns: minmax(210px, 1fr) repeat(5, 54px);
    align-items: center;
    color: var(--p5-ink-700);
    background: #fff;
    border-bottom: 1px solid var(--p5-line);
    transition: background var(--p5-transition);
}

.primer5-team-standing-list > a:last-child {
    border-bottom: 0;
}

.primer5-team-standing-list > a:hover {
    background: var(--p5-surface-soft);
}

.primer5-team-standing-list > a > span:not(.primer5-team-standing-list__name) {
    text-align: center;
}

.primer5-team-standing-list small,
.primer5-team-standing-list strong,
.primer5-team-standing-list b {
    display: block;
}

.primer5-team-standing-list__name small {
    color: var(--p5-ink-500);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.primer5-team-standing-list__name strong {
    margin-top: 4px;
    color: var(--p5-ink-900);
    font-size: 14px;
    font-weight: 850;
}

.primer5-team-standing-list b {
    color: var(--p5-ink-900);
    font-size: 17px;
    line-height: 1;
    font-weight: 900;
}

.primer5-team-standing-list > a > span small {
    margin-top: 4px;
    color: var(--p5-ink-500);
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
}

.primer5-team-standing-list .is-points {
    min-height: 48px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--p5-navy-900);
    border-radius: 10px;
}

.primer5-team-standing-list .is-points b,
.primer5-team-standing-list .is-points small {
    color: #fff;
}

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

.primer5-roster-player {
    min-height: 92px;
    padding: 13px;
    display: flex;
    align-items: center;
    gap: 13px;
    background: var(--p5-surface-soft);
    border: 1px solid transparent;
    border-radius: 14px;
    transition: background var(--p5-transition), border-color var(--p5-transition), transform var(--p5-transition);
}

.primer5-roster-player:hover {
    background: #fff;
    border-color: var(--p5-line);
    transform: translateY(-2px);
}

.primer5-roster-player__photo {
    position: relative;
    width: 62px;
    height: 62px;
    flex: 0 0 62px;
    display: grid;
    place-items: center;
    overflow: visible;
    color: #fff;
    background: var(--p5-navy-900);
    border-radius: 15px;
}

.primer5-roster-player__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.primer5-roster-player__photo b {
    font-size: 15px;
    font-weight: 900;
}

.primer5-roster-player__photo em {
    position: absolute;
    right: -6px;
    bottom: -6px;
    min-width: 25px;
    height: 25px;
    padding: 0 5px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--p5-red-600);
    border: 3px solid #fff;
    border-radius: 999px;
    font-size: 9px;
    line-height: 1;
    font-style: normal;
    font-weight: 900;
}

.primer5-roster-player strong,
.primer5-roster-player small {
    display: block;
}

.primer5-roster-player strong {
    color: var(--p5-ink-900);
    font-size: 13px;
    line-height: 1.25;
    font-weight: 850;
}

.primer5-roster-player small {
    margin-top: 5px;
    color: var(--p5-ink-500);
    font-size: 10px;
    line-height: 1.35;
}

.primer5-person-list {
    display: grid;
}

.primer5-person-list article {
    padding: 14px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--p5-line);
}

.primer5-person-list article:first-child {
    padding-top: 0;
}

.primer5-person-list article:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.primer5-person-list article > span {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #fff;
    background: var(--p5-navy-900);
    border-radius: 12px;
}

.primer5-person-list img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.primer5-person-list b {
    font-size: 12px;
    font-weight: 900;
}

.primer5-person-list strong,
.primer5-person-list small {
    display: block;
}

.primer5-person-list strong {
    color: var(--p5-ink-900);
    font-size: 13px;
    font-weight: 850;
}

.primer5-person-list small {
    margin-top: 4px;
    color: var(--p5-ink-500);
    font-size: 10px;
}

.primer5-profile-match-list {
    display: grid;
    gap: 14px;
}

.primer5-profile-match {
    overflow: hidden;
    background: var(--p5-surface-soft);
    border: 1px solid var(--p5-line);
    border-left: 4px solid var(--p5-navy-700);
    border-radius: 14px;
}

.primer5-profile-match.is-win {
    border-left-color: var(--p5-success);
}

.primer5-profile-match.is-loss {
    border-left-color: var(--p5-red-600);
}

.primer5-profile-match.is-draw {
    border-left-color: #b98819;
}

.primer5-profile-match__meta {
    min-height: 56px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: #fff;
    border-bottom: 1px solid var(--p5-line);
}

.primer5-profile-match__meta span,
.primer5-profile-match__meta small {
    display: block;
}

.primer5-profile-match__meta span {
    color: var(--p5-ink-900);
    font-size: 11px;
    font-weight: 850;
}

.primer5-profile-match__meta small {
    margin-top: 3px;
    color: var(--p5-ink-500);
    font-size: 10px;
}

.primer5-profile-match__meta em {
    min-height: 27px;
    padding: 0 9px;
    display: inline-flex;
    align-items: center;
    color: var(--p5-navy-900);
    background: var(--p5-surface-soft);
    border-radius: 7px;
    font-size: 9px;
    font-style: normal;
    font-weight: 850;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.primer5-profile-match__contest {
    min-height: 108px;
    padding: 18px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 105px minmax(0, 1fr);
    align-items: center;
    gap: 15px;
}

.primer5-profile-match__team {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--p5-ink-900);
}

.primer5-profile-match__team.is-home {
    justify-content: flex-end;
    text-align: right;
}

.primer5-profile-match__team.is-away {
    justify-content: flex-start;
}

.primer5-profile-match__team strong {
    min-width: 0;
    color: var(--p5-ink-900);
    font-size: 13px;
    line-height: 1.25;
    font-weight: 850;
}

.primer5-profile-match__team.is-current strong {
    color: var(--p5-red-600);
}

.primer5-profile-match__team > span {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    padding: 5px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--p5-line);
    border-radius: 12px;
}

.primer5-profile-match__team img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.primer5-profile-match__team b {
    color: var(--p5-navy-900);
    font-size: 11px;
    font-weight: 900;
}

.primer5-profile-match__score {
    min-height: 72px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--p5-navy-900);
    border-radius: 12px;
}

.primer5-profile-match__score:hover {
    color: #fff;
    background: var(--p5-red-600);
}

.primer5-profile-match__score strong {
    color: #fff;
    font-size: 22px;
    line-height: 1;
    font-weight: 900;
}

.primer5-profile-match__score strong i {
    margin: 0 5px;
    color: var(--p5-red-500);
    font-style: normal;
}

.primer5-profile-match__score:hover strong i {
    color: #fff;
}

.primer5-profile-match__score small {
    margin-top: 7px;
    color: rgba(255,255,255,.62);
    font-size: 8px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.primer5-profile-match__footer {
    min-height: 46px;
    padding: 9px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: var(--p5-ink-500);
    background: #fff;
    border-top: 1px solid var(--p5-line);
    font-size: 10px;
}

.primer5-profile-match__footer > span,
.primer5-profile-match__footer > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.primer5-profile-match__footer > a {
    color: var(--p5-red-600);
    font-weight: 850;
    text-transform: uppercase;
}

.primer5-profile-match__footer > a:hover {
    color: var(--p5-navy-900);
}

@media (max-width: 1199.98px) {
    .primer5-directory-topline {
        grid-template-columns: 1fr;
    }

    .primer5-directory-switch {
        min-height: 94px;
    }

    .primer5-directory-filter,
    .primer5-directory-filter--teams {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .primer5-directory-filter__search {
        grid-column: span 2;
    }

    .primer5-club-grid,
    .primer5-team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .primer5-profile-layout {
        grid-template-columns: minmax(0, 1fr) 320px;
    }

    .primer5-roster-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .primer5-page-hero__inner {
        min-height: 320px;
        padding-top: 58px;
        padding-bottom: 64px;
    }

    .primer5-directory-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .primer5-directory-stats article:nth-child(2) {
        border-right: 0;
    }

    .primer5-directory-stats article:nth-child(-n+2) {
        border-bottom: 1px solid var(--p5-line);
    }

    .primer5-entity-hero__main {
        align-items: flex-start;
        flex-direction: column;
    }

    .primer5-entity-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .primer5-entity-facts article:nth-child(2) {
        border-right: 0;
    }

    .primer5-entity-facts article:nth-child(-n+2) {
        border-bottom: 1px solid rgba(255,255,255,.1);
    }

    .primer5-profile-layout {
        grid-template-columns: 1fr;
    }

    .primer5-profile-sidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .primer5-sidebar-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767.98px) {
    .primer5-page-hero__inner {
        min-height: 285px;
        padding-top: 46px;
        padding-bottom: 52px;
    }

    .primer5-page-hero h1 {
        font-size: clamp(39px, 12vw, 56px);
    }

    .primer5-page-hero p {
        font-size: 15px;
    }

    .primer5-breadcrumb {
        margin-bottom: 25px;
        font-size: 11px;
    }

    .primer5-directory-overview,
    .primer5-directory-content {
        padding-top: 68px;
        padding-bottom: 68px;
    }

    .primer5-directory-filter,
    .primer5-directory-filter--teams {
        grid-template-columns: 1fr;
        margin-bottom: 50px;
        padding: 18px;
    }

    .primer5-directory-filter__search {
        grid-column: auto;
    }

    .primer5-directory-filter .primer5-button,
    .primer5-directory-filter__reset {
        width: 100%;
    }

    .primer5-directory-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .primer5-directory-count {
        min-width: 0;
    }

    .primer5-club-grid,
    .primer5-team-grid {
        grid-template-columns: 1fr;
    }

    .primer5-pagination {
        align-items: stretch;
        flex-wrap: wrap;
    }

    .primer5-pagination__direction {
        min-width: 0;
        flex: 1 1 calc(50% - 10px);
    }

    .primer5-pagination__pages {
        order: -1;
        width: 100%;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 4px;
    }

    .primer5-entity-hero__inner {
        padding-top: 38px;
        padding-bottom: 42px;
    }

    .primer5-entity-identity {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
    }

    .primer5-entity-crest {
        width: 112px;
        height: 112px;
        flex-basis: 112px;
        padding: 14px;
        border-width: 7px;
        border-radius: 25px;
    }

    .primer5-entity-identity h1 {
        font-size: clamp(39px, 12vw, 58px);
    }

    .primer5-entity-hero__main .primer5-button {
        width: 100%;
    }

    .primer5-entity-facts {
        margin-top: 30px;
        grid-template-columns: 1fr;
    }

    .primer5-entity-facts article,
    .primer5-entity-facts article:nth-child(2) {
        border-right: 0;
        border-bottom: 1px solid rgba(255,255,255,.1);
    }

    .primer5-entity-facts article:last-child {
        border-bottom: 0;
    }

    .primer5-profile-nav {
        top: var(--p5-header-height);
    }

    .primer5-profile-nav a {
        min-height: 62px;
        padding: 0 13px;
        font-size: 10px;
    }

    .primer5-profile-nav a::after {
        left: 13px;
        right: 13px;
    }

    .primer5-profile-main {
        padding-top: 58px;
        padding-bottom: 72px;
    }

    .primer5-profile-panel,
    .primer5-sidebar-card {
        padding: 22px;
        border-radius: 15px;
    }

    .primer5-profile-panel__header--split {
        align-items: flex-start;
        flex-direction: column;
    }

    .primer5-club-team-list,
    .primer5-profile-sidebar,
    .primer5-roster-grid {
        grid-template-columns: 1fr;
    }

    .primer5-sidebar-card:last-child:nth-child(odd) {
        grid-column: auto;
    }

    .primer5-team-standing-list {
        overflow-x: auto;
    }

    .primer5-team-standing-list > a {
        min-width: 640px;
    }

    .primer5-profile-match__contest {
        grid-template-columns: minmax(0, 1fr) 78px minmax(0, 1fr);
        padding: 14px 10px;
        gap: 8px;
    }

    .primer5-profile-match__team {
        align-items: center;
        flex-direction: column;
        gap: 7px;
        text-align: center;
    }

    .primer5-profile-match__team.is-home {
        flex-direction: column-reverse;
        justify-content: center;
        text-align: center;
    }

    .primer5-profile-match__team.is-away {
        justify-content: center;
    }

    .primer5-profile-match__team strong {
        font-size: 10px;
    }

    .primer5-profile-match__team > span {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .primer5-profile-match__score {
        min-height: 64px;
    }

    .primer5-profile-match__score strong {
        font-size: 18px;
    }

    .primer5-profile-match__footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 479.98px) {
    .primer5-directory-stats {
        grid-template-columns: 1fr;
    }

    .primer5-directory-stats article,
    .primer5-directory-stats article:nth-child(2),
    .primer5-directory-stats article:nth-child(-n+2) {
        border-right: 0;
        border-bottom: 1px solid var(--p5-line);
    }

    .primer5-directory-stats article:last-child {
        border-bottom: 0;
    }

    .primer5-directory-switch {
        grid-template-columns: 45px 1fr auto;
        padding: 18px;
    }

    .primer5-directory-switch > span {
        width: 45px;
        height: 45px;
    }

    .primer5-club-card__body,
    .primer5-team-card {
        padding: 22px;
    }

    .primer5-club-card__visual {
        min-height: 170px;
    }

    .primer5-team-card__header {
        align-items: flex-start;
    }

    .primer5-team-card__crest {
        width: 70px;
        height: 70px;
        flex-basis: 70px;
    }

    .primer5-team-card__footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .primer5-profile-panel__header h2,
    .primer5-sidebar-card > header h2 {
        font-size: 25px;
    }

    .primer5-club-team-list > a {
        grid-template-columns: 52px minmax(0, 1fr) auto;
    }

    .primer5-club-team-list__crest {
        width: 52px;
        height: 52px;
    }
}
