:root {
    --bg: #f5f6fb;
    --bg-soft: #eef2ff;
    --card: #ffffff;
    --card-soft: #f7f9ff;
    --text: #111827;
    --muted: #5f6b85;
    --border: #d6def0;
    --border-strong: #b7c5e6;
    --navy: #163c89;
    --navy-deep: #0b2558;
    --navy-soft: #2667d7;
    --accent: #2f73e0;
    --accent-dark: #163c89;
    --accent-warm: #e4a518;
    --success: #2f73e0;
    --danger: #be2d37;
    --danger-dark: #95212a;
    --shadow: 0 28px 60px -40px rgba(12, 24, 54, 0.55);
    --shadow-soft: 0 16px 32px -24px rgba(25, 49, 105, 0.32);
    --radius-xl: 30px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: "Avenir Next", "Trebuchet MS", "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(47, 115, 224, 0.14), transparent 22%),
        radial-gradient(circle at top right, rgba(22, 60, 137, 0.12), transparent 20%),
        linear-gradient(180deg, #f8f9fe 0%, #edf1fb 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.main-content {
    padding-bottom: 88px;
}

.page-section {
    padding-top: 44px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(11, 24, 61, 0.9);
    backdrop-filter: blur(16px);
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.brand-admin {
    margin-bottom: 14px;
}

.brand-footer {
    align-items: flex-start;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.brand-copy strong {
    font-size: 1.05rem;
    letter-spacing: 0.02em;
}

.brand-copy span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.84rem;
}

.site-header .brand-copy strong,
.site-footer .brand-copy strong {
    color: #fff;
}

.brand-admin .brand-copy strong {
    color: var(--navy-deep);
}

.brand-admin .brand-copy span {
    color: var(--muted);
}

.brand-mark {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 64px;
    flex: 0 0 auto;
}

.brand-mark-image {
    width: auto;
    height: 100%;
    max-width: 100%;
    filter: drop-shadow(0 12px 22px rgba(7, 20, 54, 0.22));
}

.brand-mark-ball,
.brand-mark-text {
    display: none;
}

.site-nav,
.footer-links,
.button-row,
.action-row,
.filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.site-nav {
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    padding: 6px;
}

.nav-pill,
.button,
.button-secondary,
.button-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.nav-pill {
    color: rgba(255, 255, 255, 0.84);
}

.nav-pill:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.nav-pill.is-active {
    border-color: rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.button {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 14px 24px -18px rgba(22, 60, 137, 0.52);
}

.button:hover {
    transform: translateY(-1px);
    background: var(--accent-dark);
}

.button-secondary {
    border-color: var(--border-strong);
    background: #fff;
    color: var(--navy);
}

.button-secondary:hover {
    transform: translateY(-1px);
    background: #f8fbff;
    border-color: var(--accent);
}

.button-ghost {
    border-color: rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.button-ghost:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.56);
}

.button-danger {
    background: var(--danger);
    color: #fff;
}

.button-danger:hover {
    background: var(--danger-dark);
}

.button-small {
    min-height: 36px;
    padding: 0 14px;
    font-size: 0.9rem;
}

.button-full {
    width: 100%;
}

.section-kicker,
.hero-eyebrow {
    margin: 0 0 10px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.76rem;
    font-weight: 900;
}

.section-kicker-light {
    color: rgba(255, 255, 255, 0.78);
}

.section-title {
    margin: 0;
    font-size: clamp(1.95rem, 3vw, 2.9rem);
    line-height: 1.04;
}

.section-title-compact {
    font-size: clamp(1.55rem, 2.2vw, 2rem);
}

.section-title-light {
    color: #fff;
}

.section-title-with-bar {
    position: relative;
    padding-left: 16px;
}

.section-title-with-bar::before {
    content: "";
    position: absolute;
    top: 0.22em;
    left: 0;
    width: 4px;
    height: 0.92em;
    border-radius: 999px;
    background: var(--accent);
}

.hero-title {
    margin: 0;
    font-size: clamp(2.8rem, 6vw, 4.9rem);
    line-height: 0.94;
}

.hero-title-home {
    max-width: 560px;
    color: #fff;
}

.hero-title-small {
    font-size: clamp(2rem, 4.2vw, 3.4rem);
}

.hero-text,
.lead-text,
.muted,
.muted-dark,
.footer-copy,
.team-text,
.empty-text,
.plain-message {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.72;
}

.hero-text-home {
    max-width: 560px;
    color: rgba(255, 255, 255, 0.84);
}

.lead-text-dark {
    color: #38435d;
}

.muted-dark {
    color: rgba(255, 255, 255, 0.7);
}

.muted-small {
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.5;
}

.section-link {
    color: var(--accent-dark);
    font-weight: 800;
}

.hero-card,
.card,
.match-card,
.team-card,
.admin-card,
.stat-card,
.feature-card,
.info-card,
.club-showcase {
    border: 1px solid rgba(214, 222, 240, 0.95);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: var(--shadow);
}

.card,
.admin-card,
.detail-card,
.content-card,
.info-card {
    padding: 28px;
}

.hero-card-home {
    position: relative;
    overflow: hidden;
    min-height: 500px;
    padding: 36px 36px 42px;
    background:
        linear-gradient(180deg, rgba(10, 18, 44, 0.18) 0%, rgba(10, 18, 44, 0.46) 100%),
        linear-gradient(140deg, #163c89 0%, #0f2b64 55%, #081738 100%);
}

.home-hero {
    padding-top: 18px;
}

.hero-card-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(11, 24, 61, 0.22) 0%, rgba(11, 24, 61, 0.72) 100%),
        radial-gradient(circle at 18% 82%, rgba(95, 172, 255, 0.34), transparent 24%),
        radial-gradient(circle at 75% 24%, rgba(255, 255, 255, 0.12), transparent 22%);
}

.hero-card-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.55;
    background:
        linear-gradient(120deg, transparent 0%, transparent 58%, rgba(255, 255, 255, 0.06) 58.4%, transparent 60%),
        radial-gradient(circle at 72% 45%, rgba(255, 255, 255, 0.12), transparent 20%),
        radial-gradient(circle at 80% 32%, rgba(255, 255, 255, 0.08), transparent 16%);
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    align-items: end;
    min-height: 420px;
    gap: 30px;
    grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.5fr);
}

.hero-copy-block,
.hero-side-note {
    animation: page-rise 0.65s ease both;
}

.hero-side-note {
    align-self: start;
    justify-self: end;
    max-width: 260px;
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    box-shadow: var(--shadow-soft);
    animation-delay: 0.12s;
}

.hero-note-label {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(242, 201, 76, 0.18);
    color: #ffe194;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-note-text {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.6;
}

.hero-actions {
    margin-top: 24px;
}

.home-grid,
.dual-grid,
.admin-grid {
    display: grid;
    gap: 28px;
}

.home-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    position: relative;
    z-index: 2;
}

.feature-card {
    overflow: hidden;
    animation: page-rise 0.65s ease both;
}

.feature-card:nth-child(2) {
    animation-delay: 0.08s;
}

.feature-card-header {
    padding: 24px 24px 12px;
}

.feature-card-header-solid {
    background: linear-gradient(135deg, var(--navy-soft) 0%, var(--navy) 100%);
}

.feature-card-header-solid + .results-list,
.feature-card-header-solid + .empty-card {
    padding-top: 0;
}

.feature-card-action,
.section-centered-action {
    display: flex;
    justify-content: center;
    padding: 8px 24px 24px;
}

.section-heading {
    margin-bottom: 16px;
}

.info-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 249, 255, 0.96) 100%);
}

.results-list {
    display: flex;
    flex-direction: column;
    padding: 16px 16px 8px;
    gap: 10px;
}

.result-group-label {
    padding: 10px 14px;
    border-radius: 16px;
    background: linear-gradient(135deg, #294f9f 0%, #17377d 100%);
    color: #fff;
    font-weight: 800;
}

.result-row {
    display: grid;
    align-items: center;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 12px;
    padding: 14px 10px;
    border-bottom: 1px solid #edf1fa;
}

.result-row:last-child {
    border-bottom: none;
}

.result-team {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    font-size: 0.95rem;
    color: #2d3854;
}

.result-team span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.result-team-away {
    justify-content: flex-end;
    text-align: right;
}

.result-score {
    min-width: 74px;
    text-align: center;
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--navy);
}

.result-logo,
.club-logo,
.team-logo,
.match-team-logo,
.table-team-logo,
.team-profile-logo,
.home-team-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    overflow: hidden;
    box-sizing: border-box;
    border: 1px solid rgba(184, 199, 229, 0.92);
    border-radius: 18px;
    object-fit: contain;
    object-position: center;
    flex: 0 0 auto;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(239, 245, 255, 0.98) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 10px 22px -24px rgba(17, 28, 57, 0.26);
}

.result-logo {
    width: 42px;
    height: 42px;
    border-radius: 14px;
}

img.result-logo,
img.club-logo,
img.team-logo,
img.match-team-logo,
img.table-team-logo,
img.team-profile-logo,
img.home-team-logo {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    box-sizing: border-box;
}

img.result-logo,
img.table-team-logo {
    padding: 5px;
}

img.club-logo,
img.team-logo,
img.match-team-logo {
    padding: 8px;
}

img.match-team-logo-large,
img.team-logo,
img.team-profile-logo,
img.home-team-logo {
    padding: 10px;
}

.result-logo-fallback,
.club-logo-fallback,
.team-logo-fallback,
.match-team-logo-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(22, 60, 137, 0.14);
    background: linear-gradient(135deg, #e4a518 0%, #f6d36e 28%, #ffffff 29%, #ffffff 50%, #4f93ff 51%, #163c89 100%);
    color: #ffffff;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-shadow: 0 1px 4px rgba(11, 24, 61, 0.4);
}

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

.table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.table thead {
    background: linear-gradient(135deg, var(--navy-soft) 0%, var(--navy) 100%);
    color: rgba(255, 255, 255, 0.92);
}

.table th,
.table td {
    padding: 14px 16px;
    border-bottom: 1px solid #e8eef9;
    text-align: left;
    vertical-align: top;
}

.table thead th {
    font-size: 0.88rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.table tbody tr:hover {
    background: #f8fbff;
}

.table-compact {
    min-width: 0;
}

.table-compact th,
.table-compact td {
    padding: 12px 14px;
}

.page-header,
.section-header,
.detail-header,
.footer-inner,
.match-card-content {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.page-header {
    margin-bottom: 20px;
}

.section-header {
    margin-bottom: 16px;
}

.section-header-top {
    margin-top: 36px;
}

.page-copy {
    max-width: 760px;
}

.filter-card {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-soft);
}

.filter-card-wide {
    justify-content: flex-end;
}

.input,
.textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-strong);
    border-radius: 16px;
    background: #fff;
    font: inherit;
    color: var(--text);
}

.textarea {
    min-height: 160px;
    resize: vertical;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field-span-full {
    grid-column: 1 / -1;
}

.field label {
    font-weight: 700;
    font-size: 0.95rem;
}

.field-error {
    color: var(--danger);
    font-size: 0.9rem;
}

.card-grid {
    display: grid;
    gap: 20px;
}

.card-grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid-four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.team-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    padding: 24px;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.team-card:hover,
.stat-card:hover,
.club-tile:hover {
    transform: translateY(-3px);
    border-color: rgba(47, 115, 224, 0.34);
    box-shadow: 0 24px 46px -34px rgba(22, 60, 137, 0.34);
}

.team-card-top {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.team-city {
    margin: 0 0 10px;
    color: var(--accent);
    font-weight: 800;
}

.team-title,
.match-title {
    margin: 0 0 12px;
    font-size: 1.45rem;
}

.team-link {
    font-weight: 800;
    color: var(--accent-dark);
}

.match-card {
    padding: 22px;
    border-radius: var(--radius-lg);
}

.match-card-content {
    align-items: center;
}

.match-teams-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 10px;
}

.match-team-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.match-team-logo {
    width: 42px;
    height: 42px;
    border-radius: 14px;
}

.match-versus {
    color: var(--muted);
    font-weight: 800;
}

.score-box {
    min-width: 126px;
    padding: 14px 16px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--navy-soft) 0%, var(--navy) 100%);
    color: #fff;
    text-align: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.score-value {
    font-size: 1.85rem;
    font-weight: 900;
}

.score-label,
.score-label-live {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.84rem;
}

.score-label-live {
    color: #fff;
    font-weight: 800;
}

.detail-card,
.content-card {
    border-radius: var(--radius-xl);
}

.rich-text {
    margin-top: 24px;
    color: #3b465f;
    font-size: 0.97rem;
    line-height: 1.82;
}

.rich-text h2 {
    margin: 0 0 20px;
    padding-bottom: 14px;
    border-bottom: 3px solid var(--accent);
    color: var(--navy-deep);
    font-size: 1.32rem;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.rich-text h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 36px 0 14px;
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, rgba(47, 115, 224, 0.08) 0%, rgba(22, 60, 137, 0.05) 100%);
    border-left: 4px solid var(--accent);
    color: var(--navy);
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.35;
}

.rich-text h3:first-child {
    margin-top: 0;
}

.rich-text p,
.rich-text ul,
.rich-text ol {
    margin: 0 0 16px;
}

.rich-text p:first-child {
    margin-top: 0;
}

.rich-text ul,
.rich-text ol {
    padding-left: 6px;
    list-style: none;
}

.rich-text ul li,
.rich-text ol li {
    position: relative;
    padding-left: 22px;
}

.rich-text ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.7;
}

.rich-text ol {
    counter-reset: rich-ol;
}

.rich-text ol li::before {
    counter-increment: rich-ol;
    content: counter(rich-ol) ".";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-weight: 700;
    font-size: 0.92rem;
}

.rich-text li + li {
    margin-top: 10px;
}

.rich-text a {
    color: var(--accent-dark);
    font-weight: 800;
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 2px;
}

.rich-text table {
    width: 100%;
    min-width: 100%;
    margin: 20px 0 24px;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: 0 2px 12px -4px rgba(22, 60, 137, 0.1);
    font-size: 0.93rem;
    table-layout: fixed;
}

.rich-text thead {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
    color: #fff;
}

.rich-text thead th {
    padding: 12px 16px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-align: left;
    white-space: nowrap;
}

.rich-text tbody tr {
    transition: background 0.15s ease;
}

.rich-text tbody tr:nth-child(even) {
    background: rgba(47, 115, 224, 0.04);
}

.rich-text tbody tr:hover {
    background: rgba(47, 115, 224, 0.09);
}

.rich-text tbody td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    color: #3b465f;
}

.rich-text tbody tr:last-child td {
    border-bottom: none;
}

.rich-text tbody td:first-child {
    font-weight: 600;
    color: var(--navy);
}

.rich-text strong {
    color: var(--navy);
    font-weight: 700;
}

.faq-list,
.flash-stack,
.form-stack,
.stack,
.rank-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--card-soft);
}

.faq-item summary {
    cursor: pointer;
    font-weight: 800;
}

.faq-answer {
    margin-top: 12px;
    color: var(--muted);
    line-height: 1.7;
}

.table-card {
    padding: 0;
    overflow: hidden;
}

