:root {
    --black: #120a06;
    --black-soft: #22120a;
    --panel: rgba(28, 15, 8, 0.9);
    --panel-solid: #251309;
    --white: #fffaf2;
    --muted: #f1ddc6;
    --line: rgba(255, 255, 255, 0.14);
    --orange: #f58220;
    --orange-dark: #b9580a;
    --green: #149566;
    --max-width: 1180px;
    --nav-height: 78px;
    --warm-fade-horizontal: linear-gradient(90deg, rgba(58, 28, 14, 0.96), rgba(185, 83, 24, 0.9));
    --warm-fade-diagonal: linear-gradient(135deg, rgba(58, 28, 14, 0.95), rgba(185, 83, 24, 0.82));
    --warm-fade-vertical: linear-gradient(180deg, rgba(58, 28, 14, 0.98), rgba(185, 83, 24, 0.9));
    --content-fade-diagonal: linear-gradient(135deg, rgba(25, 12, 6, 0.98), rgba(142, 60, 10, 0.88));
    --news-title-fade: linear-gradient(135deg, rgba(25, 9, 2, 0.98), rgba(106, 41, 5, 0.94));
    --match-solid: #8e3c0a;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1000;
    padding: 10px 14px;
    border-radius: 6px;
    background: var(--white);
    color: var(--black);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    transform: translateY(-140%);
    transition: transform 0.18s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

body {
    min-width: 320px;
    overflow-x: hidden;
    background: #120a06;
    color: var(--white);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.55;
}

body.menu-open {
    overflow: hidden;
}

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

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid rgba(255, 250, 242, 0.95);
    outline-offset: 3px;
    box-shadow: 0 0 0 6px rgba(245, 130, 32, 0.28);
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

.main,
.main-about,
.main-coe {
    min-height: 100vh;
    background:
        linear-gradient(180deg, rgba(18, 10, 6, 0.84), rgba(84, 34, 8, 0.58)),
        url("img/background.png") center / cover fixed;
    padding-bottom: 56px;
}

.container,
.news,
.next-match,
.recent-results,
.league-table-section,
.sponsors-section,
.community-section,
.lineup-section,
.fixtures-results-section,
.squad-page,
.history-page,
.supporters-page,
.about-page,
.article-main,
.archive-page,
.match-centre-page,
.matchday-guide-page,
.club-tv-page {
    width: min(calc(100% - 32px), var(--max-width));
    margin-inline: auto;
}

.section-title {
    margin-bottom: 22px;
    color: var(--white);
    font-size: 32px;
    font-weight: 900;
    line-height: 1.15;
    text-align: center;
    text-transform: uppercase;
}

.section-title::after {
    display: block;
    width: 72px;
    height: 4px;
    margin: 12px auto 0;
    background: var(--orange);
    content: "";
}

.eyebrow,
.subtitle {
    color: var(--orange);
    font-weight: 800;
    text-transform: uppercase;
}

.empty-state {
    grid-column: 1 / -1;
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    color: var(--muted);
    text-align: center;
}

.section-meta {
    margin: -10px 0 18px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
}

.page-hero {
    display: grid;
    gap: 12px;
    padding: 46px 0 30px;
    text-align: center;
}

.page-hero h1 {
    color: var(--white);
    font-size: 42px;
    font-weight: 900;
    line-height: 1.08;
    text-transform: uppercase;
}

.page-hero p {
    width: min(100%, 720px);
    margin-inline: auto;
    color: var(--muted);
    font-size: 18px;
}

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    min-height: var(--nav-height);
    align-items: center;
    gap: 18px;
    padding: 10px max(18px, calc((100vw - var(--max-width)) / 2));
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background: var(--warm-fade-horizontal);
    backdrop-filter: blur(14px);
}

.icon {
    flex: 0 0 auto;
}

.logo-image a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.logo-image a::after {
    display: block;
    max-width: 132px;
    color: var(--white);
    font-size: 12px;
    font-weight: 900;
    line-height: 1.05;
    text-transform: uppercase;
    content: "Hougang United Football Club";
}

.logo-image img {
    width: auto;
    height: 58px;
    object-fit: contain;
}

.menu {
    display: flex;
    flex: 1;
    justify-content: flex-end;
}

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    list-style: none;
}

.nav-menu > li {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-menu a,
.dropbtn {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 10px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--white);
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
    background: rgba(245, 130, 32, 0.14);
    color: var(--orange);
}

.nav-menu a[aria-current="page"] {
    background: rgba(255, 255, 255, 0.1);
    color: var(--orange);
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 120;
    display: none;
    min-width: 220px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(24, 12, 6, 0.99);
    box-shadow: 0 18px 44px rgba(15, 15, 12, 0.35);
}

.dropdown-content a {
    display: flex;
    width: 100%;
    justify-content: flex-start;
    padding: 11px 12px;
    color: var(--white);
    text-transform: none;
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content,
.dropdown.open .dropdown-content {
    display: grid;
}

.nav-utility {
    gap: 10px;
    margin-left: 2px;
}

.shopping-cart img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: invert(1);
}

.nav-icons {
    display: flex;
    align-items: center;
}

.search-container {
    position: relative;
    display: flex;
    width: 42px;
    height: 40px;
    align-items: center;
    justify-content: flex-end;
    overflow: visible;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    transition: width 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.search-container.active {
    width: 230px;
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.08);
}

#search-input {
    width: 0;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--white);
    opacity: 0;
    transition: width 0.2s ease, opacity 0.2s ease;
}

.search-container.active #search-input {
    width: 178px;
    padding: 0 8px 0 12px;
    opacity: 1;
}

#search-trigger {
    display: grid;
    width: 40px;
    height: 38px;
    flex: 0 0 40px;
    place-items: center;
    border: 0;
    border-radius: 6px;
    background: transparent;
}

#search-trigger img {
    width: 18px;
    height: 18px;
    filter: invert(1);
}

.search-results-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 150;
    display: none;
    width: min(340px, calc(100vw - 32px));
    max-height: 420px;
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #22120a;
    box-shadow: 0 18px 44px rgba(15, 15, 12, 0.38);
}

