:root {
    --bg: #f3f6f5;
    --surface: #ffffff;
    --surface-2: #eef3f0;
    --ink: #111827;
    --muted: #64748b;
    --line: #dbe4df;
    --dark: #07130f;
    --dark-2: #10251d;
    --primary: #0f8b5f;
    --primary-dark: #0a6847;
    --accent: #e11d48;
    --gold: #f4b740;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.11);
    --radius: 8px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
}

html {
    background: var(--dark);
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.site-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1;
}

.container {
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
}

.top-strip {
    background: var(--accent);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.top-strip__inner {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    overflow: hidden;
    white-space: nowrap;
}

.live-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.18);
    flex: 0 0 auto;
}

.ticker {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.ticker__track {
    display: flex;
    width: max-content;
    gap: 34px;
    animation: ticker-scroll 28s linear infinite;
}

.ticker__track span {
    flex: 0 0 auto;
}

@keyframes ticker-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.header-inner {
    min-height: 84px;
    display: grid;
    grid-template-columns: minmax(250px, 330px) 1fr auto;
    align-items: center;
    gap: 18px;
}

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

.brand-logo {
    width: min(150px, 42vw);
    height: 150px;
    object-fit: contain;
    object-position: left center;
    flex: 0 0 auto;
    border-radius: 10px;
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-size: 13px;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.brand small {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.1;
}

.main-nav {
    justify-self: center;
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-nav a {
    padding: 10px 12px;
    border-radius: var(--radius);
    color: #27364a;
    font-size: 14px;
    font-weight: 800;
}

.main-nav a:hover {
    background: var(--surface-2);
    color: var(--primary-dark);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input {
    width: 180px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 10px 12px;
    background: #fff;
}

.header-search button,
.btn,
.btn-booking,
#copyBtn,
.admin-form button,
.admin-card button {
    border: 0;
    border-radius: var(--radius);
    padding: 11px 16px;
    background: var(--primary);
    color: #fff;
    font-weight: 900;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.header-search button:hover,
.btn:hover,
.btn-booking:hover,
#copyBtn:hover,
.admin-form button:hover,
.admin-card button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(15, 139, 95, 0.22);
}

.btn-secondary {
    background: #14213d;
}

.btn-secondary:hover {
    background: #0b1222;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    padding: 9px;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--ink);
}

.home-hero {
    background:
        linear-gradient(120deg, rgba(7, 19, 15, 0.94), rgba(7, 19, 15, 0.78)),
        radial-gradient(circle at 80% 10%, rgba(244, 183, 64, 0.22), transparent 30%);
    color: #fff;
    padding: 58px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.8fr);
    gap: 24px;
    align-items: stretch;
}

.hero-story,
.hero-panel,
.panel,
.league-card,
.booking-card,
.admin-card,
.stat-card {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero-story {
    min-height: 390px;
    padding: clamp(28px, 6vw, 60px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background:
        linear-gradient(180deg, rgba(7, 19, 15, 0.05), rgba(7, 19, 15, 0.78)),
        linear-gradient(135deg, #1f3b2f, #07130f);
    overflow: hidden;
}

.hero-story h1 {
    max-width: 780px;
    margin: 8px 0 14px;
    font-size: clamp(36px, 6vw, 66px);
    line-height: 1;
}

.hero-story p {
    max-width: 680px;
    color: #d7e5df;
    font-size: 18px;
    margin: 0 0 24px;
}

.hero-panel {
    background: #fff;
    color: var(--ink);
    padding: 24px;
}

.hero-panel h2 {
    margin: 6px 0 18px;
    font-size: 26px;
}

.mini-score,
.score-card,
.fixture-preview a,
.table-preview div,
.admin-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px;
    background: #fff;
}

.mini-score + .mini-score,
.score-card + .score-card,
.fixture-preview a + a,
.table-preview div + div,
.admin-row + .admin-row {
    margin-top: 12px;
}

.mini-score span,
.score-card span,
.fixture-preview span,
.stat-card span,
.code-details dt {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.mini-score strong,
.score-card strong,
.fixture-preview strong {
    flex: 1;
}

.mini-score a,
.score-card a,
.text-link,
.admin-row a {
    color: var(--primary-dark);
    font-weight: 900;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.home-hero .section-kicker,
.panel-dark .section-kicker {
    color: var(--gold);
}

.ad-slot {
    border: 1px dashed #aebcb6;
    border-radius: var(--radius);
    color: #65736e;
    background: rgba(255, 255, 255, 0.72);
    display: grid;
    place-items: center;
    min-height: 92px;
    font-weight: 800;
    gap: 8px;
    padding: 12px;
    text-align: center;
}

.ad-slot--wide {
    margin: 28px 0;
}

.ad-slot--filled {
    display: block;
    min-height: 0;
}

.ad-label {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
}

.ad-code {
    width: 100%;
    overflow: hidden;
    text-align: center;
}

.split-section {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin: 28px 0;
}

.panel {
    background: var(--surface);
    padding: 24px;
}

.panel-dark {
    background: linear-gradient(135deg, var(--dark), var(--dark-2));
    color: #fff;
}

.panel-dark .score-card {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
}

.panel-dark .score-card span,
.panel-dark .score-card a {
    color: #cfe7dd;
}

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

.section-heading h2,
.page-title h1,
.article-header h1,
.booking-reveal h1,
.admin-top h2,
.admin-card h2 {
    margin: 4px 0 0;
    line-height: 1.1;
}

.section-heading--row {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
}

.content-section,
.page-wrap {
    padding: 26px 0;
}

.page-title {
    max-width: 780px;
    margin-bottom: 24px;
}

.page-title h1 {
    font-size: clamp(32px, 5vw, 54px);
}

.page-title p {
    color: var(--muted);
    font-size: 18px;
}

.news-grid,
.booking-grid,
.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.booking-grid--listing {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.news-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-card:hover,
.booking-card:hover,
.league-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.news-image {
    aspect-ratio: 16 / 10;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #132e25, #0f8b5f);
    color: #fff;
    font-size: 34px;
    font-weight: 900;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card__body {
    padding: 18px;
}

.category,
.badge,
.status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    border-radius: 999px;
    padding: 5px 10px;
    background: #e7f6ef;
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.news-card h3 {
    margin: 10px 0 8px;
    line-height: 1.25;
}

.news-card p,
.booking-card p,
.panel p,
.article-content {
    color: var(--muted);
}

.booking-card {
    background: #fff;
    border: 1px solid var(--line);
    padding: 22px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.booking-card h2,
.booking-card h3 {
    margin: 12px 0 6px;
}

.booking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.platform {
    font-weight: 900;
    font-size: 18px;
}

.status.active {
    background: #e7f6ef;
    color: var(--primary-dark);
}

.booking-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}

.booking-meta span {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 5px 9px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.booking-feature {
    border-top: 4px solid var(--primary);
}

.booking-highlight h3 {
    font-size: 30px;
    margin: 12px 0 8px;
}

.fixture-preview,
.table-preview,
.score-list {
    display: block;
}

.table-preview span {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--surface-2);
    font-weight: 900;
}

.table-preview strong {
    flex: 1;
}

.table-preview em {
    color: var(--primary-dark);
    font-style: normal;
    font-weight: 900;
}

.league-stack {
    display: grid;
    gap: 20px;
}

.league-card {
    background: #fff;
    border: 1px solid var(--line);
    padding: 22px;
}

.league-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.league-card__head h2 {
    margin: 0;
}

.match-list,
.fixture-list {
    display: grid;
    gap: 10px;
}

.match-card,
.fixture-card {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fbfdfc;
}

.match-card strong:nth-child(3) {
    text-align: right;
}

.match-score {
    min-width: 72px;
    text-align: center;
    border-radius: var(--radius);
    background: var(--dark);
    color: #fff;
    padding: 6px 10px;
    font-weight: 900;
}

.match-card small,
.fixture-card time {
    color: var(--muted);
    font-weight: 800;
}

.fixture-card {
    grid-template-columns: 1fr auto;
}

.fixture-card div {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.empty-state {
    margin: 0;
    color: var(--muted);
}

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

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

.standings-table th,
.standings-table td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

.standings-table th {
    background: var(--surface-2);
    color: #3b4b43;
    font-size: 13px;
    text-transform: uppercase;
}

.standings-table tr:hover td {
    background: #f8fbfa;
}

.article-wrap {
    max-width: 900px;
    padding: 34px 0 52px;
}

.article-header h1 {
    font-size: clamp(34px, 6vw, 60px);
    margin-top: 10px;
}

.article-image {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: var(--radius);
    margin: 24px 0;
    box-shadow: var(--shadow);
}

.article-content {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
    font-size: 18px;
}

.booking-reveal {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 460px);
    gap: 24px;
    align-items: center;
    background: linear-gradient(135deg, #ffffff, #edf7f2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(24px, 5vw, 44px);
    box-shadow: var(--shadow);
}

.booking-reveal h1 {
    font-size: clamp(32px, 5vw, 54px);
}

.booking-reveal__intro p {
    max-width: 620px;
    color: var(--muted);
    font-size: 18px;
}

.booking-reveal__panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
}

.booking-countdown-ad {
    margin-top: 20px;
}

.timer-ring {
    width: 170px;
    height: 170px;
    margin: 0 auto 20px;
    display: grid;
    place-items: center;
    align-content: center;
    border-radius: 50%;
    border: 12px solid #e7f6ef;
    box-shadow: inset 0 0 0 8px #fff;
}

.timer-ring span {
    font-size: 54px;
    line-height: 1;
    color: var(--accent);
    font-weight: 900;
}

.timer-ring small {
    color: var(--muted);
    font-weight: 800;
}

.timer-ring.is-complete {
    border-color: var(--primary);
}

.progress {
    width: 100%;
    height: 12px;
    background: var(--surface-2);
    border-radius: 999px;
    overflow: hidden;
}

#progressBar {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--gold));
    transition: width 1s linear;
}

.booking-result {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.code-box {
    margin: 14px 0;
    border-radius: var(--radius);
    background: var(--dark);
    color: #fff;
    padding: 16px;
    font-size: clamp(26px, 5vw, 42px);
    font-weight: 900;
    text-align: center;
    overflow-wrap: anywhere;
}

.code-details {
    display: grid;
    gap: 10px;
    margin: 18px 0;
}

.code-details div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 8px;
}

.code-details dd {
    margin: 0;
    font-weight: 900;
}

.copy-message,
.form-success {
    color: var(--primary-dark);
    font-weight: 900;
}

.form-error {
    color: var(--accent);
    font-weight: 900;
}

.site-footer {
    margin-top: auto;
    background: var(--dark);
    color: #d6e1dd;
    padding-bottom: env(safe-area-inset-bottom);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.7fr 1fr;
    gap: 28px;
    padding: 36px 0;
}

.brand--footer .brand-logo {
    width: 200px;
    height: 170px;
   
}

.brand--footer small,
.site-footer p {
    color: #aebcb6;
}

.site-footer h3 {
    color: #fff;
    margin: 0 0 10px;
}

.site-footer a:not(.brand) {
    display: block;
    color: #d6e1dd;
    padding: 3px 0;
    font-weight: 800;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 0;
}

.footer-bottom p {
    margin: 0;
}

.admin-body {
    background: #edf2f0;
}

.admin-auth {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.admin-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 260px 1fr;
}

.admin-sidebar {
    background: var(--dark);
    color: #fff;
    padding: 24px;
}

.admin-sidebar h1 {
    margin: 0 0 24px;
    font-size: 24px;
}

.admin-sidebar a {
    display: block;
    padding: 11px 12px;
    border-radius: var(--radius);
    color: #d6e1dd;
    font-weight: 800;
}

.admin-sidebar a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.admin-main {
    padding: 28px;
}

.admin-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.admin-card,
.stat-card {
    background: #fff;
    border: 1px solid var(--line);
    padding: 24px;
}

.stat-grid {
    margin-bottom: 20px;
}

.stat-card strong {
    display: block;
    margin-top: 8px;
    font-size: 34px;
}

.admin-form {
    display: grid;
    gap: 14px;
}

.admin-form input,
.admin-form textarea,
.admin-form select,
.admin-card input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px 14px;
    background: #fff;
}

.admin-form label {
    display: grid;
    gap: 8px;
}

.admin-card > input,
.admin-card > button {
    margin-top: 12px;
}

.admin-row span {
    display: flex;
    gap: 12px;
}

@media (max-width: 1020px) {
    .header-inner {
        grid-template-columns: auto auto;
        justify-content: space-between;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav,
    .header-search {
        grid-column: 1 / -1;
        display: none;
        width: 100%;
    }

    .main-nav.is-open,
    .header-search.is-open {
        display: flex;
    }

    .main-nav {
        flex-direction: column;
        align-items: stretch;
    }

    .header-search input {
        width: 100%;
    }

    .hero-grid,
    .split-section,
    .booking-reveal {
        grid-template-columns: 1fr;
    }

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

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

    .admin-sidebar {
        position: static;
    }
}

@media (max-width: 700px) {
    .container {
        width: min(100% - 24px, var(--container));
    }

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

    .hero-story {
        min-height: 320px;
        padding: 24px;
    }

    .news-grid,
    .booking-grid,
    .stat-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .section-heading--row,
    .admin-top,
    .league-card__head {
        align-items: flex-start;
        flex-direction: column;
    }

    .match-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .match-card strong:nth-child(3) {
        text-align: center;
    }

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

    .mini-score,
    .score-card,
    .fixture-preview a,
    .table-preview div,
    .admin-row,
    .code-details div {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-main {
        padding: 18px;
    }
}