.table-thumb-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.table-thumb {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    object-fit: cover;
    background: #e8eef9;
}

.grid-span-full {
    grid-column: 1 / -1;
}

.empty-card {
    padding: 22px;
    color: var(--muted);
}

.empty-text {
    margin-top: 24px;
}

.club-showcase {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 22px;
}

.club-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 16px 10px;
    border-radius: 22px;
    transition: transform 0.22s ease, background 0.22s ease;
}

.club-tile:hover {
    background: #f7faff;
}

.club-logo {
    width: 76px;
    height: 76px;
    border-radius: 24px;
}

.club-name {
    text-align: center;
    color: var(--accent-dark);
    font-size: 1.04rem;
    font-weight: 800;
}

.site-footer {
    margin-top: 88px;
    background: linear-gradient(135deg, var(--navy-soft) 0%, var(--navy) 35%, #0f2b64 100%);
    color: rgba(255, 255, 255, 0.82);
}

.footer-inner {
    align-items: flex-start;
    padding: 30px 0;
}

.footer-brand {
    max-width: 340px;
}

.footer-title {
    margin: 0 0 6px;
    color: #fff;
    font-weight: 800;
}

.footer-columns {
    display: grid;
    gap: 32px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: min(620px, 100%);
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-heading {
    margin: 0;
    color: #fff;
    font-weight: 800;
}

.footer-links {
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.76);
}

.footer-links a:hover {
    color: #fff;
}

.admin-body {
    background:
        radial-gradient(circle at top left, rgba(47, 115, 224, 0.16), transparent 24%),
        linear-gradient(180deg, #f8f9fe 0%, #edf1fb 100%);
}

.admin-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 24px;
    width: min(1480px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 40px;
}

.admin-sidebar {
    position: sticky;
    top: 18px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-self: start;
}

.admin-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 16px;
    font-weight: 800;
    color: var(--muted);
}

.admin-nav-link:hover {
    background: #f2f6ff;
}

.admin-nav-link.is-active {
    background: var(--navy);
    color: #fff;
}

.admin-user-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.logout-form {
    margin-top: 8px;
}

.stats-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-card {
    padding: 20px;
}

.stat-card span {
    display: block;
    color: var(--muted);
    font-weight: 700;
}

.stat-card strong {
    display: block;
    margin-top: 12px;
    font-size: 2rem;
}

.admin-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
}

.flash {
    padding: 14px 16px;
    border-radius: 16px;
    font-weight: 700;
}

.flash-success {
    background: #e8f1ff;
    color: #163c89;
}

.flash-error {
    background: #fde9e9;
    color: #9b2d2d;
}

.flash-info {
    background: #e7f2fb;
    color: #235d88;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 900;
    margin-right: 6px;
    margin-bottom: 6px;
}

.badge-success {
    background: #e8f1ff;
    color: #163c89;
}

.badge-info {
    background: #e8f2ff;
    color: #235d88;
}

.badge-muted {
    background: #eef2f8;
    color: #5d6880;
}

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

.checkbox-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.image-preview {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 18px;
}

.image-preview img {
    max-width: 220px;
    border-radius: 18px;
}

.plain-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.plain-center {
    width: min(520px, 100%);
}

.plain-card {
    padding: 30px;
    border: 1px solid rgba(214, 222, 240, 0.95);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
}

.plain-title {
    margin: 0 0 12px;
    font-size: clamp(2rem, 6vw, 3.4rem);
}

.error-card {
    text-align: center;
    padding: 48px 32px;
}

.error-icon {
    margin-bottom: 20px;
}

.error-icon svg {
    display: inline-block;
}

.error-status {
    margin: 0 0 4px;
    color: var(--accent);
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
}

.error-title {
    margin: 0 0 12px;
    color: var(--navy-deep);
    font-size: 1.4rem;
    font-weight: 700;
}

.error-message {
    margin: 0 0 28px;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    justify-content: center;
}

@keyframes page-rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1100px) {
    .home-grid,
    .dual-grid,
    .admin-grid,
    .stats-grid,
    .card-grid-four,
    .card-grid-three,
    .admin-layout,
    .hero-content,
    .footer-columns,
    .club-showcase {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
    }

    .hero-side-note {
        justify-self: start;
    }
}

@media (max-width: 760px) {
    .shell {
        width: min(100% - 20px, 1180px);
    }

    .site-header-inner,
    .page-header,
    .section-header,
    .detail-header,
    .footer-inner,
    .match-card-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-nav,
    .nav-pill,
    .button,
    .button-secondary,
    .button-danger,
    .filter-card,
    .filter-card-wide,
    .action-row,
    .button-row,
    .filter-actions,
    .input,
    .textarea {
        width: 100%;
    }

    .site-nav {
        padding: 0;
        background: transparent;
    }

    .hero-card-home {
        min-height: 420px;
        padding: 24px 20px 28px;
    }

    .result-row {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .result-team-away {
        justify-content: flex-start;
        text-align: left;
    }

    .result-score {
        text-align: left;
    }

    .match-teams-row,
    .team-card-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .table {
        min-width: 620px;
    }

    .card,
    .admin-card,
    .detail-card,
    .content-card,
    .info-card {
        padding: 22px;
    }
}

.public-hero {
    padding-top: 18px;
}

.hero-overlap-section {
    position: relative;
    z-index: 3;
    margin-top: -72px;
}

.public-hero--home + .hero-overlap-section {
    margin-top: -104px;
}

.public-hero--home {
    padding-top: 0;
}

.public-hero--inner {
    padding-top: 24px;
}

.public-hero-card {
    position: relative;
    overflow: hidden;
    min-height: 360px;
    padding: 34px 34px 40px;
    border: 1px solid rgba(214, 222, 240, 0.96);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    background:
        linear-gradient(180deg, rgba(6, 14, 34, 0.24) 0%, rgba(6, 14, 34, 0.72) 100%),
        center/cover no-repeat var(--hero-image);
}

.public-hero--home .public-hero-card {
    width: 100vw;
    min-height: calc(100svh - 118px);
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 56px 44px 132px;
    border-top: none;
    border-right: none;
    border-left: none;
    border-radius: 0 0 42px 42px;
    box-shadow: 0 36px 90px -44px rgba(7, 16, 39, 0.78);
    background:
        linear-gradient(180deg, rgba(4, 9, 24, 0.44) 0%, rgba(4, 9, 24, 0.78) 56%, rgba(4, 9, 24, 0.9) 100%),
        center/cover no-repeat var(--hero-image);
}

.public-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(4, 10, 28, 0.34) 0%, rgba(4, 10, 28, 0.7) 46%, rgba(4, 10, 28, 0.88) 100%),
        linear-gradient(90deg, rgba(8, 15, 36, 0.68) 0%, rgba(8, 15, 36, 0.44) 38%, rgba(8, 15, 36, 0.22) 72%, rgba(8, 15, 36, 0.48) 100%),
        radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.16), transparent 20%),
        radial-gradient(circle at 18% 84%, rgba(64, 103, 189, 0.2), transparent 26%);
}

.public-hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.38;
    background:
        linear-gradient(120deg, transparent 0%, transparent 56%, rgba(255, 255, 255, 0.06) 56.4%, transparent 58.4%),
        radial-gradient(circle at 82% 30%, rgba(255, 255, 255, 0.08), transparent 16%);
}

.public-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 30px;
    min-height: 250px;
}

.public-hero--home .public-hero-inner {
    align-items: end;
    min-height: calc(100svh - 250px);
    grid-template-columns: minmax(0, 1.18fr) minmax(250px, 0.48fr);
}

.public-hero--inner .public-hero-inner {
    align-content: end;
    min-height: 280px;
}

.hero-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.88rem;
    font-weight: 700;
}

.hero-breadcrumbs a {
    color: rgba(255, 255, 255, 0.8);
}

.hero-breadcrumbs a:hover {
    color: #fff;
}

.hero-title-inner {
    max-width: 760px;
    color: #fff;
    font-size: clamp(2.4rem, 5vw, 4rem);
}

.hero-text-inner {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.82);
}

.page-section-tight {
    padding-top: 24px;
}

.section-header-rich {
    align-items: flex-start;
}

.section-intro {
    max-width: 680px;
    margin: 12px 0 0;
    color: var(--muted);
    line-height: 1.72;
}

.table-team {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 180px;
}

.table-team-logo {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    object-fit: contain;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(239, 245, 255, 0.98) 100%);
    flex: 0 0 auto;
}

.table-team-logo-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 900;
    letter-spacing: 0.04em;
    background: linear-gradient(135deg, #e4a518 0%, #f6d36e 28%, #ffffff 29%, #ffffff 50%, #4f93ff 51%, #163c89 100%);
}

.points-pill,
.score-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    font-weight: 900;
}

.points-pill {
    background: #e8f0ff;
    color: var(--accent-dark);
}

.score-pill {
    background: #eef2f8;
    color: #51607e;
}

.score-pill.is-positive {
    background: #e8f1ff;
    color: #163c89;
}

.score-pill.is-negative {
    background: #fde9e9;
    color: #9b2d2d;
}

.matches-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.match-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 6px;
    padding: 6px;
    border-radius: 999px;
    background: #edf3ff;
}

.match-tab-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: var(--accent-dark);
    font: inherit;
    font-weight: 800;
    line-height: 1.12;
    text-align: center;
    cursor: pointer;
    transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.match-tab-button.is-active {
    border-color: rgba(47, 115, 224, 0.24);
    background: #fff;
    color: var(--navy);
    box-shadow: var(--shadow-soft);
}

.season-filter-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 220px;
}

.season-filter-card label {
    font-weight: 800;
    color: var(--navy);
}

.match-tab-pane {
    display: none;
}

.match-tab-pane.is-active {
    display: block;
    animation: page-rise 0.35s ease both;
}

.match-card-detailed {
    padding: 24px;
}

.match-card-main {
    display: grid;
    align-items: center;
    gap: 20px;
    grid-template-columns: 220px minmax(0, 1fr);
}

.match-card-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.match-meta-location,
.match-meta-round {
    margin: 0;
}

.match-meta-location {
    color: var(--muted);
    line-height: 1.55;
}

.match-meta-round {
    display: inline-flex;
    align-self: flex-start;
    padding: 7px 12px;
    border-radius: 999px;
    background: #edf3ff;
    color: var(--accent-dark);
    font-size: 0.82rem;
    font-weight: 800;
}

.match-card-battle {
    display: grid;
    align-items: center;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}

.match-card-club {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.match-card-club strong {
    font-size: 1rem;
    line-height: 1.45;
}

.match-team-logo-large {
    width: 68px;
    height: 68px;
    border-radius: 22px;
}

.match-score-box {
    min-width: 120px;
    padding: 14px 18px;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--navy-soft) 0%, var(--navy) 100%);
    color: #fff;
    text-align: center;
}

.match-score-main {
    font-size: 1.8rem;
    font-weight: 900;
}

.match-inline-item {
    display: grid;
    align-items: center;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    padding: 14px 10px;
    border-bottom: 1px solid #edf1fa;
}

.match-inline-item:last-child {
    border-bottom: none;
}

.match-inline-team {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.match-inline-team span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.match-inline-team-away {
    justify-content: flex-end;
    text-align: right;
}

.content-layout {
    display: grid;
    align-items: start;
    gap: 28px;
    grid-template-columns: 250px minmax(0, 1fr);
}

.content-stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-nav {
    position: sticky;
    top: 94px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
    border: 1px solid rgba(214, 222, 240, 0.96);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-soft);
}

.sidebar-nav-link {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 16px;
    color: var(--navy);
    font-weight: 800;
}

.sidebar-nav-link:hover {
    background: #f0f5ff;
}

.sidebar-nav-link.is-active {
    background: var(--navy);
    color: #fff;
}

.content-subsection {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.stadium-card {
    overflow: hidden;
    border: 1px solid rgba(214, 222, 240, 0.96);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-soft);
}

.stadium-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: #dfe8fb;
}

.stadium-content {
    padding: 20px 22px 24px;
}

.section-centered-action-left {
    justify-content: flex-start;
    padding: 24px 0 0;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: #fff;
    transition: background 0.22s ease, border-color 0.22s ease;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.42);
}

.social-link svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.social-link-fill {
    fill: currentColor;
    stroke: none;
}

.team-card-mini {
    align-items: center;
    padding: 18px 12px;
    text-align: center;
    border: none;
    box-shadow: none;
    background: transparent;
}

.team-card-mini:hover {
    background: #f7faff;
    border-color: transparent;
    box-shadow: none;
}

.team-card-mini .team-card-top {
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.team-card-mini .team-logo {
    width: 86px;
    height: 86px;
    border-radius: 26px;
}

.team-card-mini .team-text {
    display: none;
}

.team-card-mini .team-link {
    color: var(--accent-dark);
}

.team-detail-summary .team-card {
    margin-right: auto;
}

.is-hidden {
    display: none !important;
}

@media (max-width: 1100px) {
    .hero-overlap-section {
        margin-top: -56px;
    }

    .public-hero--home + .hero-overlap-section {
        margin-top: -76px;
    }

    .public-hero--home .public-hero-inner,
    .content-layout,
    .stadium-grid,
    .match-card-main {
        grid-template-columns: 1fr;
    }

    .sidebar-nav {
        position: static;
        flex-direction: row;
        overflow-x: auto;
        padding: 8px;
    }
}

@media (max-width: 760px) {
    .hero-overlap-section {
        margin-top: -36px;
    }

    .public-hero--home + .hero-overlap-section {
        margin-top: -48px;
    }

    .public-hero-card {
        min-height: 340px;
        padding: 24px 20px 28px;
    }

    .public-hero--home .public-hero-card {
        min-height: 78svh;
        padding: 34px 20px 40px;
        border-radius: 0 0 28px 28px;
    }

    .match-tabs,
    .season-filter-card {
        width: 100%;
    }

    .match-card-battle,
    .match-inline-item {
        grid-template-columns: 1fr;
    }

    .match-inline-team-away {
        justify-content: flex-start;
        text-align: left;
    }

    .match-score-box,
    .match-card-club {
        justify-self: flex-start;
    }

    .team-card-mini .team-logo {
        width: 72px;
        height: 72px;
    }
}

/* Active runtime refresh */
:root {
    --card-border: rgba(194, 210, 239, 0.92);
    --surface-soft: #f7faff;
    --surface-muted: #eef4ff;
    --shadow-card: 0 24px 48px -36px rgba(14, 31, 74, 0.3);
    --shadow-strong: 0 34px 72px -46px rgba(8, 21, 52, 0.42);
    --ring: 0 0 0 4px rgba(47, 115, 224, 0.16);
}

body {
    line-height: 1.58;
}

a,
button,
input,
textarea,
select {
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: none;
    box-shadow: var(--ring);
}

.site-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(11, 24, 61, 0.92);
    box-shadow: 0 18px 44px -34px rgba(4, 12, 31, 0.9);
}

.site-header-inner {
    min-height: 84px;
    gap: 18px;
}

.site-header-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-nav-shell {
    position: relative;
}

.site-nav-backdrop,
.site-nav-toggle {
    display: none;
}