.search-item {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.search-item:hover {
    background: rgba(245, 130, 32, 0.14);
}

.search-item img {
    width: 52px;
    height: 52px;
    border-radius: 6px;
    object-fit: cover;
    background: #ffffff;
}

.search-item-info {
    min-width: 0;
}

.search-item-info span {
    display: block;
    color: var(--orange);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.search-item-info strong {
    display: block;
    overflow: hidden;
    color: var(--white);
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.menu-hamburger-btn {
    display: none;
    width: 44px;
    height: 44px;
    margin-left: auto;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    font-size: 24px;
}

/* News */
.news {
    width: min(calc(100% - 20px), 1320px);
    padding: 42px 0 26px;
}

.featured-news {
    margin-bottom: 24px;
}

.featured-link,
.news-grid-link,
.archive-link {
    display: block;
    height: 100%;
}

.home-hero-frame {
    cursor: default;
}

.featured-article-card {
    position: relative;
    min-height: 430px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel-solid);
}

.featured-article-card img {
    width: 100%;
    height: 100%;
    min-height: 430px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.featured-article-card:hover img {
    transform: scale(1.03);
}

.featured-overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 72px 34px 30px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.86));
}

.featured-overlay h1 {
    max-width: 820px;
    color: var(--white);
    font-size: 40px;
    line-height: 1.05;
}

.category-tag {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 10px;
    padding: 6px 9px;
    border-radius: 6px;
    background: var(--orange);
    color: var(--black);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 14px;
}

#news-container.news-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

#news-container .news-card {
    grid-template-rows: auto 112px;
}

#news-container .news-card img {
    aspect-ratio: 9 / 5;
    height: auto;
}

.news-card {
    display: grid;
    grid-template-rows: auto 146px;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--news-title-fade);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.news-card:hover {
    transform: translateY(-3px);
    border-color: rgba(245, 130, 32, 0.7);
}

.news-card img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 9 / 5;
    object-fit: cover;
    object-position: center top;
}

.featured-article-card img.image-fallback,
.news-card img.image-fallback,
#article-image.image-fallback {
    object-fit: contain;
    padding: 28px;
    background: linear-gradient(135deg, rgba(25, 9, 2, 0.98), rgba(106, 41, 5, 0.94));
}

.news-card-info {
    display: flex;
    height: 146px;
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;
    padding: 13px 10px;
    background: var(--news-title-fade);
}

#news-container .news-card-info {
    height: 112px;
    padding: 11px 10px;
}

.news-card-info .category-tag {
    margin-bottom: 0;
}

.news-card-info h3 {
    display: -webkit-box;
    overflow: hidden;
    color: var(--white);
    font-size: 17px;
    line-height: 1.25;
    max-height: calc(1.25em * 2);
    overflow-wrap: break-word;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.news-date {
    margin-top: auto;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.news-button-container {
    display: flex;
    justify-content: center;
    padding-top: 28px;
}

.see-more,
.ticket-btn,
.secondary-btn,
.media-action,
.partner-spotlight-copy a,
.filter-btn,
.squad-filter,
.back-link {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--orange);
    border-radius: 6px;
    background: var(--orange);
    color: var(--black);
    font-weight: 900;
    text-transform: uppercase;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.see-more,
.ticket-btn,
.secondary-btn,
.media-action,
.partner-spotlight-copy a,
.back-link {
    padding: 0 20px;
}

.secondary-btn,
.media-action,
.partner-spotlight-copy a {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
}

button.secondary-btn {
    appearance: none;
}

.see-more:hover,
.ticket-btn:hover,
.secondary-btn:hover,
.media-action:hover,
.partner-spotlight-copy a:hover,
.filter-btn:hover,
.filter-btn.active,
.squad-filter:hover,
.squad-filter.active,
.back-link:hover {
    border-color: var(--white);
    background: var(--white);
    color: var(--black);
}

.filter-btn {
    position: relative;
    overflow: hidden;
}

.filter-btn.active {
    box-shadow: 0 12px 28px rgba(245, 130, 32, 0.22);
}

.filter-btn.active::after {
    position: absolute;
    right: 12px;
    bottom: 6px;
    left: 12px;
    height: 2px;
    border-radius: 999px;
    background: var(--orange);
    content: "";
}

.loading-state {
    display: grid;
    min-height: 180px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.07);
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.loading-card,
.loading-hero {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
}

.loading-hero {
    min-height: 430px;
}

.loading-card {
    display: grid;
    grid-template-rows: auto 146px;
}

#news-container .loading-card {
    grid-template-rows: auto 112px;
}

#news-container .loading-card .loading-image {
    aspect-ratio: 9 / 5;
}

.loading-image,
.loading-line {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
}

.loading-image {
    aspect-ratio: 9 / 5;
    height: auto;
}

#news-container .loading-card .loading-image {
    height: auto;
}

.loading-lines {
    display: grid;
    align-content: end;
    gap: 10px;
    padding: 14px;
    background: var(--news-title-fade);
}

.loading-line {
    height: 12px;
    border-radius: 999px;
}

.loading-line.short {
    width: 62%;
}

.loading-hero .loading-image {
    height: 100%;
    min-height: 430px;
}

.loading-image::after,
.loading-line::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
    content: "";
    transform: translateX(-100%);
    animation: loading-sheen 1.35s ease-in-out infinite;
}

@keyframes loading-sheen {
    to {
        transform: translateX(100%);
    }
}

/* Match and results */
.next-match,
.recent-results,
.league-table-section,
.sponsors-section,
.community-section {
    padding: 36px 0;
}

.sponsors-section .container {
    width: 100%;
}

.match-card-home,
.match-card {
    display: grid;
    justify-items: center;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(9, 14, 16, 0.96);
    box-shadow: 0 24px 80px rgba(15, 15, 12, 0.22);
    padding: 28px;
}

.match-title {
    margin-bottom: 22px;
    color: var(--white);
    font-size: 26px;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
}

.match-display {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 24px;
    align-items: center;
}

.team {
    display: grid;
    justify-items: center;
    gap: 12px;
    min-width: 0;
    text-align: center;
}

.team img {
    width: 92px;
    height: 92px;
    object-fit: contain;
}

.team span {
    max-width: 100%;
    overflow-wrap: anywhere;
    font-size: 18px;
    font-weight: 900;
    text-transform: uppercase;
}

.match-info {
    display: grid;
    min-width: 150px;
    justify-items: center;
    gap: 8px;
    color: var(--muted);
    text-align: center;
}

.vs {
    display: grid;
    width: 64px;
    height: 64px;
    place-items: center;
    border-radius: 8px;
    background: var(--orange);
    color: var(--black);
    font-size: 21px;
    font-weight: 900;
}

.ticket-btn {
    display: flex;
    width: min(100%, 220px);
    margin: 28px auto 0;
}

.match-centre-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
}

.match-centre-actions .ticket-btn,
.match-centre-actions .secondary-btn {
    width: min(100%, 220px);
    margin: 0;
}

