/* Next Game / Last Result — CSS-built cards (sportie-fixture-* namespace).
   Images: team/club logos only; optional low-opacity stadium-bg.jpg texture. */
.sportie-fixtures {
    --sportie-fixture-gold: #c8a84e;
    --sportie-fixture-gold-dim: rgba(200, 168, 78, 0.55);
    --sportie-fixture-header-h: 72px;
    --sportie-fixture-body-h: 216px;
    --sportie-fixture-card-h: 288px;
    --sportie-fixture-logo-next: clamp(110px, 16cqi, 92px);
    --sportie-fixture-logo-box: clamp(115px, 16cqi, 92px);
    --sportie-fixture-stadium-texture: url("/images/stadium-bg.jpg"); 

    box-sizing: border-box;
    font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 16px;
    width: 100%;
    max-width: 100%;
}

.sportie-fixtures *,
.sportie-fixtures *::before,
.sportie-fixtures *::after {
    box-sizing: inherit;
}

/* ── Card shell: fixed 288px total (header + body) ── */
.sportie-fixtures .sportie-fixture-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 570px !important;
    height: var(--sportie-fixture-card-h);
    min-height: var(--sportie-fixture-card-h);
    max-height: var(--sportie-fixture-card-h);
    margin-inline: auto;
    overflow: hidden;
    border: 1px solid var(--sportie-fixture-gold-dim);
    border-radius: 4px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
    background: #0a0a0a;
    color: #fff;
}

/* ── Header: near-black with optional subtle stadium texture ── */
.sportie-fixtures .sportie-fixture-header {
    flex: 0 0 var(--sportie-fixture-header-h);
    height: var(--sportie-fixture-header-h);
    min-height: var(--sportie-fixture-header-h);
    max-height: var(--sportie-fixture-header-h);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: center;
    padding: 8px 10px;
    gap: 6px;
    overflow: hidden;
    background-color: #111;
    background-image:
        linear-gradient(180deg, rgba(17, 17, 17, 0.9) 0%, rgba(17, 17, 17, 0.95) 100%),
        var(--sportie-fixture-stadium-texture);
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--sportie-fixture-gold-dim);
}