.site-nav {
    padding: 8px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.nav-pill,
.button,
.button-secondary,
.button-danger {
    gap: 10px;
    min-height: 46px;
    letter-spacing: 0.01em;
}

.nav-pill {
    border-color: transparent;
}

.nav-pill:hover,
.button:hover,
.button-secondary:hover,
.button-danger:hover {
    transform: translateY(-1px);
}

.nav-pill:active,
.button:active,
.button-secondary:active,
.button-danger:active {
    transform: translateY(0);
}

.button {
    box-shadow: 0 16px 28px -20px rgba(22, 60, 137, 0.56);
}

.button-secondary {
    border-color: rgba(183, 197, 230, 0.95);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.button-ghost {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.1);
}

.button-small {
    min-height: 38px;
}

.card,
.admin-card,
.detail-card,
.content-card,
.info-card,
.feature-card,
.match-card,
.team-card,
.stat-card,
.club-showcase,
.plain-card {
    border-color: var(--card-border);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(248, 251, 255, 0.98) 100%);
    box-shadow: var(--shadow-card);
}

.empty-card {
    border: 1px dashed rgba(79, 147, 255, 0.34);
    border-radius: 22px;
    background: var(--surface-soft);
    line-height: 1.7;
}

.page-header,
.section-header-rich {
    gap: 20px;
}

.page-copy {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.page-meta-pills,
.match-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.meta-pill,
.team-chip {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(183, 197, 230, 0.9);
    border-radius: 999px;
    background: #fff;
    color: var(--navy);
    font-size: 0.82rem;
    font-weight: 800;
}

.meta-pill-accent,
.team-chip {
    background: var(--surface-muted);
    color: var(--accent-dark);
}

.hero-overview-strip {
    position: relative;
    z-index: 4;
    margin-top: -56px;
    margin-bottom: 22px;
}

.hero-overview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.hero-overview-card {
    padding: 18px 20px;
    border: 1px solid rgba(203, 215, 240, 0.92);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(14px);
}

.hero-overview-card strong {
    display: block;
    margin-top: 10px;
    color: var(--navy);
    font-size: 1.35rem;
    line-height: 1.1;
}

.hero-overview-label {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.public-hero-card,
.public-hero--home .public-hero-card {
    box-shadow: var(--shadow-strong);
}

.public-hero--home .public-hero-card {
    min-height: min(82svh, 760px);
}

.table-wrap {
    border-radius: 24px;
}

.table {
    min-width: 100%;
}

.table td {
    color: #27324a;
}

.table tbody tr {
    background: rgba(255, 255, 255, 0.72);
}

.table tbody tr:nth-child(even) {
    background: rgba(247, 250, 255, 0.96);
}

.table tbody tr:hover {
    background: #f1f6ff;
}

.table-toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.table-toolbar-copy {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.table-toolbar-copy .section-kicker,
.table-toolbar-copy .muted-small {
    margin: 0;
}

.table-search {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 260px;
    color: var(--navy);
    font-size: 0.9rem;
    font-weight: 800;
}

.table-team-copy {
    min-width: 0;
}

.table-team-link {
    color: var(--navy);
}

.table-team-link:hover {
    color: var(--accent-dark);
}

.table-team-link:focus-visible {
    color: var(--accent-dark);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.18em;
}

.table-actions {
    justify-content: flex-end;
    gap: 8px;
}

.input,
.textarea {
    min-height: 48px;
    border-color: rgba(183, 197, 230, 0.95);
    background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(249, 251, 255, 1) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

input::placeholder,
textarea::placeholder {
    color: #8592ac;
}

input[type="file"].input {
    padding: 12px;
}

.input:hover,
.textarea:hover {
    border-color: var(--border-strong);
}

.input:focus,
.textarea:focus {
    border-color: var(--accent);
    background: #fff;
    box-shadow: var(--ring);
    outline: none;
}

.field {
    gap: 10px;
}

.field label {
    color: var(--navy);
}

.field-has-error .input,
.field-has-error .textarea,
.input[aria-invalid="true"],
.textarea[aria-invalid="true"] {
    border-color: rgba(190, 45, 55, 0.52);
    background: #fff7f7;
}

.field-hint {
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.55;
}

.field-error {
    font-weight: 700;
}

.checkbox-row {
    padding: 8px 0;
}

.form-note {
    padding: 14px 16px;
    border: 1px solid rgba(183, 197, 230, 0.85);
    border-radius: 18px;
    background: var(--surface-soft);
    color: var(--muted);
    line-height: 1.6;
}

.form-actions {
    padding-top: 8px;
}

.admin-header {
    align-items: flex-start;
}

.admin-nav-kicker {
    margin: 0 0 4px;
    color: var(--accent-dark);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.admin-nav-link {
    justify-content: space-between;
    min-height: 48px;
    border: 1px solid transparent;
    background: rgba(245, 248, 255, 0.72);
}

.admin-nav-link.is-active {
    box-shadow: 0 18px 32px -28px rgba(11, 24, 61, 0.62);
}

.admin-user-name {
    margin: 0;
    color: var(--navy);
    font-size: 1.08rem;
    font-weight: 800;
}

.stat-card {
    display: block;
    border: 1px solid var(--card-border);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(243, 248, 255, 0.98) 100%);
    box-shadow: var(--shadow-card);
}

.stat-card strong {
    color: var(--navy);
}

.flash {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid transparent;
    box-shadow: var(--shadow-card);
}

.flash-copy {
    flex: 1 1 auto;
    line-height: 1.6;
}

.flash-dismiss {
    padding: 0 2px;
    border: none;
    background: transparent;
    color: currentColor;
    font: inherit;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.72;
}

.flash-dismiss:hover {
    opacity: 1;
}

.badge {
    border: 1px solid transparent;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.badge-success {
    border-color: rgba(22, 60, 137, 0.14);
}

.badge-info {
    border-color: rgba(35, 93, 136, 0.12);
}

.badge-muted {
    border-color: rgba(93, 104, 128, 0.12);
}

.match-card-meta-top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.match-card-meta-top .section-kicker {
    margin: 0;
}

.team-card {
    text-decoration: none;
}

.team-card-copy {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.team-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
}

.hero-copy-block {
    max-width: 760px;
}

.match-card-detailed {
    padding: 26px;
}

.match-score-box {
    box-shadow: 0 18px 36px -28px rgba(11, 24, 61, 0.82);
}

@media (max-width: 1100px) and (min-width: 761px) {
    .card-grid-three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

    .table-search {
        min-width: 0;
        width: 100%;
    }
}

@media (max-width: 760px) {
    .site-header-inner {
        min-height: 0;
        padding: 14px 0;
    }

    .site-header-controls {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .site-nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        min-height: 46px;
        padding: 0 18px;
        border: 1px solid rgba(255, 255, 255, 0.18);
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.08);
        color: #fff;
        font-size: 0.95rem;
        font-weight: 800;
    }

    .site-nav-toggle-box {
        display: inline-flex;
        flex-direction: column;
        gap: 4px;
    }

    .site-nav-toggle-box span {
        display: block;
        width: 16px;
        height: 2px;
        border-radius: 999px;
        background: currentColor;
    }

    .site-nav-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(8, 15, 36, 0.5);
        z-index: 45;
    }

    .site-nav-shell:not(.is-open) .site-nav-backdrop {
        display: none;
    }

    .site-nav-shell.is-open .site-nav-backdrop {
        display: block;
    }

    .site-nav {
        display: none;
        position: relative;
        z-index: 50;
        width: 100%;
        padding: 12px;
        border-radius: 22px;
        background: rgba(11, 24, 61, 0.98);
        box-shadow: var(--shadow-strong);
    }

    .site-nav-shell.is-open .site-nav {
        display: flex;
        flex-direction: column;
    }

    .nav-pill {
        width: 100%;
        justify-content: flex-start;
        border-radius: 16px;
    }

    .hero-overview-strip {
        margin-top: -24px;
    }

    .hero-overview-card {
        padding: 16px 18px;
    }

    .page-meta-pills,
    .match-badge-row {
        gap: 8px;
    }

    .table-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .table-responsive-stack {
        min-width: 0;
        border-collapse: separate;
        border-spacing: 0 12px;
    }

    .table-responsive-stack thead {
        display: none;
    }

    .table-responsive-stack tbody,
    .table-responsive-stack tr,
    .table-responsive-stack td {
        display: block;
        width: 100%;
    }

    .table-responsive-stack tr {
        padding: 16px;
        border: 1px solid var(--card-border);
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: var(--shadow-card);
    }

    .table-responsive-stack td {
        padding: 8px 0;
        border: none;
    }

    .table-responsive-stack td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 6px;
        color: var(--muted);
        font-size: 0.76rem;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .table-actions {
        justify-content: flex-start;
    }

    .action-row,
    .form-actions {
        width: 100%;
        flex-direction: column;
    }

    .action-row > *,
    .form-actions > * {
        width: 100%;
    }

    .action-row form {
        width: 100%;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

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

    .team-card-footer {
        flex-direction: column;
        align-items: flex-start;
    }

.team-card-mini .team-card-footer {
        align-items: center;
    }
}

/* Public redesign */
:root {
    --page-width: min(1240px, calc(100% - 40px));
    --surface-page: #f2f4f7;
    --surface-panel: #ffffff;
    --surface-panel-soft: #f7f8fb;
    --surface-line: rgba(190, 205, 235, 0.92);
    --shadow-panel: 0 28px 60px -42px rgba(10, 21, 48, 0.28);
    --shadow-hero: 0 40px 90px -54px rgba(5, 11, 27, 0.72);
}

body.site-body {
    background:
        linear-gradient(180deg, #081738 0 116px, var(--surface-page) 116px 100%);
}

.shell {
    width: var(--page-width);
}

.main-content {
    padding-bottom: 72px;
}

.page-section,
.public-page-section {
    padding-top: clamp(28px, 3.4vw, 46px);
}

.page-section-tight {
    padding-top: clamp(22px, 3vw, 34px);
}

.site-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(180deg, rgba(6, 12, 28, 0.96) 0%, rgba(11, 24, 61, 0.92) 100%);
    box-shadow: 0 16px 42px -32px rgba(1, 8, 22, 0.94);
}

.site-header-inner {
    min-height: 78px;
    position: relative;
    gap: 18px;
    padding: 12px 0;
}

.brand-header {
    min-width: 0;
}

.brand-copy {
    gap: 4px;
}

.brand-copy span {
    font-size: 0.77rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-header-controls {
    flex: 1 1 auto;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    justify-content: center;
}

.site-nav {
    gap: 6px;
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.nav-pill {
    min-height: 42px;
    padding: 0 16px;
    font-size: 0.92rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.84);
}

.nav-pill:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-pill.is-active {
    border-color: rgba(255, 255, 255, 0.92);
    background: #fff;
    color: var(--navy);
}

.public-hero {
    padding-top: 0;
}

.public-hero .shell {
    width: min(1320px, calc(100% - 24px));
}

.public-hero-card {
    min-height: 320px;
    padding: 44px clamp(20px, 4vw, 46px) 64px;
    border: none;
    border-radius: 0 0 34px 34px;
    box-shadow: var(--shadow-hero);
    background:
        linear-gradient(180deg, rgba(3, 8, 20, 0.34) 0%, rgba(3, 8, 20, 0.72) 100%),
        radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.08), transparent 18%),
        linear-gradient(135deg, #163c89 0%, #0f2b64 54%, #081738 100%);
}

.public-hero.has-hero-image .public-hero-card {
    background:
        linear-gradient(180deg, rgba(3, 8, 20, 0.3) 0%, rgba(3, 8, 20, 0.78) 100%),
        linear-gradient(90deg, rgba(5, 12, 30, 0.7) 0%, rgba(5, 12, 30, 0.36) 48%, rgba(5, 12, 30, 0.62) 100%),
        center/cover no-repeat var(--hero-image),
        linear-gradient(135deg, #163c89 0%, #0f2b64 54%, #081738 100%);
}

.public-hero.is-hero-fallback .public-hero-card {
    background:
        linear-gradient(180deg, rgba(3, 8, 20, 0.3) 0%, rgba(3, 8, 20, 0.8) 100%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.12), transparent 18%),
        radial-gradient(circle at 16% 88%, rgba(79, 147, 255, 0.26), transparent 26%),
        linear-gradient(135deg, #163c89 0%, #0f2b64 54%, #081738 100%);
}

.public-hero-overlay {
    background:
        linear-gradient(180deg, rgba(3, 9, 22, 0.28) 0%, rgba(3, 9, 22, 0.74) 52%, rgba(3, 9, 22, 0.9) 100%),
        linear-gradient(90deg, rgba(4, 10, 24, 0.72) 0%, rgba(4, 10, 24, 0.26) 56%, rgba(4, 10, 24, 0.58) 100%);
}

.public-hero-pattern {
    opacity: 0.24;
    background:
        linear-gradient(120deg, transparent 0%, transparent 58%, rgba(255, 255, 255, 0.08) 58.4%, transparent 60%),
        radial-gradient(circle at 82% 26%, rgba(255, 255, 255, 0.08), transparent 14%);
}

.public-hero--home .public-hero-card {
    min-height: min(70svh, 620px);
    padding-top: 68px;
    padding-bottom: 82px;
}

.public-hero--home .public-hero-inner {
    min-height: min(48svh, 400px);
    align-items: end;
    grid-template-columns: minmax(0, 1fr) minmax(250px, 0.42fr);
    gap: 26px;
}

.public-hero--inner {
    padding-top: 0;
}

.public-hero--inner .public-hero-card {
    min-height: 280px;
    padding-top: 42px;
    padding-bottom: 54px;
}

.public-hero--inner .public-hero-inner {
    min-height: 180px;
    align-items: end;
    grid-template-columns: minmax(0, 1fr) minmax(230px, 0.38fr);
}

.hero-title-home {
    max-width: 700px;
    font-size: clamp(2.7rem, 5.3vw, 4.6rem);
}

.hero-title-inner {
    max-width: 720px;
    font-size: clamp(2.1rem, 4vw, 3.35rem);
    color: #fff;
}

.hero-text-home,
.hero-text-inner {
    max-width: 620px;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.68;
}

.hero-breadcrumbs {
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.8rem;
    letter-spacing: 0.03em;
}

.hero-breadcrumbs a:hover {
    color: #fff;
}

.hero-actions {
    gap: 12px;
    margin-top: 22px;
}

.hero-pill-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    max-width: 860px;
    margin-top: 24px;
}

.hero-pill {
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.09);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
}

.hero-pill span {
    display: block;
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-pill strong {
    display: block;
    margin-top: 7px;
    color: #fff;
    font-size: 1rem;
    line-height: 1.35;
}

.hero-side-note {
    align-self: end;
    justify-self: end;
    max-width: 280px;
    margin-bottom: 6px;
    padding: 16px 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 18px 36px -28px rgba(1, 8, 22, 0.72);
}

.hero-note-label {
    margin-bottom: 12px;
}

.hero-overlap-section {
    margin-top: -44px;
}

.home-primary-grid,
.home-story-grid,
.team-detail-grid {
    display: grid;
    gap: 22px;
}

.home-primary-grid {
    grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
}

.home-story-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
}

.team-detail-grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.62fr);
    margin-bottom: 28px;
}

.home-panel,
.home-matches-card,
.home-story-card,
.home-summary-card,
.page-toolbar-card,
.content-card-main,
.content-card-subsection,
.faq-page-card,
.team-profile-card,
.detail-meta-card,
.standings-table-card {
    border-color: var(--surface-line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(247, 248, 252, 0.98) 100%);
    box-shadow: var(--shadow-panel);
}

.standings-info-panel {
    margin-bottom: 16px;
    padding: 2px 8px 6px;
}

.standings-info-text {
    margin: 0;
    color: #4f5d78;
    font-size: 0.92rem;
    line-height: 1.6;
}

.standings-legend-text {
    margin: 6px 0 0;
    color: #7a859d;
    font-size: 0.84rem;
    line-height: 1.65;
}

.page-toolbar-card {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
    padding: 24px 28px;
    border: 1px solid var(--surface-line);
    border-radius: 28px;
}

.page-toolbar-card .page-copy {
    max-width: 720px;
}

.section-intro {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.68;
}

.filter-card-inline {
    min-width: min(360px, 100%);
    align-items: end;
    justify-content: flex-end;
}

.filter-card-inline label,
.season-filter-card label {
    color: var(--navy);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.matches-toolbar-card .matches-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 14px;
}

.season-picker {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 14px;
    min-width: min(380px, 100%);
    padding: 16px 18px 18px;
    border: 1px solid rgba(190, 205, 235, 0.92);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(241, 246, 255, 0.96) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 22px 40px -34px rgba(11, 25, 58, 0.34);
}

.season-picker__field {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.season-picker__native,
.season-picker__dropdown {
    position: relative;
    min-width: 0;
}

.season-picker__native.is-enhanced {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
    opacity: 0;
    pointer-events: none;
}

.season-picker__native::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 18px;
    width: 9px;
    height: 9px;
    border-right: 2px solid rgba(13, 33, 79, 0.55);
    border-bottom: 2px solid rgba(13, 33, 79, 0.55);
    transform: translateY(-62%) rotate(45deg);
    pointer-events: none;
}

.season-picker__native-select,
.season-picker__trigger {
    appearance: none;
    width: 100%;
    min-height: 50px;
    border: 1px solid rgba(173, 191, 224, 0.96);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 247, 255, 0.98) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.88),
        0 20px 30px -30px rgba(13, 31, 74, 0.36);
    color: var(--navy);
    font: inherit;
    font-weight: 700;
}