.calendar-download-btn:disabled {
    cursor: wait;
    opacity: 0.7;
}

.match-centre-panel,
.guide-match-panel {
    display: grid;
    justify-items: center;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--match-solid);
    box-shadow: 0 24px 80px rgba(15, 15, 12, 0.22);
    padding: 28px;
}

.match-centre-topline {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 16px;
    width: 100%;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
}

.match-centre-topline strong {
    color: var(--orange);
}

.lineup-section,
.matchday-essentials,
.fixtures-results-section,
.media-list {
    padding: 36px 0;
}

.section-heading-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.section-heading-row .section-title {
    margin-bottom: 0;
    text-align: left;
}

.section-heading-row .section-title::after {
    margin-left: 0;
}

.lineup-formation,
.partner-tier {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(245, 130, 32, 0.4);
    border-radius: 6px;
    background: rgba(245, 130, 32, 0.12);
    color: var(--orange);
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.lineup-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
    gap: 18px;
    align-items: stretch;
}

.lineup-pitch {
    position: relative;
    min-height: 680px;
    border: 3px solid rgba(255, 255, 255, 0.78);
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px) center / 50% 100% no-repeat,
        repeating-linear-gradient(90deg, rgba(20, 129, 73, 0.92) 0 12.5%, rgba(17, 111, 64, 0.92) 12.5% 25%);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.16), 0 24px 70px rgba(15, 15, 12, 0.25);
    overflow: hidden;
}

.lineup-pitch::before,
.lineup-pitch::after {
    position: absolute;
    left: 50%;
    border: 2px solid rgba(255, 255, 255, 0.72);
    content: "";
    transform: translateX(-50%);
}

.lineup-pitch::before {
    top: 50%;
    width: 22%;
    aspect-ratio: 1;
    border-radius: 999px;
    transform: translate(-50%, -50%);
}

.lineup-pitch::after {
    bottom: -2px;
    width: 38%;
    height: 18%;
    border-bottom: 0;
}

.pitch-player {
    position: absolute;
    z-index: 2;
    display: grid;
    width: min(132px, 25%);
    justify-items: center;
    gap: 4px;
    color: var(--white);
    text-align: center;
    transform: translate(-50%, -50%);
}

.pitch-player span {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 2px solid rgba(255, 255, 255, 0.75);
    border-radius: 999px;
    background: var(--orange);
    color: var(--black);
    font-size: 11px;
    font-weight: 900;
}

.pitch-player strong {
    max-width: 100%;
    border-radius: 6px;
    background: rgba(18, 10, 6, 0.74);
    padding: 4px 7px;
    font-size: 12px;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.lineup-bench {
    display: grid;
    align-content: start;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(28, 15, 8, 0.9);
    padding: 18px;
}

.lineup-bench h3 {
    color: var(--white);
    font-size: 18px;
    text-transform: uppercase;
}

.lineup-substitutes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lineup-substitutes span {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.07);
    color: var(--muted);
    padding: 7px 9px;
    font-size: 13px;
    font-weight: 800;
}

.lineup-substitutes p {
    color: var(--muted);
}

.archive-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 18px;
}

.archive-toolbar label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.archive-toolbar select {
    min-height: 42px;
    min-width: 220px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(28, 15, 8, 0.94);
    color: var(--white);
    padding: 0 12px;
    font-weight: 800;
}

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

.info-card,
.media-card {
    display: grid;
    align-content: start;
    gap: 10px;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(28, 15, 8, 0.9);
    padding: 18px;
}

.info-card span,
.media-card p {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.info-card strong {
    color: var(--white);
    font-size: 20px;
    line-height: 1.2;
}

.info-card p {
    color: var(--muted);
}

.info-card a {
    color: var(--orange);
    font-weight: 900;
}

.countdown-container {
    display: grid;
    grid-template-columns: repeat(4, minmax(74px, 1fr));
    gap: 12px;
    width: min(100%, 520px);
    margin: 16px auto 0;
}

.countdown-container h3 {
    grid-column: 1 / -1;
    justify-self: center;
    width: 100%;
    color: var(--white);
    font-size: 24px;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
}

.time-block {
    display: grid;
    min-height: 82px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
}

.time-block span {
    color: var(--orange);
    font-size: 26px;
    font-weight: 900;
}

.time-block label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.results-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.result-card {
    flex: 1 1 320px;
    max-width: 350px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(9, 14, 16, 0.96);
    overflow: hidden;
}

.result-header {
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
}

.result-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 18px 14px;
    background: rgba(9, 14, 16, 0.96);
}

.result-team {
    display: grid;
    place-items: center;
}

.result-team img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.score {
    min-width: 74px;
    color: var(--white);
    font-size: 24px;
    font-weight: 900;
    text-align: center;
}

.fixture-card .score {
    color: var(--white);
    font-size: 20px;
}

.fixture-teams {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
    padding: 0 14px 14px;
    background: rgba(9, 14, 16, 0.96);
    color: var(--white);
    font-size: 12px;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
}

.fixture-teams span {
    overflow-wrap: anywhere;
}

/* Tables */
.table-container {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
}

#classification-table {
    width: 100%;
    min-width: 650px;
    border-collapse: collapse;
}

#classification-table th,
#classification-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

#classification-table th {
    background: rgba(245, 130, 32, 0.16);
    color: var(--orange);
    font-size: 13px;
    text-transform: uppercase;
}

#classification-table tbody tr:last-child td {
    border-bottom: 0;
}

.text-left,
.team-name-cell {
    text-align: left;
}

.team-name {
    font-weight: 900;
}

.pts-col {
    color: var(--orange);
    font-weight: 900;
}

.highlight-team {
    background: rgba(245, 130, 32, 0.18);
}

/* Logos */
.sponsors-grid,
.community-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    align-items: stretch;
}

.sponsor-item {
    display: grid;
    flex: 0 0 170px;
    width: 170px;
    height: 120px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(255, 250, 242, 0.98);
    padding: 18px;
}

a.sponsor-item,
a.partner-spotlight-logo {
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

a.sponsor-item:hover,
a.partner-spotlight-logo:hover {
    border-color: rgba(245, 130, 32, 0.5);
    box-shadow: 0 14px 28px rgba(17, 23, 25, 0.14);
    transform: translateY(-2px);
}

.sponsor-item img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 150px;
    max-height: 82px;
    justify-self: center;
    align-self: center;
    object-fit: contain;
    object-position: center;
    margin: auto;
}

.sponsors-grid.sponsors-grid-tiered {
    display: grid;
    gap: 20px;
}