.sportie-fixtures .sportie-fixture-header-left,
.sportie-fixtures .sportie-fixture-header-right {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.sportie-fixtures .sportie-fixture-header-right {
    justify-content: flex-end;
}

.sportie-fixtures .sportie-fixture-icon {
    flex: 0 0 auto;
    font-size: 1.125rem;
    line-height: 1;
    color: var(--sportie-fixture-gold);
}

.sportie-fixtures .sportie-fixture-date {
    line-height: 1.05;
    min-width: 0;
}

.sportie-fixtures .sportie-fixture-day {
    display: block;
    font-size: clamp(0.5625rem, 1.1vw, 0.6875rem);
    color: var(--sportie-fixture-gold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 600;
}

.sportie-fixtures .sportie-fixture-daynum {
    display: block;
    font-size: clamp(1.5rem, 4.5vw, 1.875rem);
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin: 1px 0;
}

.sportie-fixtures .sportie-fixture-month {
    display: block;
    color: #fff;
    text-transform: uppercase;
    font-size: clamp(0.5625rem, 1.1vw, 0.6875rem);
    letter-spacing: 0.06em;
    font-weight: 500;
}

.sportie-fixtures .sportie-fixture-header-center {
    text-align: center;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.sportie-fixtures .sportie-fixture-title {
    font-size: clamp(0.875rem, 2vw, 1.0625rem);
    font-weight: 800;
    letter-spacing: 0.14em;
    color: #fff;
    margin: 0;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    font-stretch: condensed;
}

.sportie-fixtures .sportie-fixture-title-line {
    width: min(72px, 60%);
    height: 2px;
    background: var(--sportie-fixture-gold);
    border-radius: 1px;
}

.sportie-fixtures .sportie-fixture-meta {
    text-align: left;
    min-width: 0;
    overflow: hidden;
}

.sportie-fixtures .sportie-fixture-meta span {
    display: block;
    color: var(--sportie-fixture-gold);
    text-transform: uppercase;
    font-size: clamp(0.5625rem, 1.1vw, 0.6875rem);
    letter-spacing: 0.08em;
    font-weight: 600;
}

.sportie-fixtures .sportie-fixture-meta strong {
    display: block;
    font-size: clamp(1rem, 2.8vw, 1.375rem);
    font-weight: 700;
    color: #fff;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
    margin-top: 1px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sportie-fixtures .sportie-fixture-meta--team strong {
    font-size: clamp(0.6875rem, 1.8vw, 0.8125rem);
    letter-spacing: 0.04em;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* ── Body ── */
.sportie-fixtures .sportie-fixture-body {
    flex: 1 1 var(--sportie-fixture-body-h);
    height: var(--sportie-fixture-body-h);
    min-height: 0;
    max-height: var(--sportie-fixture-body-h);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
}

/* Next game: dark surround, white panel inside */
.sportie-fixtures .sportie-fixture-body--next {
    background-color: #141414;
    background-image:
        linear-gradient(180deg, rgba(20, 20, 20, 0.92) 0%, rgba(10, 10, 10, 0.96) 100%),
        var(--sportie-fixture-stadium-texture);
    background-size: cover;
    background-position: center;
}

/* Last result: dark body */
.sportie-fixtures .sportie-fixture-body--result {
    background-color: #0e0e0e;
    background-image:
        linear-gradient(180deg, rgba(14, 14, 14, 0.2) 0%, rgba(6, 6, 6, 0.95) 100%),
        var(--sportie-fixture-stadium-texture);
    background-size: cover;
    background-position: center;
}

.sportie-fixtures .sportie-fixture-body--empty {
    background-color: #111;
    background-image:
        linear-gradient(180deg, rgba(17, 17, 17, 0.88) 0%, rgba(17, 17, 17, 0.94) 100%),
        var(--sportie-fixture-stadium-texture);
    background-size: cover;
    background-position: center;
}

/* Next game — white curved panel with gold borders + dot pattern */
.sportie-fixtures .sportie-fixture-panel {
    position: relative;
    width: 94%;
    height: 88%;
    max-height: 158px;
    background: #fff;
    border-top: 2px solid var(--sportie-fixture-gold);
    border-bottom: 2px solid var(--sportie-fixture-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.sportie-fixtures .sportie-fixture-panel::before,
.sportie-fixtures .sportie-fixture-panel::after {
    content: "";
    position: absolute;
    width: 42%;
    height: 55%;
    pointer-events: none;
    opacity: 0.35;
    background-image: radial-gradient(circle, #bbb 1px, transparent 1px);
    background-size: 5px 5px;
}

.sportie-fixtures .sportie-fixture-panel::before {
    top: 0;
    left: 0;
    mask-image: radial-gradient(ellipse 90% 80% at 0% 0%, #000 30%, transparent 72%);
}

.sportie-fixtures .sportie-fixture-panel::after {
    top: 0;
    right: 0;
    mask-image: radial-gradient(ellipse 90% 80% at 100% 0%, #000 30%, transparent 72%);
}

.sportie-fixtures .sportie-fixture-matchup {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    padding: 4px 8px;
    gap: 2px;
}

.sportie-fixtures .sportie-fixture-vs {
    flex: 0 0 auto;
    font-size: clamp(1.125rem, 3vw, 1.5rem);
    font-weight: 900;
    color: #111;
    line-height: 1;
    white-space: nowrap;
    padding: 0 2px;
    letter-spacing: 0.04em;
}

/* Teams — next game (inside white panel) */
.sportie-fixtures .sportie-fixture-team {
    container-type: inline-size;
    container-name: fixture-team;
    text-align: center;
    flex: 1 1 0;
    min-width: 0;
    max-width: 42%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.sportie-fixtures .sportie-fixture-team img {
    flex: 0 0 auto;
    width: var(--sportie-fixture-logo-next);
    height: var(--sportie-fixture-logo-next);
    object-fit: contain;
    margin-bottom: 3px;
    display: block;
}

.sportie-fixtures .sportie-fixture-team h3 {
    flex: 0 1 auto;
    width: 100%;
    max-height: 2.4em;
    font-size: clamp(0.5625rem, 10cqi, 0.8125rem);
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    color: #111;
    word-break: break-word;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sportie-fixtures .sportie-fixture-team small {
    flex: 0 0 auto;
    color: #555;
    font-size: clamp(0.5625rem, 8cqi, 0.6875rem);
    line-height: 1.1;
    display: block;
    margin-top: 2px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Last result row */
.sportie-fixtures .sportie-fixture-result-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 100%;
    max-width: 100%;
    padding: 0 4px;
}

.sportie-fixtures .sportie-fixture-team--result {
    max-width: 34%;
    color: #fff;
}

.sportie-fixtures .sportie-fixture-team--result h3 {
    color: #fff;
    font-size: clamp(0.5625rem, 9cqi, 0.75rem);
    -webkit-line-clamp: 2;
    line-clamp: 2;
    margin-top: 4px;
}

.sportie-fixtures .sportie-fixture-logo-box {
    width: var(--sportie-fixture-logo-box);
    height: var(--sportie-fixture-logo-box);
    min-width: var(--sportie-fixture-logo-box);
    min-height: var(--sportie-fixture-logo-box);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    border: 0px solid rgba(255, 255, 255, 0.92);
    border-radius: 4px;
    padding: 6px;
}

.sportie-fixtures .sportie-fixture-logo-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    margin: 0;
}

.sportie-fixtures .sportie-fixture-score-wrap {
    flex: 0 0 auto;
    display: flex;
    align-items: stretch;
    margin: 0 2px;
}

.sportie-fixtures .sportie-fixture-score {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.82);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 8px;
    padding: clamp(0.375rem, 1.2vw, 0.5rem) clamp(0.625rem, 2vw, 0.875rem);
    font-size: clamp(1.125rem, 3.5vw, 1.5rem);
    font-weight: 800;
    letter-spacing: 0.12em;
    white-space: nowrap;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    min-width: 72px;
    font-family: "Segoe UI", system-ui, sans-serif;
}

/* Gold accent at bottom of result body */
.sportie-fixtures .sportie-fixture-body--result::after {
    content: "";
    position: absolute;
    left: 8%;
    right: 8%;
    bottom: 0;
    height: 2px;
    opacity: 0.85;
}

/* Empty state */
.sportie-fixtures .sportie-fixture-card--empty .sportie-fixture-header {
    grid-template-columns: 1fr;
    justify-items: center;
}

.sportie-fixtures .sportie-fixture-card--empty .sportie-fixture-header-left,
.sportie-fixtures .sportie-fixture-card--empty .sportie-fixture-header-right {
    display: none;
}

.sportie-fixtures .sportie-widget-empty {
    color: rgba(255, 255, 255, 0.72);
    font-style: italic;
    text-align: center;
    margin: 0;
    width: 100%;
    font-size: 0.875rem;
    padding: 0 12px;
}

@container fixture-team (max-width: 120px) {
    .sportie-fixtures .sportie-fixture-team h3 {
        font-size: clamp(0.5625rem, 9cqi, 0.75rem);
    }
}

@media (max-width: 900px) {
    .sportie-fixtures .sportie-fixture-card {
        max-width: 100%;
    }
}

@media (max-width: 720px) {
    .sportie-fixtures {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {
    .sportie-fixtures .sportie-fixture-header {
        grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr) minmax(0, 0.95fr);
        padding: 6px 6px;
        gap: 4px;
    }
    .sportie-fixtures .sportie-fixture-icon {
        font-size: 0.9375rem;
    }
    .sportie-fixtures .sportie-fixture-daynum {
        font-size: 1.375rem;
    }
    .sportie-fixtures .sportie-fixture-title {
        font-size: 0.8125rem;
        letter-spacing: 0.1em;
    }
    .sportie-fixtures .sportie-fixture-meta strong {
        font-size: 1rem;
    }
}

/* Events list — 1st team pitch match row (mirrors next-game team layout) */
.swel-matchup {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.5rem, 2vw, 1rem);
    width: 100%;
}

.swel-matchup-team {
    container-type: inline-size;
    container-name: swel-matchup-team;
    flex: 1 1 0;
    min-width: 0;
    max-width: 42%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.swel-matchup-team img {
    width: clamp(52px, 12cqi, 72px);
    height: clamp(52px, 12cqi, 72px);
    object-fit: contain;
    margin-bottom: 4px;
    display: block;
}

.swel-matchup-name {
    font-size: clamp(0.6875rem, 9cqi, 0.8125rem);
    font-weight: 700;
    color: var(--pub-card-heading, #0f172a);
    line-height: 1.2;
    word-break: break-word;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

.swel-matchup-label {
    color: var(--pub-card-text, #64748b);
    font-size: clamp(0.5625rem, 7cqi, 0.6875rem);
    line-height: 1.1;
    margin-top: 2px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.swel-matchup-vs {
    flex: 0 0 auto;
    font-size: clamp(0.75rem, 2vw, 0.9375rem);
    font-weight: 800;
    color: var(--pub-card-text, #64748b);
    text-transform: lowercase;
    line-height: 1;
    white-space: nowrap;
}

.swel-title-row--matchup {
    width: 100%;
    justify-content: center;
}

.swel-card--cancelled .swel-matchup-name,
.swel-card--cancelled .swel-matchup-label,
.swel-card--cancelled .swel-matchup-vs {
    opacity: .85;
}