.season-picker__native-select {
    appearance: none;
    padding: 0 52px;
    text-align: center;
    text-align-last: center;
}

.season-picker__trigger {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 0 52px;
    cursor: pointer;
    text-align: center;
}

.season-picker__trigger-text {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}

.season-picker__native-select:hover,
.season-picker__trigger:hover,
.season-picker__dropdown.is-open .season-picker__trigger {
    border-color: rgba(47, 115, 224, 0.44);
    background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(248, 251, 255, 1) 100%);
}

.season-picker__field:focus-within .season-picker__native-select,
.season-picker__field:focus-within .season-picker__trigger {
    border-color: rgba(47, 115, 224, 0.7);
    box-shadow:
        var(--ring),
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 20px 34px -30px rgba(13, 31, 74, 0.42);
}

.season-picker__chevron {
    position: absolute;
    top: 50%;
    right: 21px;
    width: 10px;
    height: 10px;
    border-right: 2px solid rgba(13, 33, 79, 0.6);
    border-bottom: 2px solid rgba(13, 33, 79, 0.6);
    transform: translateY(-62%) rotate(45deg);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.season-picker__dropdown.is-open .season-picker__chevron {
    transform: translateY(-38%) rotate(-135deg);
}

.season-picker__panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 35;
    padding: 10px;
    border: 1px solid rgba(182, 198, 229, 0.96);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 28px 48px -28px rgba(8, 19, 46, 0.34);
}

.season-picker__options {
    display: grid;
    gap: 6px;
    max-height: min(320px, 42vh);
    overflow-y: auto;
}

.season-picker__option {
    width: 100%;
    min-height: 46px;
    padding: 11px 14px;
    border: 1px solid transparent;
    border-radius: 16px;
    background: transparent;
    color: var(--navy);
    font: inherit;
    font-weight: 700;
    line-height: 1.35;
    cursor: pointer;
    text-align: left;
}

.season-picker__option:hover {
    background: rgba(47, 115, 224, 0.08);
    color: var(--accent-dark);
}

.season-picker__option.is-selected {
    border-color: rgba(47, 115, 224, 0.2);
    background: linear-gradient(180deg, rgba(47, 115, 224, 0.14) 0%, rgba(47, 115, 224, 0.08) 100%);
    color: var(--accent-dark);
}

.season-picker__option:focus-visible {
    outline: none;
    box-shadow: var(--ring);
}

.season-picker__submit {
    min-height: 50px;
    padding-inline: 22px;
    white-space: nowrap;
}

.home-summary-card,
.detail-meta-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 28px;
}

.home-summary-list,
.detail-meta-list {
    display: grid;
    gap: 12px;
}

.home-summary-item,
.detail-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid rgba(199, 210, 232, 0.84);
    border-radius: 18px;
    background: var(--surface-panel-soft);
}

.home-summary-item span,
.detail-meta-row span {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 800;
}

.home-summary-item strong,
.detail-meta-row strong {
    color: var(--navy);
    font-size: 1rem;
    font-weight: 900;
    text-align: right;
}

.home-team-grid,
.team-grid-public {
    align-items: stretch;
}

.team-card {
    min-height: 100%;
    gap: 18px;
    padding: 24px 22px;
    border-radius: 26px;
}

.team-card-media {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 104px;
}

.team-card-body {
    display: flex;
    flex: 1 1 auto;
}

.team-card-copy {
    width: 100%;
    align-items: center;
    text-align: center;
}

.team-logo {
    width: 88px;
    height: 88px;
    border-radius: 24px;
    box-shadow: 0 18px 32px -26px rgba(12, 24, 54, 0.32);
}

.team-card .team-city {
    margin: 0 0 8px;
    font-size: 0.76rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.team-title {
    margin-bottom: 8px;
    font-size: 1.26rem;
}

.team-meta-line {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 700;
}

.team-text {
    margin: 0;
    line-height: 1.68;
}

.team-card-footer {
    padding-top: 14px;
    border-top: 1px solid rgba(206, 214, 231, 0.86);
}

.team-link {
    color: var(--accent-dark);
    font-weight: 900;
}

.team-card-mini {
    padding: 18px 16px;
}

.team-card-mini .team-card-media {
    min-height: 82px;
}

.team-card-mini .team-card-copy {
    gap: 6px;
}

.team-card-mini .team-logo {
    width: 74px;
    height: 74px;
    border-radius: 22px;
}

.team-profile-card {
    padding: 28px;
}

.team-profile-head {
    display: flex;
    align-items: center;
    gap: 18px;
}

.team-profile-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    border-radius: 28px;
    object-fit: contain;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(239, 245, 255, 0.98) 100%);
    color: #fff;
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.team-profile-logo.team-logo-fallback {
    background: linear-gradient(135deg, #e4a518 0%, #f6d36e 28%, #ffffff 29%, #ffffff 50%, #4f93ff 51%, #163c89 100%);
}

.team-profile-copy {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.table-wrap {
    padding: 0 8px 8px;
    border-radius: 26px;
}

.table-sport {
    min-width: 100%;
}

.table-sport th,
.table-sport td {
    padding: 15px 16px;
}

.table-col-rank,
.table-col-stat,
.table-col-score,
.table-col-points,
.table-rank-cell,
.table-stat-cell,
.table-score-cell,
.table-points-cell {
    text-align: center;
}

.table-team {
    min-width: 240px;
}

.table-team-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.table-rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding: 0 12px;
    border-radius: 999px;
    background: #e8efff;
    color: var(--accent-dark);
    font-weight: 900;
}

.table-rank-badge,
.points-pill,
.score-pill {
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        background 0.22s ease,
        color 0.22s ease,
        border-color 0.22s ease;
}

.table-stat-cell {
    color: var(--navy);
    font-weight: 800;
}

.table-points-cell .points-pill {
    min-width: 54px;
    justify-content: center;
    background: var(--navy);
    color: #fff;
    box-shadow: 0 12px 24px -18px rgba(11, 24, 61, 0.86);
}

.table-score-cell .score-pill {
    min-width: 72px;
    justify-content: center;
}

.table-full tbody tr {
    transition: background-color 0.22s ease, box-shadow 0.22s ease;
}

.table-full tbody td {
    transition: background-color 0.22s ease, border-color 0.22s ease;
}

.table-full tbody tr:hover td,
.table-full tbody tr:focus-within td {
    background: rgba(241, 246, 255, 0.96);
}

.table-full tbody tr:hover .table-rank-badge,
.table-full tbody tr:hover .points-pill,
.table-full tbody tr:hover .score-pill,
.table-full tbody tr:focus-within .table-rank-badge,
.table-full tbody tr:focus-within .points-pill,
.table-full tbody tr:focus-within .score-pill {
    transform: translateY(-1px);
}

.table-row-leader td {
    background: rgba(240, 246, 255, 0.94);
    border-bottom-color: rgba(191, 205, 234, 0.9);
}

.table-full tbody tr.table-row-leader:hover td,
.table-full tbody tr.table-row-leader:focus-within td {
    background: rgba(233, 242, 255, 0.98);
}

.table-row-leader td:first-child {
    box-shadow: inset 3px 0 0 rgba(47, 115, 224, 0.74);
}

.table-row-leader .table-rank-badge.is-leader {
    min-width: 42px;
    min-height: 42px;
    border: 1px solid rgba(47, 115, 224, 0.16);
    background: #eef4ff;
    color: var(--accent-dark);
    box-shadow: 0 12px 24px -22px rgba(22, 60, 137, 0.42);
}

@media (max-width: 900px) {
    .standings-info-panel {
        padding-inline: 0;
    }
}

@media (max-width: 760px) {
    .standings-info-panel {
        margin-bottom: 16px;
        padding: 0 0 4px;
    }

    .standings-info-text {
        font-size: 0.94rem;
    }

    .standings-legend-text {
        font-size: 0.8rem;
        line-height: 1.6;
    }

    .table-responsive-stack tr.table-row-leader {
        border-color: rgba(47, 115, 224, 0.2);
        background: rgba(240, 246, 255, 0.98);
        box-shadow: 0 18px 34px -32px rgba(22, 60, 137, 0.22);
    }

    .table-responsive-stack tr.table-row-leader td {
        background: transparent;
    }

    .table-responsive-stack tr.table-row-leader td:first-child {
        box-shadow: none;
    }

    .table-team-heading {
        gap: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .match-card-detailed,
    .match-card-team-body,
    .match-score-panel {
        transition: none;
    }

    .match-card-detailed:hover,
    .match-card-detailed:focus-within,
    .match-card-detailed:hover .match-score-panel,
    .match-card-detailed:focus-within .match-score-panel {
        transform: none;
    }
}

.results-list {
    gap: 6px;
    padding: 18px 18px 10px;
}

.result-group-label {
    margin-top: 4px;
}

.result-score-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 96px;
    gap: 4px;
}

.result-meta {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.match-card-list {
    display: grid;
    gap: 16px;
}

.match-card-detailed {
    padding: 20px 22px;
    border-radius: 24px;
}

.match-card-main {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 18px;
}

.match-card-meta {
    gap: 10px;
}

.match-meta-round {
    background: #edf2ff;
}

.match-card-battle {
    gap: 16px;
}

.match-team-logo-large {
    width: 60px;
    height: 60px;
    border-radius: 18px;
}

.match-score-box {
    min-width: 118px;
    padding: 16px;
}

.match-score-main {
    font-size: 1.7rem;
}

.match-score-caption {
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.82rem;
    font-weight: 800;
}

.match-card-club strong {
    font-size: 0.96rem;
}

.match-tabs {
    padding: 5px;
    border: 1px solid rgba(183, 197, 230, 0.9);
    background: #e7eefc;
}

.match-tab-button {
    min-height: 44px;
    line-height: 1.1;
}

.match-tab-button.is-active {
    border-color: var(--navy);
    background: var(--navy);
    color: #fff;
    box-shadow: none;
}

.matches-toolbar-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 440px);
    align-items: start;
    gap: 22px 28px;
}

.matches-toolbar-card .page-copy {
    max-width: 700px;
}

.matches-toolbar-card .matches-toolbar-actions {
    display: grid;
    justify-items: stretch;
    align-content: start;
    gap: 16px;
    width: 100%;
}

.matches-toolbar-card .match-tabs {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    padding: 8px;
    border: 1px solid rgba(190, 205, 235, 0.92);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(234, 241, 255, 0.96) 0%, rgba(225, 235, 255, 0.98) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.92),
        0 18px 34px -30px rgba(17, 28, 57, 0.28);
}

.matches-toolbar-card .match-tab-button {
    min-height: 48px;
    padding: 12px 18px;
    font-size: 0.98rem;
    line-height: 1.08;
}

.matches-toolbar-card .season-picker {
    width: 100%;
    min-width: 0;
}

.match-card-list {
    gap: 18px;
}

.match-card-detailed {
    position: relative;
    overflow: hidden;
    padding: 24px 24px 20px;
    border: 1px solid rgba(204, 215, 236, 0.92);
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(79, 147, 255, 0.1), transparent 26%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(245, 248, 255, 0.98) 100%);
    box-shadow: 0 22px 44px -34px rgba(11, 24, 61, 0.28);
    transition:
        transform 0.24s ease,
        box-shadow 0.24s ease,
        border-color 0.24s ease,
        background 0.24s ease;
}

.match-card-detailed::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, rgba(47, 115, 224, 0.18) 0%, rgba(47, 115, 224, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.24s ease;
}

.match-card-detailed:hover,
.match-card-detailed:focus-within {
    transform: translateY(-2px);
    border-color: rgba(47, 115, 224, 0.24);
    box-shadow: 0 26px 48px -34px rgba(11, 24, 61, 0.34);
}

.match-card-detailed:hover::before,
.match-card-detailed:focus-within::before,
.match-card-detailed[data-match-status="live"]::before {
    opacity: 1;
}

.match-card-topbar,
.match-card-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
}

.match-card-topbar {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(206, 216, 236, 0.86);
}

.match-card-statusline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.match-status-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 12px;
    margin: 0;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
}

.match-status-badge::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 0 0 4px rgba(79, 147, 255, 0.08);
}

.match-status-badge.is-scheduled,
.match-status-badge.is-live {
    border-color: rgba(47, 115, 224, 0.18);
    background: rgba(232, 242, 255, 0.92);
    color: #235d88;
}

.match-status-badge.is-live {
    background: linear-gradient(135deg, rgba(232, 242, 255, 0.98) 0%, rgba(221, 235, 255, 0.98) 100%);
    color: var(--accent-dark);
    box-shadow: 0 10px 24px -24px rgba(47, 115, 224, 0.54);
}

.match-status-badge.is-completed {
    border-color: rgba(22, 60, 137, 0.16);
    background: rgba(232, 241, 255, 0.92);
    color: var(--accent-dark);
}