.sponsor-tier-group {
    display: grid;
    gap: 12px;
    justify-items: center;
}

.sponsor-tier-group h3 {
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
}

.sponsor-tier-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.partner-spotlight-panel {
    display: grid;
    grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
    gap: 22px;
    align-items: center;
    width: min(100%, 760px);
    margin: 0 auto 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(28, 15, 8, 0.88);
    padding: 20px;
}

.partner-spotlight-logo {
    display: grid;
    min-height: 140px;
    place-items: center;
    border-radius: 8px;
    background: rgba(255, 250, 242, 0.98);
    padding: 18px;
}

.partner-spotlight-logo img {
    width: 100%;
    max-width: 210px;
    max-height: 100px;
    object-fit: contain;
    object-position: center;
}

.partner-spotlight-copy {
    display: grid;
    gap: 8px;
}

.partner-spotlight-copy h3 {
    color: var(--white);
    font-size: 26px;
    line-height: 1.15;
}

.partner-spotlight-copy p {
    color: var(--muted);
}

.media-feature {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 22px;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(28, 15, 8, 0.9);
    overflow: hidden;
}

.media-feature-image {
    min-height: 340px;
}

.media-feature-image img,
.media-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-feature-copy {
    display: grid;
    align-content: center;
    gap: 14px;
    padding: 28px;
}

.media-feature-copy h2 {
    color: var(--white);
    font-size: 32px;
    line-height: 1.12;
}

.media-feature-copy p {
    color: var(--muted);
    font-weight: 800;
    text-transform: uppercase;
}

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

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

.media-card img {
    aspect-ratio: 16 / 9;
    height: auto;
}

.media-card-copy {
    display: grid;
    gap: 10px;
    padding: 16px;
}

.media-card-copy h3 {
    color: var(--white);
    font-size: 19px;
    line-height: 1.22;
}

/* Squad, staff and management */
.squad-page {
    padding: 44px 0;
}

.squad-header {
    margin-bottom: 26px;
    text-align: center;
}

.squad-header h1 {
    color: var(--white);
    font-size: 36px;
    line-height: 1.15;
    text-transform: uppercase;
}

.squad-header p {
    margin-top: 6px;
    color: var(--orange);
    font-weight: 800;
    text-transform: uppercase;
}

.squad-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 26px;
}

.squad-filter,
.filter-btn {
    min-width: 116px;
    padding: 0 14px;
    background: transparent;
    color: var(--white);
}

.squad-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 18px;
}

.squad-grid.squad-grouped {
    grid-template-columns: 1fr;
    gap: 34px;
}

.squad-position-section {
    display: grid;
    gap: 14px;
}

.squad-position-title {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--white);
    font-size: 24px;
    font-weight: 900;
    text-transform: uppercase;
}

.squad-position-title::after {
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.16);
    content: "";
}

.squad-position-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.squad-grid .loading-state,
.archive-news .loading-state,
#news-container .loading-state {
    grid-column: 1 / -1;
}

.player-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #111111;
}

.player-img-container {
    position: relative;
    aspect-ratio: 4 / 5;
    background: linear-gradient(180deg, #232323, #101010);
}

.player-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.player-img.image-fallback {
    object-fit: contain;
    object-position: center;
    padding: 34px;
    background: linear-gradient(180deg, rgba(255, 250, 242, 0.96), rgba(245, 130, 32, 0.18));
}

.player-number-badge,
.management-badge,
.staff-role-badge {
    position: absolute;
    right: 12px;
    bottom: 12px;
    max-width: calc(100% - 24px);
    padding: 7px 10px;
    border-radius: 6px;
    background: var(--orange);
    color: var(--black);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.player-info {
    position: relative;
    min-height: 112px;
    overflow: hidden;
    padding: 18px;
    background: var(--white);
    color: var(--black);
}

.player-pos {
    position: relative;
    display: block;
    color: var(--orange-dark);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.player-name {
    position: relative;
    display: block;
    margin-top: 8px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
}

.player-name strong {
    display: block;
    font-weight: 900;
}

/* Club pages */
.about-page,
.history-page,
.supporters-page,
.article-main,
.archive-page {
    padding: 44px 0;
}

.club-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 28px;
    align-items: center;
    margin-bottom: 26px;
}

.about-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.about-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.club-hero-copy {
    padding: 8px 0;
}

.club-hero-copy h1 {
    margin: 8px 0 12px;
    font-size: 40px;
    line-height: 1.1;
    text-transform: uppercase;
}

.club-hero-copy p:last-child {
    color: #eeeeee;
    font-size: 18px;
}

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

.sections-overlay {
    display: grid;
    min-height: 96px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    font-size: 18px;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.sections-overlay:hover {
    background: var(--orange);
    color: var(--black);
}

.supporters-hero {
    padding: 18px 0 26px;
    text-align: center;
}

.subtitle {
    margin-top: 8px;
    color: var(--muted);
    text-transform: none;
}

.milestones-section,
.honours-section {
    padding: 18px 0 34px;
}

.milestones-container,
#milestones-container {
    display: grid;
    gap: 20px;
}

.milestone-item {
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
}

.milestone-img img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
}

.milestone-text {
    display: grid;
    align-content: center;
    gap: 12px;
    padding: 28px;
}

.milestone-year {
    color: var(--orange);
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
}

.milestone-text h3 {
    font-size: 26px;
    line-height: 1.2;
}

.milestone-text p {
    color: #eeeeee;
}

.honours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 16px;
}

.honour-card {
    min-height: 140px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    padding: 20px;
}

.honour-card h4 {
    color: var(--orange);
    font-size: 22px;
}

.honour-card p {
    margin: 8px 0;
    color: var(--white);
    font-weight: 800;
}

.honour-card span {
    color: var(--muted);
}

/* Archive and article */
.archive-header {
    display: grid;
    gap: 22px;
    padding: 12px 0 28px;
    text-align: center;
}

.archive-header h1,
.article-header-2 h1 {
    font-size: 38px;
    line-height: 1.12;
    text-transform: uppercase;
}

.controls-container {
    display: grid;
    gap: 14px;
}

.search-box input {
    width: min(100%, 560px);
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 8px;
    outline: 0;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    padding: 0 14px;
}

.filter-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.archive-news {
    width: 100%;
    padding-top: 8px;
}

.article-main {
    max-width: 920px;
}

.article-header-1,
.article-header-2,
.article-header-3 {
    text-align: center;
}

.article-category {
    display: inline-flex;
    padding: 7px 10px;
    border-radius: 6px;
    background: var(--orange);
    color: var(--black);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.article-meta {
    margin: 12px 0 22px;
    color: var(--muted);
    font-weight: 700;
}

.article-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: -4px 0 22px;
}