.match-status-badge.is-postponed,
.match-status-badge.is-cancelled {
    border-color: rgba(93, 104, 128, 0.14);
    background: rgba(238, 242, 248, 0.96);
    color: #5d6880;
}

.match-kickoff {
    margin: 0;
    color: var(--navy);
    font-size: 0.94rem;
    font-weight: 800;
    line-height: 1.45;
}

.match-card-stage {
    display: grid;
    align-items: center;
    gap: 18px 20px;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}

.match-card-team {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.match-card-team-home {
    justify-items: end;
    text-align: right;
}

.match-card-team-away {
    justify-items: start;
    text-align: left;
}

.match-team-side {
    color: #74819b;
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.match-card-team-body {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid rgba(205, 216, 236, 0.88);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 249, 255, 0.96) 100%);
    transition:
        border-color 0.24s ease,
        box-shadow 0.24s ease,
        background 0.24s ease;
}

.match-card-team-home .match-card-team-body {
    flex-direction: row-reverse;
}

.match-card-team-away .match-card-team-body {
    flex-direction: row;
}

.match-card-detailed:hover .match-card-team-body,
.match-card-detailed:focus-within .match-card-team-body {
    border-color: rgba(47, 115, 224, 0.2);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 16px 26px -28px rgba(17, 28, 57, 0.42);
}

.match-card-team strong {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    color: var(--navy);
    font-size: clamp(1.02rem, 1vw + 0.88rem, 1.2rem);
    line-height: 1.28;
}

.match-card-detailed:hover .match-card-team strong,
.match-card-detailed:focus-within .match-card-team strong {
    color: var(--accent-dark);
}

.match-team-logo-large {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    flex: 0 0 auto;
}

.match-score-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 152px;
    padding: 18px 20px;
    border: 1px solid rgba(84, 132, 222, 0.2);
    border-radius: 28px;
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.16), transparent 48%),
        linear-gradient(180deg, rgba(12, 30, 73, 0.98) 0%, rgba(22, 60, 137, 0.98) 100%);
    color: #fff;
    text-align: center;
    box-shadow: 0 24px 42px -30px rgba(11, 24, 61, 0.78);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.match-card-detailed:hover .match-score-panel,
.match-card-detailed:focus-within .match-score-panel {
    transform: translateY(-1px);
    border-color: rgba(111, 157, 245, 0.3);
    box-shadow: 0 28px 48px -30px rgba(11, 24, 61, 0.82);
}

.match-card-detailed[data-match-status="live"] .match-score-panel {
    box-shadow:
        0 26px 46px -30px rgba(11, 24, 61, 0.82),
        0 0 0 4px rgba(47, 115, 224, 0.08);
}

.match-score-label {
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    line-height: 1;
    text-transform: uppercase;
}

.match-score-value {
    font-size: clamp(1.95rem, 2vw + 1.2rem, 2.4rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.02em;
}

.match-score-note {
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.35;
}

.match-card-footer {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(206, 216, 236, 0.86);
}

.match-card-context {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.match-context-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid rgba(193, 206, 231, 0.9);
    border-radius: 999px;
    background: rgba(247, 250, 255, 0.94);
    color: var(--navy);
    font-size: 0.82rem;
    font-weight: 800;
}

.match-context-label {
    color: #72809b;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    line-height: 1;
    text-transform: uppercase;
}

.match-card-venue {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: #3f4b66;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.5;
}

.match-card-venue-label {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 10px;
    border-radius: 999px;
    background: #edf2ff;
    color: var(--accent-dark);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    line-height: 1;
    text-transform: uppercase;
}

.content-layout-public {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 22px;
}

.content-card-main,
.content-card-subsection,
.faq-page-card {
    padding: 28px;
}

.content-card-subsection,
.faq-page-card {
    border-radius: 28px;
}

.sidebar-nav {
    top: 92px;
    padding: 18px 16px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.99);
    box-shadow: var(--shadow-panel);
}

.sidebar-nav-kicker {
    margin: 0 0 8px;
    color: var(--accent-dark);
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.sidebar-nav-link {
    min-height: 42px;
}

.faq-item {
    overflow: hidden;
    padding: 0;
    border-radius: 20px;
    border-color: rgba(199, 210, 232, 0.86);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-panel);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    list-style: none;
    font-size: 1rem;
    cursor: pointer;
    user-select: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #edf2ff;
    color: var(--accent-dark);
    font-size: 1rem;
    font-weight: 900;
    flex: 0 0 auto;
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    content: "–";
    transform: rotate(180deg);
}

.faq-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s ease;
}

.faq-item[open] .faq-body {
    grid-template-rows: 1fr;
}

.faq-answer {
    margin: 0;
    overflow: hidden;
    padding: 0 20px;
    opacity: 0;
    transition: opacity 0.25s ease, padding 0.35s ease;
}

.faq-item[open] .faq-answer {
    padding: 0 20px 20px;
    opacity: 1;
}

.stadium-grid {
    gap: 18px;
}

.stadium-card {
    border-radius: 24px;
}

.stadium-image {
    height: 190px;
}

.stadium-image-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(135deg, rgba(228, 165, 24, 0.22) 0%, rgba(246, 211, 110, 0.22) 28%, rgba(255, 255, 255, 0.16) 29%, rgba(255, 255, 255, 0.1) 50%, rgba(79, 147, 255, 0.32) 51%, rgba(22, 60, 137, 0.38) 100%),
        linear-gradient(135deg, #d9e8ff 0%, #9ec3ff 100%);
}