.article-share span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.article-share a,
.article-share button {
    min-height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    padding: 0 12px;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.article-share a {
    display: inline-flex;
    align-items: center;
}

.article-share a:hover,
.article-share button:hover {
    border-color: var(--orange);
    background: var(--orange);
    color: var(--black);
}

#article-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 9 / 5;
    border: 1px solid var(--line);
    border-radius: 8px;
    object-fit: cover;
    object-position: center top;
    background: var(--panel-solid);
}

#article-content {
    display: grid;
    gap: 16px;
    margin: 26px 0;
    color: #eeeeee;
    font-size: 18px;
    line-height: 1.72;
}

#article-content p {
    margin: 0;
    text-align: justify;
    text-align-last: left;
    hyphens: auto;
}

#article-content h2 {
    color: var(--white);
}

.article-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 14px;
    margin: 30px 0 10px;
}

.article-nav-link {
    display: grid;
    min-height: 112px;
    align-content: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    padding: 16px;
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.article-nav-link:hover {
    transform: translateY(-2px);
    border-color: rgba(245, 130, 32, 0.7);
    background: rgba(245, 130, 32, 0.14);
}

.article-nav-link span {
    color: var(--orange);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.article-nav-link strong {
    display: -webkit-box;
    overflow: hidden;
    color: var(--white);
    font-size: 16px;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.article-nav-link.next {
    text-align: right;
}

.article-more {
    margin: 38px 0 22px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
}

.article-more-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.article-more-header h2 {
    color: var(--white);
    font-size: 24px;
    line-height: 1.15;
    text-transform: uppercase;
}

.article-more-header a {
    color: var(--orange);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

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

.article-more-grid .news-card-info {
    height: 154px;
}

.article-actions {
    display: flex;
    justify-content: center;
    margin-top: 26px;
}

.article-main .back-link {
    width: fit-content;
    min-height: 46px;
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}

.article-main .back-link:hover {
    border-color: var(--orange);
    background: var(--orange);
    color: var(--black);
}

/* Reference-style visual system */
body {
    background: #070b0d;
}

.main,
.main-about,
.main-coe {
    background:
        radial-gradient(circle at 20% 0%, rgba(245, 130, 32, 0.16), transparent 34%),
        linear-gradient(180deg, rgba(4, 8, 10, 0.92), rgba(8, 13, 15, 0.98)),
        url("img/background.png") center / cover fixed;
}

.navbar {
    background: linear-gradient(90deg, rgba(7, 10, 12, 0.96), rgba(30, 18, 12, 0.92), rgba(118, 54, 15, 0.86));
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

.home-hero,
.home-match-row,
.home-quick-links {
    width: min(calc(100% - 32px), 1320px);
    margin-inline: auto;
}

.home-hero {
    padding: 22px 0 0;
}

.home-hero .featured-news {
    margin-bottom: 0;
}

.home-hero-card {
    min-height: clamp(500px, 66vw, 680px);
    border-color: rgba(255, 255, 255, 0.12);
    background: #06090b;
    box-shadow: 0 26px 90px rgba(0, 0, 0, 0.42);
}

.home-hero-card img {
    height: clamp(500px, 66vw, 680px);
    min-height: clamp(500px, 66vw, 680px);
    filter: saturate(1.08) contrast(1.04);
}

.home-hero-card::before {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(3, 7, 9, 0.92) 0%, rgba(3, 7, 9, 0.58) 34%, rgba(3, 7, 9, 0.08) 72%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.72));
    content: "";
}

.home-hero-overlay {
    z-index: 2;
    inset: 0;
    display: grid;
    width: min(100%, 680px);
    align-content: center;
    gap: 22px;
    padding: clamp(28px, 6vw, 70px);
    background: transparent;
}

.home-hero-kicker,
.home-hero-story span {
    color: var(--white);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.home-hero-title {
    display: grid;
    gap: 4px;
    max-width: 620px;
    font-family: Impact, "Arial Black", Arial, Helvetica, sans-serif;
    font-size: clamp(44px, 7vw, 86px);
    font-weight: 900;
    line-height: 0.92;
    text-transform: uppercase;
}

.home-hero-title em {
    color: var(--orange);
    font-family: "Arial Black", Arial, Helvetica, sans-serif;
    font-size: 0.82em;
    font-style: italic;
}

.home-hero-story {
    display: grid;
    width: fit-content;
    max-width: min(100%, 460px);
    gap: 6px;
    border-left: 4px solid var(--orange);
    background: rgba(8, 12, 14, 0.72);
    padding: 12px 16px;
}

.home-hero-story strong {
    display: -webkit-box;
    overflow: hidden;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.home-match-row {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.85fr);
    gap: 18px;
    align-items: stretch;
    margin-top: -76px;
}

.home-match-row .next-match,
.home-match-row .recent-results {
    width: 100%;
    padding: 0;
}

.home-match-row .match-card-home,
.home-match-row .result-card {
    height: 100%;
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(9, 14, 16, 0.96);
    box-shadow: 0 20px 58px rgba(0, 0, 0, 0.36);
}

.home-match-row .match-card-home {
    align-content: start;
    padding: 24px;
}

.home-match-row .match-title,
.home-match-row .section-title {
    justify-self: start;
    margin-bottom: 18px;
    color: var(--white);
    font-size: 18px;
    text-align: left;
}

.home-match-row .match-title::after,
.home-match-row .section-title::after {
    width: 46px;
    height: 2px;
    margin: 9px 0 0;
}

.home-match-row .section-meta {
    display: none;
}

.home-match-row .match-display {
    gap: 18px;
}

.home-match-row .team img {
    width: 74px;
    height: 74px;
}

.home-match-row .team span {
    font-size: 18px;
}

.home-match-row .vs {
    width: 52px;
    height: 52px;
    background: transparent;
    color: var(--white);
}

.home-match-row .countdown-container {
    grid-template-columns: repeat(4, minmax(58px, 1fr));
    gap: 8px;
    width: min(100%, 420px);
}

.home-match-row .time-block {
    min-height: 64px;
    background: rgba(255, 255, 255, 0.06);
}

.home-match-row .time-block span {
    font-size: 21px;
}

.home-match-row .results-grid {
    display: block;
}

.home-match-row .result-card {
    display: grid;
    max-width: none;
}

.home-match-row .result-header {
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted);
}

.home-match-row .result-main,
.home-match-row .fixture-teams {
    background: transparent;
}

.home-match-row .result-main {
    padding: 26px 16px;
}

.home-match-row .score {
    font-size: 34px;
}

.latest-news-section {
    padding-top: 34px;
}

.latest-news-header,
.media-list .section-title {
    margin-bottom: 18px;
}

.latest-news-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
}

.latest-news-header .section-title {
    margin-bottom: 0;
    text-align: left;
}

.latest-news-header .section-title::after {
    margin-left: 0;
}

.latest-news-header a {
    color: var(--orange);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.latest-news-section .news-button-container {
    display: none;
}

#news-container.news-grid {
    gap: 14px;
}

#news-container .news-card {
    background: var(--news-title-fade);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
}

#news-container .news-card-info {
    background: var(--news-title-fade);
}