.stadium-image-fallback span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 82px;
    height: 82px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.site-footer {
    margin-top: 72px;
    background: linear-gradient(180deg, #0f2b64 0%, #163c89 56%, #0a1c45 100%);
}

.footer-inner {
    align-items: flex-start;
    gap: 28px;
    padding: 42px 0 30px;
}

.footer-columns {
    flex: 1 1 auto;
    width: auto;
    gap: 24px;
}

.footer-brand {
    max-width: 360px;
}

.footer-copy {
    color: rgba(255, 255, 255, 0.76);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom-copy {
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.82rem;
    line-height: 1.55;
}

.site-credit-bar {
    background: #081733;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-credit-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 0;
}

.site-credit-copy {
    margin: 0;
    color: rgba(255, 255, 255, 0.64);
    font-size: 0.82rem;
    line-height: 1.5;
    text-align: center;
}

.site-credit-link {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 800;
}

.site-credit-link:hover,
.site-credit-link:focus-visible {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

@media (max-width: 1180px) {
    .home-primary-grid,
    .home-story-grid,
    .team-detail-grid,
    .content-layout-public {
        grid-template-columns: 1fr;
    }

    .public-hero--home .public-hero-inner,
    .public-hero--inner .public-hero-inner {
        grid-template-columns: 1fr;
    }

    .hero-side-note {
        justify-self: start;
    }

    .matches-toolbar-card .matches-toolbar-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 900px) {
    .hero-pill-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .page-toolbar-card {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-card-inline,
    .matches-toolbar-card .matches-toolbar-actions {
        width: 100%;
    }

    .season-picker {
        width: 100%;
        min-width: 0;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 760px) {
    :root {
        --page-width: min(100%, calc(100% - 24px));
    }

    body.site-body {
        background:
            linear-gradient(180deg, #081738 0 92px, var(--surface-page) 92px 100%);
    }

    .site-header-inner {
        min-height: 0;
        padding: 12px 0;
    }

    .site-header-controls {
        position: static;
        left: auto;
        transform: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .public-hero .shell {
        width: 100%;
    }

    .public-hero-card {
        padding: 30px 18px 34px;
        border-radius: 0 0 28px 28px;
    }

    .public-hero--home .public-hero-card {
        min-height: 58svh;
        padding-top: 46px;
        padding-bottom: 42px;
    }

    .public-hero--inner .public-hero-card {
        min-height: 250px;
    }

    .hero-pill-row {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 18px;
    }

    .hero-overlap-section {
        margin-top: -18px;
    }

    .page-toolbar-card,
    .content-card-main,
    .content-card-subsection,
    .faq-page-card,
    .home-summary-card,
    .team-profile-card,
    .detail-meta-card {
        padding: 20px;
    }

    .team-profile-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .team-card {
        padding: 20px 18px;
    }

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

    .match-card-battle {
        grid-template-columns: 1fr;
        justify-items: flex-start;
    }

    .match-score-box {
        justify-self: flex-start;
    }

    .content-layout-public {
        gap: 16px;
    }

    .sidebar-nav {
        position: static;
    }

    .stadium-grid,
    .footer-columns {
        grid-template-columns: 1fr;
    }

.footer-inner {
        padding-top: 34px;
    }
}

/* Shared public header and hero-top scale */
.site-body.is-home .site-header-inner,
.site-body.is-public-inner .site-header-inner {
    min-height: 0;
    align-items: center;
    gap: 24px;
    padding: 24px 0 0;
}

.site-body.is-home .site-header-controls,
.site-body.is-public-inner .site-header-controls {
    flex: 1 1 auto;
    justify-content: center;
}

.site-body.is-home .brand,
.site-body.is-public-inner .brand {
    gap: 16px;
}

.site-body.is-home .brand-mark,
.site-body.is-public-inner .brand-mark {
    width: 66px;
    height: 76px;
}

.site-body.is-home .brand-copy strong,
.site-body.is-public-inner .brand-copy strong {
    font-size: 1.16rem;
    letter-spacing: 0.03em;
}

.site-body.is-home .site-nav,
.site-body.is-public-inner .site-nav {
    gap: 14px;
    padding: 2px 0;
    border: none;
    background: transparent;
    box-shadow: none;
}

.site-body.is-home .nav-pill,
.site-body.is-public-inner .nav-pill {
    min-height: 46px;
    padding: 0 24px;
    border: 1px solid transparent;
    background: transparent;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.02rem;
    font-weight: 700;
}

.site-body.is-home .nav-pill:hover,
.site-body.is-public-inner .nav-pill:hover {
    background: rgba(255, 255, 255, 0.1);
}

.site-body.is-home .nav-pill.is-active,
.site-body.is-public-inner .nav-pill.is-active {
    border-color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
}

.site-body.is-home .public-hero-card,
.site-body.is-public-inner .public-hero-card {
    padding-top: 128px;
    padding-bottom: 36px;
}

.site-body.is-home .public-hero-inner,
.site-body.is-public-inner .public-hero-inner {
    width: min(1400px, calc(100% - 48px));
    padding: 12px 0 34px;
}

/* Public inner pages aligned to homepage style */
.site-body.is-public-inner {
    --page-width: min(1320px, calc(100% - 72px));
    background: #f3f4f7;
}

.site-body.is-public-inner .main-content {
    padding-bottom: 72px;
}

.site-body.is-public-inner .site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    border-bottom: none;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.site-body.is-public-inner .site-header-inner {
    min-height: 0;
    align-items: center;
    gap: 24px;
    padding: 24px 0 0;
}

.site-body.is-public-inner .site-header-controls {
    flex: 1 1 auto;
    justify-content: center;
}

.site-body.is-public-inner .brand {
    gap: 16px;
}

.site-body.is-public-inner .brand-copy span {
    display: none;
}

.site-body.is-public-inner .site-nav {
    gap: 14px;
    padding: 2px 0;
    border: none;
    background: transparent;
    box-shadow: none;
}

.site-body.is-public-inner .nav-pill {
    min-height: 46px;
    padding: 0 24px;
    border: 1px solid transparent;
    background: transparent;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.02rem;
    font-weight: 700;
}

.site-body.is-public-inner .nav-pill:hover {
    background: rgba(255, 255, 255, 0.1);
}

.site-body.is-public-inner .nav-pill.is-active {
    border-color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
}

.site-body.is-public-inner .public-hero,
.site-body.is-public-inner .public-page-section {
    padding-top: 0;
}

.site-body.is-public-inner .hero-overlap-section {
    margin-top: 20px;
}

.site-body.is-public-inner .public-hero .shell {
    width: 100%;
}

.site-body.is-public-inner .public-hero-card {
    width: 100vw;
    min-height: 56vh;
    min-height: 56svh;
    max-height: 680px;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 128px 0 36px;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background:
        linear-gradient(180deg, rgba(9, 18, 40, 0.18) 0%, rgba(9, 18, 40, 0.34) 100%),
        linear-gradient(135deg, #163c89 0%, #0f2b64 52%, #081738 100%);
}

.site-body.is-public-inner .public-hero.has-hero-image .public-hero-card {
    background:
        center 16% / cover no-repeat var(--hero-image);
}

.site-body.is-public-inner .public-hero.is-hero-fallback .public-hero-card {
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.84) 100%),
        radial-gradient(circle at 76% 18%, rgba(255, 255, 255, 0.08), transparent 16%),
        linear-gradient(135deg, #163c89 0%, #0f2b64 52%, #081738 100%);
}

.site-body.is-public-inner .public-hero-overlay {
    background: rgba(0, 0, 0, 0.81);
}

.site-body.is-public-inner .public-hero-pattern,
.site-body.is-public-inner .hero-breadcrumbs,
.site-body.is-public-inner .hero-eyebrow,
.site-body.is-public-inner .hero-actions,
.site-body.is-public-inner .hero-pill-row,
.site-body.is-public-inner .hero-side-note {
    display: none;
}

.site-body.is-public-inner .public-hero-inner {
    display: flex;
    align-items: flex-end;
    width: min(1400px, calc(100% - 48px));
    min-height: calc(56vh - 128px);
    min-height: calc(56svh - 128px);
    margin: 0 auto;
    padding: 12px 0 34px;
}

.site-body.is-public-inner .hero-copy-block {
    max-width: 820px;
    padding: 0 0 12px;
    margin-left: 0;
}

.site-body.is-public-inner .hero-title-inner {
    max-width: 11ch;
    font-size: clamp(3.4rem, 6.2vw, 5.1rem);
    line-height: 0.92;
    letter-spacing: -0.04em;
    text-shadow: 0 8px 22px rgba(5, 11, 24, 0.24);
}

.site-body.is-public-inner .hero-text-inner {
    max-width: 60ch;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.94);
    font-size: 1.14rem;
    line-height: 1.66;
    text-shadow: 0 6px 18px rgba(5, 11, 24, 0.18);
}

.site-body.is-public-inner .page-toolbar-card,
.site-body.is-public-inner .content-card-main,
.site-body.is-public-inner .content-card-subsection,
.site-body.is-public-inner .faq-page-card,
.site-body.is-public-inner .team-profile-card,
.site-body.is-public-inner .detail-meta-card,
.site-body.is-public-inner .standings-table-card,
.site-body.is-public-inner .team-card,
.site-body.is-public-inner .match-card,
.site-body.is-public-inner .sidebar-nav,
.site-body.is-public-inner .stadium-card,
.site-body.is-public-inner .faq-item,
.site-body.is-public-inner .empty-card {
    border: 1px solid #d7ddea;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 28px -22px rgba(17, 28, 57, 0.2);
}

.site-body.is-public-inner .matches-toolbar-card {
    border-color: rgba(201, 213, 236, 0.9);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(245, 248, 255, 0.98) 100%);
    box-shadow: 0 18px 34px -28px rgba(17, 28, 57, 0.24);
}

.site-body.is-public-inner .match-card-detailed {
    border: 1px solid rgba(204, 215, 236, 0.92);
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(79, 147, 255, 0.1), transparent 26%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(245, 248, 255, 0.98) 100%);
    box-shadow: 0 22px 44px -34px rgba(11, 24, 61, 0.28);
}

.site-body.is-public-inner .page-toolbar-card,
.site-body.is-public-inner .content-card-main,
.site-body.is-public-inner .content-card-subsection,
.site-body.is-public-inner .faq-page-card,
.site-body.is-public-inner .team-profile-card,
.site-body.is-public-inner .detail-meta-card {
    padding: 28px 24px;
}

.site-body.is-public-inner .page-toolbar-card {
    align-items: flex-start;
    gap: 22px;
    margin-bottom: 20px;
}

.site-body.is-public-inner .page-toolbar-card .page-copy {
    max-width: 820px;
}

.site-body.is-public-inner .page-copy .section-title,
.site-body.is-public-inner .section-header .section-title,
.site-body.is-public-inner .team-profile-copy .section-title,
.site-body.is-public-inner .content-card .section-title {
    margin-top: 0;
    padding-left: 12px;
    border-left: 5px solid var(--accent);
    font-size: clamp(2rem, 3.2vw, 2.9rem);
    line-height: 1.04;
}

.site-body.is-public-inner .section-title-with-bar::before {
    display: none;
}

.site-body.is-public-inner .section-kicker,
.site-body.is-public-inner .sidebar-nav-kicker {
    color: var(--accent-dark);
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.site-body.is-public-inner .lead-text {
    color: #28334c;
    font-size: 1.04rem;
    line-height: 1.66;
}

.site-body.is-public-inner .standings-table-card,
.site-body.is-public-inner .table-card {
    overflow: hidden;
}

.site-body.is-public-inner .table-wrap {
    padding: 0;
    border-radius: 0;
}

.site-body.is-public-inner .sidebar-nav {
    padding: 18px 16px;
}

.site-body.is-public-inner .sidebar-nav-link {
    border-radius: 12px;
}

.site-body.is-public-inner .team-card {
    min-height: 100%;
    padding: 24px 22px;
}

.site-body.is-public-inner .stadium-card,
.site-body.is-public-inner .faq-item {
    overflow: hidden;
}

.site-body.is-public-inner .site-footer {
    margin-top: 32px;
    background: linear-gradient(180deg, #2c74e2 0%, #163c89 100%);
}

.site-body.is-public-inner .footer-inner {
    gap: 36px;
    padding: 36px 0 28px;
}

.site-body.is-public-inner .footer-columns {
    gap: 36px;
}

.site-body.is-public-inner .footer-bottom {
    display: none;
}

@media (max-width: 900px) {
    .site-body.is-public-inner {
        --page-width: calc(100% - 40px);
    }

    .site-body.is-public-inner .public-hero-inner {
        width: calc(100% - 40px);
    }
}

@media (max-width: 760px) {
    .site-body.is-public-inner {
        --page-width: calc(100% - 24px);
    }

    .site-body.is-public-inner .site-header {
        position: absolute;
    }

    .site-body.is-public-inner .site-header-inner {
        align-items: stretch;
        gap: 16px;
        padding-top: 16px;
    }

    .site-body.is-public-inner .site-header-controls {
        width: 100%;
        justify-content: flex-start;
    }

    .site-body.is-public-inner .site-nav-toggle {
        border-color: rgba(255, 255, 255, 0.22);
        background: rgba(255, 255, 255, 0.08);
    }

    .site-body.is-public-inner .site-nav {
        padding: 12px;
        border-radius: 18px;
        background: rgba(9, 19, 44, 0.96);
    }

    .site-body.is-public-inner .nav-pill,
    .site-body.is-public-inner .nav-pill.is-active {
        width: 100%;
        justify-content: flex-start;
        border-radius: 14px;
    }

    .site-body.is-public-inner .public-hero-card {
        min-height: 56vh;
        min-height: 56svh;
        width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        padding-top: 98px;
        padding-bottom: 28px;
    }

    .site-body.is-public-inner .public-hero-inner {
        width: calc(100% - 20px);
        min-height: calc(56vh - 110px);
        min-height: calc(56svh - 110px);
        padding: 14px 0 36px;
    }

    .site-body.is-public-inner .hero-copy-block {
        max-width: 100%;
        padding-bottom: 8px;
    }

    .site-body.is-public-inner .hero-title-inner {
        max-width: 10ch;
        font-size: clamp(2.8rem, 11vw, 3.9rem);
        line-height: 0.94;
    }

    .site-body.is-public-inner .hero-text-inner {
        max-width: 36ch;
        margin-top: 14px;
        font-size: 1.02rem;
        line-height: 1.58;
    }

    .site-body.is-public-inner .hero-overlap-section {
        margin-top: 20px;
    }

    .site-body.is-public-inner .page-toolbar-card,
    .site-body.is-public-inner .content-card-main,
    .site-body.is-public-inner .content-card-subsection,
    .site-body.is-public-inner .faq-page-card,
    .site-body.is-public-inner .team-profile-card,
    .site-body.is-public-inner .detail-meta-card,
    .site-body.is-public-inner .team-card,
    .site-body.is-public-inner .sidebar-nav {
        padding: 20px 18px;
    }

    .site-body.is-public-inner .footer-columns {
        grid-template-columns: 1fr;
    }

    .site-body.is-public-inner .footer-inner {
        gap: 26px;
        padding: 28px 0 22px;
    }
}

/* Homepage alignment to reference */
.site-body.is-home {
    background: #f3f4f7;
}

.site-body.is-home .main-content {
    padding-bottom: 40px;
}

.site-body.is-home .site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    border-bottom: none;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.site-body.is-home .site-header-inner {
    min-height: 0;
    align-items: center;
    gap: 24px;
    padding: 24px 0 0;
}

.site-body.is-home .site-header-controls {
    flex: 1 1 auto;
    justify-content: center;
}

.site-body.is-home .brand {
    gap: 16px;
}

.site-body.is-home .brand-mark {
    width: 66px;
    height: 76px;
}

.site-body.is-home .brand-mark-ball {
    top: 11px;
    left: 11px;
    width: 16px;
    height: 16px;
}

.site-body.is-home .brand-mark-text {
    font-size: 1.08rem;
}

.site-body.is-home .brand-copy strong {
    font-size: 1.16rem;
    letter-spacing: 0.03em;
}

.site-body.is-home .brand-copy span {
    display: none;
}

.site-body.is-home .public-hero,
.site-body.is-home .public-page-section,
.site-body.is-home .hero-overlap-section {
    padding-top: 0;
    margin-top: 0;
}

.site-body.is-home .public-hero .shell {
    width: 100%;
}

.site-body.is-home .public-hero-card {
    width: 100vw;
    min-height: 56vh;
    min-height: 56svh;
    max-height: 680px;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 128px 0 36px;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background:
        linear-gradient(180deg, rgba(9, 18, 40, 0.18) 0%, rgba(9, 18, 40, 0.34) 100%),
        linear-gradient(135deg, #163c89 0%, #0f2b64 52%, #081738 100%);
}

.site-body.is-home .public-hero.has-hero-image .public-hero-card {
    background:
        center 16% / cover no-repeat var(--hero-image);
}

.site-body.is-home .public-hero.is-hero-fallback .public-hero-card {
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.84) 100%),
        radial-gradient(circle at 76% 18%, rgba(255, 255, 255, 0.08), transparent 16%),
        linear-gradient(135deg, #163c89 0%, #0f2b64 52%, #081738 100%);
}

.site-body.is-home .public-hero-overlay {
    background: rgba(0, 0, 0, 0.81);
}

.site-body.is-home .public-hero-pattern,
.site-body.is-home .hero-breadcrumbs,
.site-body.is-home .hero-eyebrow,
.site-body.is-home .hero-actions,
.site-body.is-home .hero-pill-row,
.site-body.is-home .hero-side-note {
    display: none;
}

.site-body.is-home .public-hero-inner {
    display: flex;
    align-items: flex-end;
    width: min(1400px, calc(100% - 48px));
    min-height: calc(56vh - 128px);
    min-height: calc(56svh - 128px);
    margin: 0 auto;
    padding: 12px 0 34px;
}

.site-body.is-home .hero-copy-block {
    max-width: 820px;
    padding: 0 0 12px;
    margin-left: 0;
}

.site-body.is-home .hero-title-home {
    max-width: 11ch;
    font-size: clamp(3.4rem, 6.2vw, 5.1rem);
    line-height: 0.92;
    letter-spacing: -0.04em;
    text-wrap: normal;
    text-shadow: 0 8px 22px rgba(5, 11, 24, 0.22);
}

.site-body.is-home .hero-text-home {
    max-width: 60ch;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.94);
    font-size: 1.14rem;
    line-height: 1.66;
    text-shadow: 0 6px 18px rgba(5, 11, 24, 0.18);
}

.site-body.is-home .site-nav {
    gap: 14px;
    padding: 2px 0;
    border: none;
    background: transparent;
    box-shadow: none;
}

.site-body.is-home .nav-pill {
    min-height: 46px;
    padding: 0 24px;
    border: 1px solid transparent;
    background: transparent;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.02rem;
    font-weight: 700;
}

.site-body.is-home .nav-pill:hover {
    background: rgba(255, 255, 255, 0.1);
}

.site-body.is-home .nav-pill.is-active {
    border-color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
}

.site-body.is-home .homepage-main {
    width: min(1320px, calc(100% - 72px));
    margin: 0 auto;
    padding-top: 42px;
}

.site-body.is-home .home-section-block {
    margin-top: 34px;
}

.site-body.is-home .home-section-block-first {
    margin-top: 0;
}

.site-body.is-home .home-section-title {
    margin: 0 0 20px;
    padding-left: 12px;
    border-left: 5px solid var(--accent);
    color: #111827;
    font-size: clamp(2rem, 3.2vw, 2.9rem);
    line-height: 1.04;
}

.site-body.is-home .home-feature-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
}

.site-body.is-home .home-card,
.site-body.is-home .home-text-card,
.site-body.is-home .home-teams-shell {
    border: 1px solid #d7ddea;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 28px -22px rgba(17, 28, 57, 0.2);
}

.site-body.is-home .home-card {
    overflow: hidden;
}

.site-body.is-home .home-card-bar {
    padding: 14px 20px;
    background: var(--accent-dark);
    color: #fff;
    font-size: 1.12rem;
    font-weight: 800;
    line-height: 1.2;
}

.site-body.is-home .home-card-action,
.site-body.is-home .home-centered-action {
    display: flex;
    justify-content: center;
}

.site-body.is-home .home-card-action {
    padding: 18px 20px 22px;
}

.site-body.is-home .home-centered-action {
    padding-top: 18px;
}

.site-body.is-home .home-centered-action-tight {
    padding-top: 22px;
}

.site-body.is-home .button {
    min-height: 48px;
    padding: 0 26px;
    border-radius: 999px;
    box-shadow: none;
    font-size: 1rem;
}

.site-body.is-home .home-table-card .table-wrap {
    padding: 0;
    border-radius: 0;
}

.site-body.is-home .home-table-card .table {
    min-width: 100%;
}

.site-body.is-home .home-table-card .table-compact thead {
    background: var(--accent-dark);
}

.site-body.is-home .home-table-card .table-compact th {
    padding: 13px 12px;
    font-size: 0.86rem;
}

.site-body.is-home .home-table-card .table-compact td {
    padding: 13px 12px;
    font-size: 0.95rem;
}

.site-body.is-home .home-table-card .table-rank-badge,
.site-body.is-home .home-table-card .points-pill {
    min-width: 0;
    min-height: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: inherit;
    font-weight: 400;
}

.site-body.is-home .home-table-card .table-team {
    min-width: 0;
    gap: 10px;
}

.site-body.is-home .home-table-card .table-team-logo {
    width: 28px;
    height: 28px;
    border-radius: 10px;
}

.site-body.is-home .home-table-card img.table-team-logo {
    padding: 3px;
}

.site-body.is-home .home-table-card .table-team-copy strong {
    font-size: 0.98rem;
    font-weight: 600;
}

.site-body.is-home .home-results-list {
    gap: 10px;
    padding: 14px 18px 0;
}

.site-body.is-home .home-results-card .result-group-label {
    padding: 12px 16px;
    border-radius: 10px;
    background: var(--accent-dark);
    font-size: 1rem;
}

.site-body.is-home .home-results-card .match-inline-item {
    padding: 14px 12px;
}

.site-body.is-home .home-results-card .result-logo {
    width: 40px;
    height: 40px;
    border-radius: 12px;
}

.site-body.is-home .home-results-card img.result-logo {
    padding: 4px;
}

.site-body.is-home .home-results-card .result-score {
    min-width: 76px;
    font-size: 1.8rem;
}

.site-body.is-home .home-results-card .result-meta {
    display: none;
}

.site-body.is-home .home-results-card .match-inline-team {
    font-size: 0.95rem;
}

.site-body.is-home .home-text-card {
    padding: 24px 22px;
    background: #eef2fb;
}

.site-body.is-home .home-text-card p {
    margin: 0;
    color: #28334c;
    font-size: 1.08rem;
    line-height: 1.66;
}

.site-body.is-home .home-teams-shell {
    padding: 30px 24px 24px;
    background: #eef2fb;
}

.site-body.is-home .home-teams-list {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.site-body.is-home .home-team-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
}

.site-body.is-home .home-team-logo {
    width: 92px;
    height: 92px;
    border-radius: 24px;
    object-fit: contain;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(239, 245, 255, 0.98) 100%);
}

.site-body.is-home .home-team-logo-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.28rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    background: linear-gradient(135deg, #e4a518 0%, #f6d36e 28%, #ffffff 29%, #ffffff 50%, #4f93ff 51%, #163c89 100%);
}

.site-body.is-home .home-team-name {
    color: var(--accent-dark);
    font-size: 1.08rem;
    font-weight: 500;
    line-height: 1.3;
}

.site-body.is-home .site-footer {
    margin-top: 32px;
    background: linear-gradient(180deg, #2c74e2 0%, #163c89 100%);
}

.site-body.is-home .footer-inner {
    width: min(1320px, calc(100% - 72px));
    gap: 36px;
    padding: 36px 0 28px;
}

.site-body.is-home .footer-columns {
    gap: 36px;
}

.site-body.is-home .site-footer .brand-mark {
    width: 62px;
    height: 72px;
}

.site-body.is-home .site-footer .brand-copy strong {
    font-size: 1.2rem;
}

.site-body.is-home .footer-copy,
.site-body.is-home .footer-links a {
    font-size: 1rem;
}

.site-body.is-home .footer-heading {
    font-size: 1.06rem;
}

.site-body.is-home .social-link {
    width: 46px;
    height: 46px;
}

.site-body.is-home .footer-bottom {
    display: none;
}

.site-body.is-home .site-credit-bar,
.site-body.is-public-inner .site-credit-bar {
    background: #081733;
}

@media (max-width: 900px) {
    .site-body.is-home .public-hero-inner,
    .site-body.is-home .homepage-main,
    .site-body.is-home .footer-inner {
        width: calc(100% - 40px);
    }

    .site-body.is-home .home-feature-grid,
    .site-body.is-home .home-teams-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .site-body.is-home .brand,
    .site-body.is-public-inner .brand {
        gap: 12px;
    }

    .site-body.is-home .brand-mark,
    .site-body.is-public-inner .brand-mark {
        width: 60px;
        height: 68px;
    }

    .site-body.is-home .brand-copy strong,
    .site-body.is-public-inner .brand-copy strong {
        font-size: 1.02rem;
    }

    .site-body.is-home .site-header {
        position: absolute;
    }

    .site-body.is-home .site-header-inner {
        align-items: stretch;
        gap: 16px;
        padding-top: 16px;
    }

    .site-body.is-home .site-header-controls {
        width: 100%;
        justify-content: flex-start;
    }

    .site-body.is-home .brand {
        gap: 12px;
    }

    .site-body.is-home .brand-mark {
        width: 60px;
        height: 68px;
    }

    .site-body.is-home .brand-copy strong {
        font-size: 1.02rem;
    }

    .site-body.is-home .site-nav-toggle {
        border-color: rgba(255, 255, 255, 0.22);
        background: rgba(255, 255, 255, 0.08);
    }

    .site-body.is-home .site-nav {
        padding: 12px;
        border-radius: 18px;
        background: rgba(9, 19, 44, 0.96);
    }

    .site-body.is-home .nav-pill,
    .site-body.is-home .nav-pill.is-active {
        width: 100%;
        justify-content: flex-start;
        border-radius: 14px;
    }

    .site-body.is-home .public-hero-card {
        min-height: 56vh;
        min-height: 56svh;
        padding-top: 98px;
        padding-bottom: 28px;
    }

    .site-body.is-home .public-hero-inner {
        width: calc(100% - 20px);
        min-height: calc(56vh - 110px);
        min-height: calc(56svh - 110px);
        align-items: flex-end;
        padding: 14px 0 36px;
    }

    .site-body.is-home .hero-copy-block {
        max-width: 100%;
        padding: 0 0 8px;
        margin-left: 0;
    }

    .site-body.is-home .hero-title-home {
        max-width: 10ch;
        font-size: clamp(2.8rem, 11vw, 3.9rem);
        line-height: 0.94;
    }

    .site-body.is-home .hero-text-home {
        max-width: 36ch;
        margin-top: 14px;
        font-size: 1.02rem;
        line-height: 1.58;
    }

    .site-body.is-home .homepage-main {
        width: calc(100% - 24px);
        padding-top: 24px;
    }

    .site-body.is-home .home-section-block {
        margin-top: 26px;
    }

    .site-body.is-home .home-section-title {
        margin-bottom: 16px;
        font-size: 2rem;
    }

    .site-body.is-home .home-card-bar,
    .site-body.is-home .home-table-card .table-compact th,
    .site-body.is-home .home-table-card .table-compact td {
        font-size: 0.82rem;
    }

    .site-body.is-home .home-teams-shell,
    .site-body.is-home .home-text-card {
        padding: 18px 16px;
    }

    .site-body.is-home .home-team-logo {
        width: 82px;
        height: 82px;
    }

    .site-body.is-home .footer-columns {
        grid-template-columns: 1fr;
    }

    .site-body.is-home .footer-inner {
        width: calc(100% - 24px);
        gap: 26px;
        padding: 28px 0 22px;
    }
}

body.has-open-nav {
    overflow: hidden;
}

@media (max-width: 980px) {
    .site-header-inner {
        flex-wrap: wrap;
    }

    .site-header-controls {
        position: static;
        left: auto;
        transform: none;
        flex: 1 1 100%;
        justify-content: flex-start;
    }

    .site-nav-shell {
        width: 100%;
    }

    .site-nav {
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .site-nav::-webkit-scrollbar {
        display: none;
    }

    .matches-toolbar-card {
        grid-template-columns: 1fr;
    }

    .matches-toolbar-card .matches-toolbar-actions {
        max-width: 100%;
        justify-items: stretch;
    }
}

@media (max-width: 760px) {
    .brand-copy span {
        display: none;
    }

    .site-nav-shell {
        width: 100%;
    }

    .site-nav-toggle {
        width: 100%;
        justify-content: space-between;
    }

    .site-nav {
        position: fixed;
        top: 82px;
        left: 12px;
        right: 12px;
        width: auto;
        max-height: calc(100svh - 94px);
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .matches-toolbar-card .matches-toolbar-actions,
    .filter-card-inline {
        flex-direction: column;
        align-items: stretch;
    }

    .season-picker {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .matches-toolbar-card .matches-toolbar-actions > *,
    .filter-card-inline > * {
        width: 100%;
        min-width: 0;
    }

    .match-tabs {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .match-tab-button,
    .filter-card-inline .button,
    .filter-card-inline .input,
    .season-filter-card .input,
    .season-picker__submit,
    .site-body.is-home .home-card-action .button,
    .site-body.is-home .home-centered-action .button,
    .section-centered-action-left .button {
        width: 100%;
    }

    .match-card-battle {
        gap: 12px;
        justify-items: stretch;
    }

    .match-card-club {
        width: 100%;
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
    }

    .match-score-box {
        width: 100%;
        max-width: 220px;
    }

    .result-score-wrap {
        align-items: flex-start;
        min-width: 0;
    }

    .detail-meta-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .detail-meta-row strong {
        text-align: left;
    }

    .matches-toolbar-card {
        gap: 18px;
    }

    .matches-toolbar-card .page-copy {
        gap: 10px;
    }

    .matches-toolbar-card .season-picker {
        padding: 16px;
    }

    .match-card-detailed {
        padding: 18px;
        border-radius: 24px;
    }

    .match-card-topbar {
        margin-bottom: 16px;
        padding-bottom: 14px;
        align-items: flex-start;
    }

    .match-card-statusline {
        width: 100%;
        align-items: flex-start;
    }

    .match-kickoff {
        font-size: 0.9rem;
    }

    .match-card-stage {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .match-card-team-home,
    .match-card-team-away {
        justify-items: stretch;
        text-align: left;
    }

    .match-card-team-home .match-card-team-body,
    .match-card-team-away .match-card-team-body {
        flex-direction: row;
    }

    .match-card-team-body {
        padding: 13px 14px;
        border-radius: 20px;
    }

    .match-team-side {
        font-size: 0.7rem;
    }

    .match-team-logo-large {
        width: 60px;
        height: 60px;
        border-radius: 18px;
    }

    .match-score-panel {
        width: 100%;
        min-width: 0;
        padding: 16px 18px;
        border-radius: 24px;
    }

    .match-score-value {
        font-size: clamp(1.9rem, 8vw, 2.2rem);
    }

    .match-card-footer {
        margin-top: 16px;
        padding-top: 14px;
        align-items: flex-start;
    }

    .match-card-context,
    .match-card-venue {
        width: 100%;
    }

    .match-card-venue {
        gap: 8px;
    }

    .social-links {
        flex-wrap: wrap;
    }

    .site-body.is-home .home-teams-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 14px;
    }
}

@media (max-width: 420px) {
    .site-nav {
        top: 78px;
        left: 10px;
        right: 10px;
        max-height: calc(100svh - 88px);
    }

    .brand-mark {
        width: 52px;
        height: 60px;
    }

    .brand-copy strong {
        font-size: 0.96rem;
    }

    .match-card-detailed {
        padding: 18px 16px;
    }

    .site-body.is-home .home-team-name {
        font-size: 0.96rem;
    }
}

/* Responsive system refinement */
.table-mobile-list,
.match-card-meta-inline {
    display: none;
}

.table-mobile-row {
    padding: 10px 0 12px;
    border-bottom: 1px solid rgba(219, 226, 239, 0.92);
}

.table-mobile-row:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.table-mobile-row.is-leader {
    margin-inline: -8px;
    padding-inline: 8px;
    border-radius: 14px;
    background: rgba(240, 246, 255, 0.96);
    box-shadow: inset 3px 0 0 rgba(47, 115, 224, 0.74);
}

.table-mobile-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.table-mobile-teamline {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1 1 auto;
}

.table-mobile-teamline .table-rank-badge {
    min-width: auto;
    min-height: auto;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--navy);
    font-size: 1rem;
    font-weight: 900;
    line-height: 1;
}

.table-mobile-row.is-leader .table-rank-badge.is-leader {
    color: var(--accent-dark);
}

.table-mobile-teamline .table-team-logo {
    width: 34px;
    height: 34px;
    border-radius: 10px;
}

.table-mobile-teamline img.table-team-logo {
    padding: 3px;
}

.table-mobile-copy {
    min-width: 0;
    flex: 1 1 auto;
}

.table-mobile-copy strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--navy);
    font-size: 0.96rem;
    line-height: 1.2;
}

.table-mobile-points {
    flex: 0 0 auto;
    padding-left: 8px;
}

.table-mobile-points-value {
    display: block;
    color: var(--accent-dark);
    font-size: 1.2rem;
    font-weight: 900;
    line-height: 1;
}

.table-mobile-scoreline {
    margin: 4px 0 0 44px;
    color: #5b6780;
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.25;
}

.table-mobile-scoreline.is-positive {
    color: var(--accent-dark);
}

.table-mobile-scoreline.is-negative {
    color: #9b2d2d;
}

.table-mobile-stats-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0 12px;
    margin: 4px 0 0 44px;
    color: #5f6b84;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.35;
}

.table-mobile-stats-inline span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.table-mobile-stats-inline small {
    color: #7d879c;
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

@media (max-width: 1024px) {
    .shell,
    .site-body.is-home .homepage-main,
    .site-body.is-home .footer-inner,
    .site-body.is-home .public-hero-inner,
    .site-body.is-public-inner .public-hero-inner {
        width: calc(100% - 48px);
    }

    .site-body.is-public-inner {
        --page-width: calc(100% - 48px);
    }

    .site-body.is-home .site-header-inner,
    .site-body.is-public-inner .site-header-inner {
        gap: 18px;
        padding-top: 20px;
    }

    .site-body.is-home .brand-mark,
    .site-body.is-public-inner .brand-mark {
        width: 60px;
        height: 70px;
    }

    .site-body.is-home .brand-copy strong,
    .site-body.is-public-inner .brand-copy strong {
        font-size: 1.08rem;
    }

    .site-body.is-home .nav-pill,
    .site-body.is-public-inner .nav-pill {
        min-height: 44px;
        padding: 0 18px;
        font-size: 0.96rem;
    }

    .site-body.is-home .public-hero-card,
    .site-body.is-public-inner .public-hero-card {
        padding-top: 116px;
    }

    .site-body.is-home .hero-title-home {
        font-size: clamp(2.85rem, 6vw, 4.4rem);
    }

    .site-body.is-public-inner .hero-title-inner {
        font-size: clamp(2.35rem, 5vw, 3.5rem);
    }

    .hero-text-home,
    .hero-text-inner,
    .lead-text {
        font-size: 1rem;
        line-height: 1.62;
    }

    .section-title {
        font-size: clamp(2rem, 3.4vw, 2.7rem);
    }

    .section-title-compact {
        font-size: clamp(1.7rem, 2.8vw, 2.2rem);
    }

    .page-toolbar-card {
        flex-direction: column;
        align-items: stretch;
        padding: 22px 24px;
    }

    .page-toolbar-card .page-copy,
    .matches-toolbar-card .page-copy {
        max-width: none;
    }

    .filter-card-inline,
    .matches-toolbar-card .matches-toolbar-actions,
    .season-picker,
    .season-filter-card {
        min-width: 0;
    }

    .matches-toolbar-card,
    .home-primary-grid,
    .home-story-grid,
    .team-detail-grid,
    .content-layout-public {
        grid-template-columns: 1fr;
    }

    .content-layout-public,
    .team-detail-grid {
        gap: 20px;
    }

    .matches-toolbar-card .matches-toolbar-actions {
        width: 100%;
        max-width: none;
        align-items: stretch;
        justify-items: stretch;
    }

    .sidebar-nav {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 10px;
    }

    .sidebar-nav-kicker {
        grid-column: 1 / -1;
        margin-bottom: 0;
    }

    .sidebar-nav-link {
        justify-content: center;
        text-align: center;
    }

    .card-grid-three,
    .card-grid-four,
    .team-grid-public {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-body.is-home .home-feature-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .site-body.is-home .home-teams-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 16px;
    }

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

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

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

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 760px) {
    .table-wrap-desktop {
        display: none;
    }

    .table-mobile-list {
        display: block;
    }
}

@media (max-width: 760px) {
    .shell,
    .site-body.is-home .homepage-main,
    .site-body.is-home .footer-inner,
    .site-body.is-home .public-hero-inner,
    .site-body.is-public-inner .public-hero-inner {
        width: calc(100% - 32px);
    }

    .site-body.is-public-inner {
        --page-width: calc(100% - 32px);
    }

    .main-content,
    .site-body.is-public-inner .main-content {
        padding-bottom: 56px;
    }

    .site-body.is-home .site-header-inner,
    .site-body.is-public-inner .site-header-inner {
        gap: 12px;
        padding-top: 16px;
    }

    .site-body.is-home .site-header-controls,
    .site-body.is-public-inner .site-header-controls {
        width: 100%;
    }

    .site-nav-toggle {
        min-height: 48px;
        padding: 0 16px;
        border-radius: 18px;
    }

    .site-nav-toggle > span:last-child {
        line-height: 1;
    }

    .site-nav {
        top: 80px;
        left: 16px;
        right: 16px;
        max-height: calc(100svh - 96px);
        padding: 12px;
        border-radius: 20px;
    }

    .nav-pill,
    .site-body.is-home .nav-pill,
    .site-body.is-public-inner .nav-pill {
        min-height: 46px;
        padding: 0 16px;
        font-size: 0.98rem;
    }

    .site-body.is-home .brand-mark,
    .site-body.is-public-inner .brand-mark {
        width: 54px;
        height: 64px;
    }

    .site-body.is-home .brand-copy strong,
    .site-body.is-public-inner .brand-copy strong {
        font-size: 1rem;
    }

    .site-body.is-home .public-hero-card {
        min-height: clamp(400px, 66svh, 560px);
        padding-top: 100px;
        padding-bottom: 22px;
    }

    .site-body.is-public-inner .public-hero-card {
        min-height: clamp(280px, 42svh, 360px);
        padding-top: 100px;
        padding-bottom: 18px;
    }

    .site-body.is-home .public-hero-inner,
    .site-body.is-public-inner .public-hero-inner {
        padding: 6px 0 18px;
    }

    .site-body.is-home .hero-title-home {
        max-width: 10ch;
        font-size: clamp(2.2rem, 10vw, 3rem);
        line-height: 0.96;
    }

    .site-body.is-public-inner .hero-title-inner {
        max-width: 11ch;
        font-size: clamp(1.85rem, 8.4vw, 2.45rem);
        line-height: 1.02;
    }

    .hero-text-home,
    .hero-text-inner,
    .lead-text {
        font-size: 0.96rem;
        line-height: 1.55;
    }

    .section-kicker,
    .match-context-label,
    .table-mobile-stats-inline small {
        letter-spacing: 0.1em;
    }

    .site-body.is-public-inner .hero-overlap-section,
    .hero-overlap-section {
        margin-top: -16px;
    }

    .site-body.is-home .home-section-block {
        margin-top: 24px;
    }

    .site-body.is-home .home-section-title {
        margin-bottom: 14px;
        padding-left: 10px;
        font-size: clamp(1.65rem, 8vw, 2.2rem);
    }

    .page-toolbar-card,
    .content-card-main,
    .content-card-subsection,
    .faq-page-card,
    .team-profile-card,
    .detail-meta-card,
    .site-body.is-home .home-card,
    .site-body.is-home .home-text-card,
    .site-body.is-home .home-teams-shell {
        padding: 16px;
        border-radius: 18px;
        box-shadow: none;
    }

    .page-copy,
    .content-stack {
        gap: 10px;
    }

    .filter-card-inline,
    .matches-toolbar-card .matches-toolbar-actions,
    .season-picker,
    .season-filter-card {
        width: 100%;
    }

    .season-picker {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 0;
        border: none;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .season-picker__native-select,
    .season-picker__trigger,
    .season-picker__submit,
    .button,
    .button-secondary,
    .button-danger {
        min-height: 48px;
    }

    .season-picker__field,
    .season-picker__submit {
        width: 100%;
    }

    .season-picker__panel {
        left: 0;
        right: 0;
        width: auto;
    }

    .season-picker__option {
        min-height: 44px;
        padding: 12px 14px;
    }

    .match-tabs {
        display: flex;
        flex-wrap: nowrap;
        gap: 6px;
        padding: 4px;
    }

    .match-tab-button {
        flex: 1 1 0;
        min-height: 46px;
        padding: 10px 12px;
        line-height: 1.15;
        text-align: center;
        white-space: normal;
    }

    .card-grid-three,
    .card-grid-four,
    .stadium-grid {
        grid-template-columns: 1fr;
    }

    .team-grid-public,
    .site-body.is-home .home-teams-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .team-card,
    .team-card-mini {
        gap: 8px;
        min-height: 0;
        padding: 14px 10px;
        border-radius: 18px;
        box-shadow: none;
    }

    .team-card-body {
        display: block;
        width: 100%;
    }

    .team-card-copy {
        gap: 4px;
        text-align: center;
    }

    .team-card-media {
        min-height: 64px;
    }

    .team-logo {
        width: 64px;
        height: 64px;
        border-radius: 18px;
    }

    .team-card-mini .team-logo {
        width: 60px;
        height: 60px;
        border-radius: 16px;
    }

    .team-card .team-city {
        margin: 0 0 2px;
        font-size: 0.68rem;
    }

    .team-title {
        margin-bottom: 0;
        font-size: 0.92rem;
        line-height: 1.25;
    }

    .team-meta-line,
    .team-text,
    .team-card-footer {
        display: none;
    }

    .team-profile-head {
        gap: 14px;
        align-items: flex-start;
    }

    .team-profile-logo {
        width: 88px;
        height: 88px;
        border-radius: 24px;
    }

    .page-meta-pills {
        gap: 8px;
    }

    .match-inline-item {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        gap: 8px;
        align-items: center;
        padding: 10px 0;
    }

    .match-inline-team {
        min-width: 0;
        gap: 6px;
    }

    .match-inline-team span:last-child {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        line-height: 1.2;
    }

    .match-inline-team-away {
        justify-content: flex-end;
        text-align: right;
    }

    .result-score-wrap {
        grid-column: auto;
        grid-row: auto;
        align-items: center;
        justify-self: center;
        min-width: 72px;
    }

    .result-logo {
        width: 30px;
        height: 30px;
        border-radius: 10px;
    }

    .result-score {
        min-width: 0;
        font-size: 1.18rem;
    }

    .result-meta {
        font-size: 0.66rem;
        text-align: center;
    }

    .match-card-detailed {
        display: flex;
        flex-direction: column;
        gap: 6px;
        padding: 12px 14px;
        border-radius: 18px;
        box-shadow: none;
    }

    .match-card-detailed::before {
        display: none;
    }

    .match-card-detailed:hover,
    .match-card-detailed:focus-within {
        transform: none;
        box-shadow: none;
    }

    .match-card-topbar {
        order: 2;
        gap: 0;
        margin: 0;
        padding: 0;
        border: none;
    }

    .match-card-statusline {
        gap: 6px 10px;
    }

    .match-card-stage {
        order: 1;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        gap: 8px 10px;
    }

    .match-card-team {
        gap: 0;
    }

    .match-card-team-home {
        justify-items: start;
        text-align: left;
    }

    .match-card-team-away {
        justify-items: end;
        text-align: right;
    }

    .match-card-team-body {
        gap: 6px;
        padding: 0;
        border: none;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .match-card-team-home .match-card-team-body {
        flex-direction: row;
    }

    .match-card-team-away .match-card-team-body {
        flex-direction: row-reverse;
    }

    .match-card-detailed:hover .match-card-team-body,
    .match-card-detailed:focus-within .match-card-team-body {
        border: none;
        background: transparent;
        box-shadow: none;
    }

    .match-team-side {
        display: none;
    }

    .match-team-logo-large {
        width: 30px;
        height: 30px;
        border-radius: 10px;
    }

    img.match-team-logo-large {
        padding: 4px;
    }

    .match-card-team strong {
        font-size: 0.92rem;
        line-height: 1.22;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .match-score-panel {
        min-width: 68px;
        gap: 0;
        padding: 0;
        border: none;
        border-radius: 0;
        background: transparent;
        color: var(--navy);
        box-shadow: none;
    }

    .match-card-detailed:hover .match-score-panel,
    .match-card-detailed:focus-within .match-score-panel,
    .match-card-detailed[data-match-status="live"] .match-score-panel {
        transform: none;
        border: none;
        box-shadow: none;
    }

    .match-score-value {
        font-size: 1.22rem;
        line-height: 1.05;
        letter-spacing: 0;
    }

    .match-score-label,
    .match-score-note,
    .match-card-context,
    .match-card-venue {
        display: none;
    }

    .match-status-badge,
    .match-status-badge.is-scheduled,
    .match-status-badge.is-live,
    .match-status-badge.is-completed,
    .match-status-badge.is-postponed,
    .match-status-badge.is-cancelled {
        gap: 6px;
        min-height: 0;
        padding: 0;
        border: none;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        font-size: 0.68rem;
        line-height: 1.2;
        letter-spacing: 0.06em;
    }

    .match-status-badge::before {
        width: 6px;
        height: 6px;
        box-shadow: none;
    }

    .match-kickoff {
        font-size: 0.74rem;
        font-weight: 700;
        color: #6c7892;
    }

    .match-card-footer {
        order: 3;
        margin: 0;
        padding: 0;
        border: none;
    }

    .match-card-meta-inline {
        display: block;
        margin: 0;
        color: #6c7892;
        font-size: 0.74rem;
        line-height: 1.35;
    }

    .sidebar-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        padding: 10px 12px;
        border-radius: 16px;
        box-shadow: none;
    }

    .sidebar-nav-link {
        min-height: 40px;
        font-size: 0.88rem;
    }

    .faq-item {
        border-radius: 16px;
        box-shadow: none;
    }

    .faq-item summary {
        padding: 14px 16px;
        font-size: 0.92rem;
    }

    .faq-answer {
        padding: 0 16px 16px;
        font-size: 0.9rem;
    }

    .stadium-card {
        border-radius: 18px;
        box-shadow: none;
    }

    .stadium-image {
        height: 150px;
    }

    .footer-inner {
        gap: 20px;
        padding: 24px 0 20px;
    }

    .footer-columns {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .footer-column:last-child {
        grid-column: auto;
    }

    .footer-bottom {
        padding: 14px 0 20px;
    }

    .site-credit-inner {
        min-height: 44px;
        padding: 10px 0;
    }

    .site-credit-copy {
        font-size: 0.78rem;
    }
}

@media (max-width: 480px) {
    .site-nav {
        top: 72px;
        left: 12px;
        right: 12px;
        max-height: calc(100svh - 84px);
    }

    .site-body.is-home .brand-mark,
    .site-body.is-public-inner .brand-mark {
        width: 50px;
        height: 58px;
    }

    .site-body.is-home .brand-copy strong,
    .site-body.is-public-inner .brand-copy strong {
        font-size: 0.98rem;
    }

    .site-body.is-home .public-hero-card {
        min-height: clamp(400px, 66svh, 560px);
        padding-top: 96px;
    }

    .site-body.is-public-inner .public-hero-card {
        min-height: clamp(280px, 42svh, 360px);
        padding-top: 96px;
    }

    .site-body.is-home .hero-title-home {
        font-size: clamp(2.05rem, 10.5vw, 2.7rem);
    }

    .site-body.is-public-inner .hero-title-inner {
        font-size: clamp(1.7rem, 9vw, 2.25rem);
    }

    .page-toolbar-card,
    .content-card-main,
    .content-card-subsection,
    .faq-page-card,
    .team-profile-card,
    .detail-meta-card,
    .site-body.is-home .home-card,
    .site-body.is-home .home-text-card,
    .site-body.is-home .home-teams-shell {
        padding: 14px;
    }

    .sidebar-nav {
        grid-template-columns: 1fr;
    }

    .team-grid-public,
    .site-body.is-home .home-teams-list {
        gap: 10px;
    }

    .team-logo {
        width: 58px;
        height: 58px;
    }

    .team-card-mini .team-logo {
        width: 54px;
        height: 54px;
    }

    .team-profile-head {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .team-profile-copy {
        align-items: center;
        text-align: center;
    }

    .page-meta-pills {
        justify-content: center;
    }

    .match-tab-button {
        font-size: 0.9rem;
    }

    .match-card-detailed {
        padding: 12px;
    }

    .match-team-logo-large {
        width: 28px;
        height: 28px;
    }

    .match-card-team strong {
        font-size: 0.88rem;
    }

    .table-mobile-row {
        padding-block: 9px 10px;
    }

    .table-mobile-teamline {
        gap: 8px;
    }

    .table-mobile-teamline .table-team-logo {
        width: 32px;
        height: 32px;
    }

    .table-mobile-scoreline,
    .table-mobile-stats-inline {
        margin-left: 40px;
    }

    .table-mobile-stats-inline {
        gap: 0 10px;
        font-size: 0.74rem;
    }
}

@media (max-width: 900px) {
    .rich-text table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .rich-text thead th,
    .rich-text tbody td {
        padding: 9px 14px;
        font-size: 0.88rem;
    }
}

@media (max-width: 760px) {
    .rich-text {
        font-size: 0.93rem;
        line-height: 1.7;
        overflow: visible;
    }

    .rich-text h2 {
        font-size: 1.08rem;
        padding-bottom: 10px;
        margin-bottom: 16px;
    }

    .rich-text h3 {
        padding: 10px 14px;
        font-size: 0.93rem;
        margin: 24px 0 10px;
        border-radius: 10px;
    }

    .rich-text h3:first-child {
        margin-top: 0;
    }

    .rich-text p,
    .rich-text ul,
    .rich-text ol {
        margin-bottom: 12px;
    }

    .rich-text li + li {
        margin-top: 6px;
    }

    .rich-text ul li,
    .rich-text ol li {
        padding-left: 18px;
    }

    .rich-text ul li::before {
        width: 6px;
        height: 6px;
        top: 8px;
    }

    .rich-text table {
        display: table;
        table-layout: fixed;
        width: calc(100% + 32px);
        min-width: calc(100% + 32px);
        margin: 14px -16px 18px;
        font-size: 0.84rem;
        border-radius: 0;
        box-shadow: none;
    }

    .rich-text thead th,
    .rich-text tbody td {
        padding: 10px 12px;
        text-align: center;
    }

    .rich-text thead th {
        font-size: 0.78rem;
        letter-spacing: 0.03em;
    }

    .rich-text tbody td:first-child,
    .rich-text thead th:first-child {
        text-align: left;
    }

    .content-card-main .rich-text {
        margin-top: 16px;
    }

    .content-card-main,
    .content-card-subsection {
        overflow: visible;
    }
}

/* Admin guide */

.admin-guide {
    border-left: 4px solid var(--accent);
}

.guide-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    margin-top: 16px;
}

.guide-item {
    padding: 16px;
    border-radius: var(--radius-sm);
    background: var(--card-soft, #f7f9ff);
    border: 1px solid var(--border);
}

.guide-item strong {
    display: block;
    margin-bottom: 6px;
    color: var(--navy);
    font-size: 0.95rem;
}

.guide-item p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.5;
}

.guide-item a {
    color: var(--accent);
    text-decoration: underline;
}

.admin-nav-link[title] {
    position: relative;
}

@media (min-width: 1024px) {
    .admin-nav-link[title]:hover::after {
        content: attr(title);
        position: absolute;
        left: calc(100% + 12px);
        top: 50%;
        transform: translateY(-50%);
        padding: 8px 14px;
        border-radius: 12px;
        background: var(--navy-deep);
        color: #fff;
        font-size: 0.82rem;
        font-weight: 500;
        white-space: nowrap;
        max-width: 320px;
        white-space: normal;
        z-index: 100;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
        pointer-events: none;
        line-height: 1.4;
    }
}

/* Textarea format help */

.textarea-format-help {
    margin-top: 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--card-soft, #f7f9ff);
    font-size: 0.84rem;
}

.textarea-format-help summary {
    padding: 10px 14px;
    cursor: pointer;
    color: var(--accent);
    font-weight: 600;
    user-select: none;
}

.textarea-format-help summary:hover {
    color: var(--navy);
}

.textarea-format-help-body {
    padding: 4px 14px 14px;
    color: var(--muted);
    line-height: 1.6;
}

.textarea-format-help-body p {
    margin: 0 0 6px;
}

.textarea-format-help-body code {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1px 6px;
    font-size: 0.82rem;
    font-family: monospace;
}

/* Cookie banner */

.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: min(560px, calc(100% - 32px));
    background: var(--card);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 48px -12px rgba(11, 37, 88, 0.28), 0 0 0 1px rgba(22, 60, 137, 0.06);
    animation: cookieSlideUp 0.4s ease-out;
}

@keyframes cookieSlideUp {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-banner-inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px 28px;
}

.cookie-banner-text p {
    margin: 0 0 4px;
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--muted);
}

.cookie-banner-text p:first-child {
    color: var(--navy);
    font-size: 1rem;
    margin-bottom: 6px;
}

.cookie-banner-actions {
    display: flex;
    gap: 10px;
}

.cookie-banner-actions .button {
    flex: 1;
    text-align: center;
}

.cookie-banner-actions .button-secondary {
    background: var(--bg-soft);
    border-color: var(--border);
    color: var(--muted);
}

.cookie-banner-actions .button-secondary:hover {
    background: var(--bg);
    border-color: var(--border-strong);
    color: var(--text);
}

@media (max-width: 480px) {
    .cookie-banner {
        bottom: 16px;
        width: calc(100% - 24px);
        border-radius: var(--radius-md);
    }

    .cookie-banner-inner {
        padding: 20px;
        gap: 14px;
    }
}