#news-container .news-date {
    color: rgba(255, 250, 242, 0.62);
}

.sponsors-section {
    width: 100%;
    max-width: none;
    margin: 42px 0 0;
    background: #f4f1eb;
    color: #111719;
    padding: 34px 0;
}

.sponsors-section .container {
    width: min(calc(100% - 32px), var(--max-width));
    margin-inline: auto;
}

.sponsors-section .section-title {
    color: #111719;
    text-align: left;
}

.sponsors-section .section-title::after {
    margin-left: 0;
}

.partner-spotlight-panel {
    width: min(100%, 760px);
    margin: 0 0 20px;
    border-color: rgba(17, 23, 25, 0.12);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: none;
}

.partner-spotlight-logo {
    background: #ffffff;
}

.partner-spotlight-copy h3 {
    color: #111719;
}

.partner-spotlight-copy p {
    color: #4d5659;
}

.sponsor-tier-group h3,
.sponsors-section .eyebrow {
    color: #8f3e08;
}

.sponsors-section .sponsor-item {
    border-color: rgba(17, 23, 25, 0.12);
    background: #ffffff;
}

.sponsors-section .sponsors-grid {
    justify-content: flex-start;
}

.community-section {
    width: min(calc(100% - 32px), 1320px);
}

.community-grid .sponsor-item {
    background: rgba(9, 14, 16, 0.92);
}

.home-quick-links {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(9, 14, 16, 0.94);
    overflow: hidden;
}

.home-quick-links a {
    display: grid;
    min-height: 104px;
    align-content: center;
    gap: 7px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding: 18px;
}

.home-quick-links a:last-child {
    border-right: 0;
}

.home-quick-links span {
    color: var(--orange);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.home-quick-links strong {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.25;
}

.home-quick-links a:hover {
    background: rgba(245, 130, 32, 0.12);
}

.match-centre-page .page-hero,
.club-tv-page .page-hero,
.coe-page .club-hero,
.sheet-hero {
    overflow: hidden;
    border: 1px solid rgba(49, 52, 54);
    border-radius: 8px;
    background-image:
        linear-gradient(90deg, rgba(6, 10, 12, 0.96), rgba(6, 10, 12, 0.62)),
        var(--page-hero-image, url("img/news5.jpg"));
    background-position:
        center,
        var(--page-hero-position, center);
    background-size: cover, cover;
    background-repeat: no-repeat;
    padding: clamp(32px, 5vw, 58px);
    text-align: left;
    aspect-ratio: 3/1;
}

.match-centre-page .page-hero h1,
.club-tv-page .page-hero h1,
.coe-page .club-hero h1,
.sheet-hero h1 {
    max-width: 720px;
    font-family: Impact, "Arial Black", Arial, Helvetica, sans-serif;
}

.match-centre-page .page-hero p,
.club-tv-page .page-hero p,
.sheet-hero p {
    margin-inline: 0;
}

.club-hero.sheet-hero {
    grid-template-columns: minmax(0, 1fr);
    aspect-ratio: 3/1;
    align-content: center;
}

.club-hero.sheet-hero .about-card {
    display: none;
}

.club-hero.sheet-hero .club-hero-copy {
    max-width: 640px;
}

.supporters-hero.sheet-hero {
    display: grid;
    aspect-ratio: 3/1;
    align-content: center;
    gap: 12px;
    margin-bottom: 26px;
    text-align: left;
}

.supporters-hero.sheet-hero .section-title {
    margin-bottom: 0;
    text-align: left;
}

.supporters-hero.sheet-hero .section-title::after {
    margin-left: 0;
}

.match-centre-panel,
.guide-match-panel {
    background: rgba(8, 13, 15, 0.94);
}

.match-centre-panel .vs,
.guide-match-panel .vs {
    background: transparent;
    color: var(--white);
    font-size: 30px;
}

.essentials-grid .info-card,
.lineup-bench,
.table-container,
.media-card,
.honour-card,
.milestone-item {
    background: rgba(9, 14, 16, 0.92);
}

.media-feature {
    background: rgba(9, 14, 16, 0.94);
}

.media-feature-image {
    min-height: 380px;
}

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

.media-card img {
    aspect-ratio: 9/5;
}

.media-card-copy {
    background: rgba(9, 14, 16, 0.98);
}

.media-card-copy .category-tag {
    background: transparent;
    color: var(--orange);
    padding: 0;
}

.coe-page .club-hero {
    grid-template-columns: minmax(0, 1fr);
    aspect-ratio: 3/1;
    align-content: center;
    margin-bottom: 0;
}

.coe-page .about-card {
    display: none;
}

.coe-page .club-hero-copy {
    max-width: 640px;
}

.hero-inline-link {
    display: inline-flex;
    width: fit-content;
    min-height: 42px;
    align-items: center;
    margin-top: 18px;
    border-radius: 6px;
    background: var(--orange);
    color: var(--black);
    padding: 0 18px;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.academy-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid var(--line);
    border-top: 0;
    border-radius: 0 0 8px 8px;
    background: rgba(9, 14, 16, 0.94);
    margin-bottom: 24px;
}

.academy-stats div {
    display: grid;
    min-height: 104px;
    place-items: center;
    align-content: center;
    gap: 4px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.academy-stats div:last-child {
    border-right: 0;
}

.academy-stats strong {
    color: var(--orange);
    font-size: 28px;
    font-weight: 900;
}

.academy-stats span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.academy-philosophy-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 24px;
    align-items: center;
    margin-bottom: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(9, 14, 16, 0.92);
    overflow: hidden;
}

.academy-philosophy-panel img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
}

.academy-philosophy-copy {
    display: grid;
    gap: 12px;
    padding: clamp(22px, 4vw, 34px);
}

.academy-philosophy-copy h2 {
    color: var(--white);
    font-family: Impact, "Arial Black", Arial, Helvetica, sans-serif;
    font-size: clamp(32px, 5vw, 56px);
    line-height: 0.98;
    text-transform: uppercase;
}

.academy-philosophy-copy p {
    color: var(--muted);
    font-size: 16px;
}

.player-card {
    background: rgba(9, 14, 16, 0.96);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.26);
}

.player-card-link {
    display: block;
    height: 100%;
    color: inherit;
}

.player-card-link:hover {
    border-color: rgba(245, 130, 32, 0.75);
    transform: translateY(-3px);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.player-img-container {
    background:
        linear-gradient(180deg, rgba(245, 130, 32, 0.18), rgba(9, 14, 16, 0.96)),
        #12191b;
}

.player-info {
    min-height: 118px;
    background: rgba(9, 14, 16, 0.98);
    color: var(--white);
}

.player-pos {
    color: var(--orange);
}

.player-name {
    color: var(--white);
}

.player-profile-page {
    width: min(calc(100% - 32px), var(--max-width));
    margin-inline: auto;
    padding: 34px 0 44px;
}

.player-profile-shell {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        radial-gradient(circle at 12% 18%, rgba(245, 130, 32, 0.2), transparent 30%),
        linear-gradient(90deg, rgba(7, 11, 13, 0.98), rgba(37, 22, 12, 0.96));
}

.player-profile-hero {
    display: grid;
    grid-template-columns: minmax(260px, 0.95fr) minmax(0, 1.25fr);
    gap: clamp(20px, 4vw, 44px);
    align-items: stretch;
    min-height: 520px;
}

.player-profile-image {
    position: relative;
    display: grid;
    align-items: end;
    min-height: 520px;
    background:
        linear-gradient(180deg, rgba(245, 130, 32, 0.2), rgba(7, 11, 13, 0.95)),
        #161b1d;
    overflow: hidden;
}

.player-profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.player-profile-image img.image-fallback {
    object-fit: contain;
    padding: 46px;
    background: rgba(255, 250, 242, 0.96);
}

.player-profile-details {
    display: grid;
    align-content: center;
    gap: 22px;
    padding: clamp(26px, 5vw, 54px) clamp(22px, 4vw, 46px);
}

.player-profile-name-row {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 16px;
}

.player-profile-number {
    color: var(--orange);
    font-family: Impact, "Arial Black", Arial, Helvetica, sans-serif;
    font-size: clamp(56px, 9vw, 96px);
    line-height: 0.85;
}

.player-profile-name {
    color: var(--white);
    font-family: Impact, "Arial Black", Arial, Helvetica, sans-serif;
    font-size: clamp(36px, 6vw, 72px);
    line-height: 0.92;
    text-transform: uppercase;
}

.player-profile-role {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.player-profile-role span:first-child {
    color: var(--white);
}

.player-profile-table {
    display: grid;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.player-profile-table div {
    display: grid;
    grid-template-columns: minmax(120px, 0.45fr) minmax(0, 1fr);
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.player-profile-table dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.player-profile-table dd {
    color: var(--white);
    font-weight: 800;
}

.player-profile-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: rgba(4, 8, 10, 0.72);
    padding: 10px clamp(18px, 4vw, 34px);
}

.player-profile-tabs span {
    color: var(--muted);
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.player-profile-tabs span:first-child {
    color: var(--orange);
    border-bottom: 2px solid var(--orange);
}

.player-profile-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
    gap: 18px;
    padding: clamp(18px, 4vw, 34px);
}

.player-profile-panel {
    display: grid;
    gap: 12px;
    align-content: start;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(9, 14, 16, 0.86);
    padding: 18px;
}

.player-profile-panel h2,
.player-profile-panel h3 {
    color: var(--white);
    font-size: 18px;
    text-transform: uppercase;
}

.player-profile-panel p,
.player-honours-list {
    color: var(--muted);
}

.player-honours-list {
    display: grid;
    gap: 10px;
    list-style: none;
}

.player-honours-list li {
    border-left: 3px solid var(--orange);
    padding-left: 10px;
    font-weight: 800;
}

.player-profile-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 8px;
}

.player-profile-gallery img {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 6px;
    object-fit: cover;
}

.player-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.player-socials a {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    border: 1px solid rgba(245, 130, 32, 0.44);
    border-radius: 6px;
    color: var(--orange);
    padding: 0 10px;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.main-footer {
    background: #090d0f;
}

/* Footer */
.main-footer {
    border-top: 1px solid var(--line);
    background: #171b18;
}

.footer-container {
    display: grid;
    width: min(calc(100% - 32px), var(--max-width));
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    align-items: center;
    margin-inline: auto;
    padding: 26px 0;
}

.footer-section h3 {
    margin-bottom: 8px;
    color: var(--orange);
    font-size: 16px;
    text-transform: uppercase;
}

.contact-info p,
.contact-info a {
    color: var(--muted);
}

.footer-logo img {
    width: auto;
    height: 74px;
}

.social-links {
    text-align: right;
}

.social-icons-grid {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.social-icons-grid img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    filter: invert(1);
}

.scroll-top-btn {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 120;
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    background: var(--orange);
    color: var(--black);
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.scroll-top-btn.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: var(--white);
}

.footer-bottom {
    padding: 12px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

@media (max-width: 1120px) {
    .navbar {
        padding-inline: 18px;
    }

    .nav-menu a,
    .dropbtn {
        font-size: 12px;
        padding-inline: 8px;
    }
}

@media (max-width: 1024px) {
    :root {
        --nav-height: 72px;
    }

    .menu-hamburger-btn {
        display: flex;
    }

    .menu {
        position: fixed;
        top: var(--nav-height);
        right: 0;
        left: 0;
        height: calc(100dvh - var(--nav-height));
        z-index: 110;
        display: none;
        width: 100%;
        align-items: start;
        grid-template-columns: minmax(0, 520px);
        justify-content: center;
        overflow-y: auto;
        background: var(--warm-fade-vertical);
        padding: 18px max(16px, calc((100vw - 520px) / 2)) 28px;
    }

    .menu.open,
    body.menu-open .navbar .menu {
        display: grid;
    }

    .nav-menu {
        display: grid;
        width: 100%;
        align-content: start;
        align-items: stretch;
        justify-content: stretch;
        justify-self: stretch;
        gap: 6px;
    }

    .nav-menu > li {
        display: block;
        width: 100%;
    }

    .nav-menu a,
    .dropbtn {
        width: 100%;
        justify-content: space-between;
        min-height: 44px;
        padding: 11px 12px;
        font-size: 14px;
    }

    .dropdown-content {
        position: static;
        display: grid !important;
        min-width: 0;
        margin: 0 0 12px;
        padding: 0 0 0 14px;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .dropdown-content a {
        min-height: 36px;
        padding: 8px 10px;
        color: var(--muted);
        text-transform: none;
    }

    .nav-utility {
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr);
        width: 100%;
        align-items: center;
        gap: 10px;
        margin-left: 0;
        padding-top: 12px;
    }

    .shopping-cart a {
        display: grid;
        width: 44px;
        height: 44px;
        place-items: center;
        padding: 0;
        border: 0;
        border-radius: 8px;
        background: transparent;
    }

    .nav-icons {
        min-width: 0;
        width: 100%;
    }

    .search-container,
    .search-container.active {
        min-width: 0;
        width: 100%;
        border: 0;
        background: rgba(255, 255, 255, 0.06);
    }

    #search-input,
    .search-container.active #search-input {
        min-width: 0;
        width: 100%;
        padding: 0 8px 0 12px;
        opacity: 1;
    }

    .search-results-dropdown {
        left: 0;
        right: auto;
        width: 100%;
    }

    .club-hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .main,
    .main-about,
    .main-coe {
        background-attachment: scroll;
    }

    .section-title,
    .squad-header h1,
    .archive-header h1,
    .article-header-2 h1,
    .page-hero h1,
    .club-hero-copy h1 {
        font-size: 28px;
    }

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

    .featured-article-card,
    .featured-article-card img {
        min-height: 360px;
    }

    .featured-overlay {
        padding: 64px 20px 22px;
    }

    .featured-overlay h1 {
        font-size: 28px;
    }

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

    #news-container.news-grid,
    .article-more-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .article-more-header {
        align-items: start;
        flex-direction: column;
    }

    .match-card-home,
    .match-card {
        padding: 18px;
    }

    .match-display {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .team img {
        width: 78px;
        height: 78px;
    }

    .countdown-container {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
    }

    .time-block {
        min-height: 64px;
    }

    .time-block span {
        font-size: 20px;
    }

    .time-block label {
        font-size: 10px;
    }

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

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

    .lineup-pitch {
        min-height: 560px;
    }

    .media-feature,
    .partner-spotlight-panel,
    .academy-philosophy-panel,
    .player-profile-hero,
    .player-profile-body {
        grid-template-columns: 1fr;
    }

    .player-profile-image,
    .player-profile-hero {
        min-height: 0;
    }

    .player-profile-image {
        aspect-ratio: 4 / 5;
    }

    .media-feature-image {
        min-height: 260px;
    }

    .milestone-item {
        grid-template-columns: 1fr;
    }

    .milestone-img img {
        min-height: 220px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .social-links {
        text-align: center;
    }

    .social-icons-grid {
        justify-content: center;
    }
}

@media (max-width: 520px) {
    .container,
    .news,
    .next-match,
    .recent-results,
    .league-table-section,
    .sponsors-section,
    .community-section,
    .lineup-section,
    .fixtures-results-section,
    .squad-page,
    .history-page,
    .supporters-page,
    .about-page,
    .article-main,
    .archive-page,
    .match-centre-page,
    .matchday-guide-page,
    .club-tv-page {
        width: min(calc(100% - 24px), var(--max-width));
    }

    .logo-image img {
        height: 52px;
    }

    .logo-image a::after {
        display: none;
    }

    .news-grid,
    #news-container.news-grid,
    .article-more-grid,
    .squad-grid,
    .essentials-grid,
    .media-grid,
    .sections-grid,
    .honours-grid {
        grid-template-columns: 1fr;
    }

    .match-centre-actions .ticket-btn,
    .match-centre-actions .secondary-btn {
        width: 100%;
    }

    .section-heading-row {
        justify-content: center;
        text-align: center;
    }

    .section-heading-row .section-title {
        text-align: center;
    }

    .section-heading-row .section-title::after {
        margin-left: auto;
    }

    .lineup-pitch {
        min-height: 520px;
    }

    .pitch-player {
        width: min(116px, 31%);
    }

    .pitch-player strong {
        font-size: 11px;
    }

    .filter-btn,
    .squad-filter {
        width: 100%;
    }

    .result-main {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        gap: 10px;
        padding-inline: 12px;
    }
}

@media (max-width: 1120px) {
    .home-match-row {
        grid-template-columns: 1fr;
        margin-top: -42px;
    }

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

@media (max-width: 760px) {
    .home-hero-card,
    .home-hero-card img {
        height: auto;
        min-height: 520px;
    }

    .home-hero-overlay {
        align-content: end;
        width: 100%;
        padding: 28px;
    }

    .featured-overlay .home-hero-title {
        font-size: clamp(42px, 12vw, 62px);
    }

    .home-match-row {
        margin-top: 18px;
    }

    .home-match-row .match-display {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    }

    .home-match-row .team img {
        width: 62px;
        height: 62px;
    }

    .home-match-row .team span {
        font-size: 14px;
    }

    .home-match-row .match-info {
        min-width: 74px;
        font-size: 12px;
    }

    .home-match-row .vs {
        width: 42px;
        height: 42px;
        font-size: 17px;
    }

    .latest-news-header {
        align-items: start;
        flex-direction: column;
    }

    .home-quick-links,
    .academy-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-quick-links a,
    .academy-stats div {
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
}

@media (max-width: 520px) {
    .home-hero,
    .home-match-row,
    .home-quick-links,
    .community-section {
        width: min(calc(100% - 24px), var(--max-width));
    }

    .home-hero-card,
    .home-hero-card img {
        min-height: 500px;
    }

    .featured-overlay .home-hero-title {
        font-size: 42px;
    }

    .home-hero-story {
        width: 100%;
    }

    .home-match-row .match-display {
        gap: 8px;
    }

    .academy-stats,
    .home-quick-links {
        grid-template-columns: 1fr;
    }

    .countdown-container,
    .home-match-row .countdown-container {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 6px;
    }

    .time-block,
    .home-match-row .time-block {
        min-height: 56px;
    }

    .time-block span,
    .home-match-row .time-block span {
        font-size: 18px;
    }

    .time-block label {
        font-size: 9px;
    }

    .sponsors-section .section-title,
    .latest-news-header .section-title {
        text-align: center;
    }

    .sponsors-section {
        width: 100%;
        max-width: none;
    }

    .sponsors-section .section-title::after,
    .latest-news-header .section-title::after {
        margin-left: auto;
    }

    .sponsors-section .sponsors-grid {
        justify-content: center;
    }

    .player-profile-table div {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
