:root {
    --ink: #f7fbff;
    --text: #e7eef8;
    --muted: #aebbd0;
    --deep: #050a14;
    --navy: #07152d;
    --blue: #0b5ed7;
    --blue-2: #0f8cff;
    --jersey: #123f93;
    --gold: #f6c558;
    --green: #10b981;
    --red: #ef4444;
    --glass: rgba(7, 21, 45, 0.68);
    --glass-strong: rgba(7, 21, 45, 0.86);
    --line: rgba(210, 226, 255, 0.18);
    --paper: rgba(255, 255, 255, 0.92);
    --dark-text: #111827;
    --dark-muted: #536174;
    --radius: 8px;
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 16% 8%, rgba(15, 140, 255, 0.22), transparent 28rem),
        radial-gradient(circle at 86% 18%, rgba(246, 197, 88, 0.14), transparent 22rem),
        linear-gradient(180deg, var(--deep), #08142a 42%, #f3f7fc 42%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
    letter-spacing: 0;
}

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

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

.arena-canvas {
    position: fixed;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    background: var(--deep);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(5, 10, 20, 0.24), rgba(5, 10, 20, 0.82) 64%, rgba(243, 247, 252, 0.96) 72%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 88px);
}

.site-header,
.site-main,
.match-ticker,
.sport-rail,
.site-footer {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 14px;
    z-index: 20;
    margin-top: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(5, 10, 20, 0.72);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(18px);
}

.nav-wrap {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 14px;
}

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

.brand img {
    border-radius: var(--radius);
    box-shadow: 0 0 30px rgba(15, 140, 255, 0.28);
}

.brand strong {
    display: block;
    color: #fff;
    font-size: 20px;
    line-height: 1;
}

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

.main-nav {
    display: flex;
    justify-content: center;
    gap: 6px;
    overflow-x: auto;
}

.main-nav a,
.admin-link,
.sport-rail a,
.filter-pills a {
    border: 1px solid transparent;
    border-radius: var(--radius);
    color: #d7e5fb;
    font-size: 14px;
    font-weight: 900;
    padding: 9px 11px;
    white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.is-active,
.admin-link:hover,
.filter-pills a.active {
    border-color: rgba(246, 197, 88, 0.52);
    color: #07152d;
    background: var(--gold);
}

.admin-link {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--line);
}

.sport-rail,
.match-ticker {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 14px 12px;
}

.sport-rail {
    width: 100%;
}

.sport-rail a {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 8px;
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.07);
}

.sport-rail a.priority {
    color: #07152d;
    background: #fff;
}

.sport-rail span {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: #07152d;
    background: var(--gold);
    font-size: 11px;
}

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

.match-ticker > strong {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    border-radius: var(--radius);
    color: #07152d;
    background: var(--gold);
    font-size: 12px;
    font-weight: 900;
    padding: 0 11px;
    text-transform: uppercase;
}

.match-ticker > div {
    display: flex;
    gap: 8px;
    overflow-x: auto;
}

.match-ticker a {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 8px;
    min-height: 34px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: #eaf3ff;
    background: rgba(255, 255, 255, 0.08);
    font-size: 13px;
    font-weight: 900;
    padding: 0 10px;
}

.match-ticker a span,
.match-ticker a time {
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
}

.site-main {
    padding-bottom: 48px;
}

.setup-alert {
    margin-top: 22px;
    padding: 14px 16px;
    border: 1px solid rgba(246, 197, 88, 0.45);
    border-radius: var(--radius);
    color: #fff9e8;
    background: rgba(82, 50, 10, 0.58);
    backdrop-filter: blur(14px);
}

.scroll-scene {
    min-height: 92vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    align-items: center;
    position: relative;
    padding: 58px 0;
}

.scroll-scene,
.article-card,
.match-card,
.sport-lane {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 420ms ease, transform 420ms ease;
}

.scroll-scene.is-visible,
.article-card.is-visible,
.match-card.is-visible,
.sport-lane.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-scene {
    min-height: calc(100vh - 130px);
}

.scene-copy,
.floating-score,
.premium-story,
.prediction-panel,
.gossip-panel,
.right-rail,
.article-card,
.match-card,
.sport-lane,
.content-band,
.page-title,
.page-hero,
.sports-directory {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--glass);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.scene-copy {
    max-width: 760px;
    padding: 30px;
}

.eyebrow,
.section-head p,
.page-title p,
.page-hero p,
.sport-lane span {
    margin: 0 0 8px;
    color: var(--gold);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.scene-copy h1 {
    margin: 0;
    max-width: 760px;
    color: #fff;
    font-size: clamp(42px, 7vw, 84px);
    line-height: 0.95;
}

.hero-lede,
.scene-copy > p:not(.eyebrow) {
    max-width: 650px;
    color: var(--text);
    font-size: 18px;
}

.scene-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.scene-actions a,
.section-head a,
.lead-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: #07152d;
    background: #fff;
    font-size: 14px;
    font-weight: 900;
    padding: 0 14px;
}

.scene-actions a:first-child,
.section-head a {
    background: var(--gold);
}

.floating-score {
    align-self: center;
    padding: 22px;
    background: rgba(7, 21, 45, 0.82);
}

.floating-score span,
.floating-score time {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.floating-score strong {
    display: block;
    margin: 8px 0;
    color: #fff;
    font-size: 30px;
    line-height: 1.05;
}

.floating-score p {
    margin: 0 0 12px;
    color: var(--text);
    font-size: 20px;
    font-weight: 900;
}

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

.section-head h2,
.page-title h1,
.page-hero h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.05;
}

.section-head.immersive {
    grid-column: 1 / -1;
}

.matchroom-scene,
.prediction-scene,
.sports-scene {
    grid-template-columns: 1fr;
    align-items: start;
}

.match-grid,
.article-grid,
.sports-lanes {
    display: grid;
    gap: 16px;
}

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

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

.match-card {
    min-width: 0;
    padding: 16px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--dark-text);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.16);
}

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

.match-card-top time,
.match-stage {
    color: var(--dark-muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.match-status,
.fixture-row em {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    border-radius: 999px;
    color: #fff;
    background: var(--green);
    font-size: 12px;
    font-weight: 900;
}

.match-status.live,
em.live {
    background: var(--red);
}

.match-status.postponed,
em.postponed {
    background: #d99a22;
}

.match-stage {
    margin-top: 12px;
}

.teams-line {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
    align-items: center;
    margin-top: 10px;
}

.teams-line strong {
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 22px;
}

.teams-line strong:last-child {
    text-align: right;
}

.teams-line span {
    color: var(--dark-muted);
    font-size: 12px;
    font-weight: 900;
}

.match-card p {
    margin: 8px 0 0;
    color: var(--dark-muted);
    font-size: 13px;
}

.match-time {
    color: var(--dark-text) !important;
    font-weight: 900;
}

.premium-story {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
    overflow: hidden;
    background: var(--glass-strong);
}

.premium-story-image {
    min-height: 420px;
    background: #07152d;
}

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

.premium-story > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 32px;
}

.premium-story h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(30px, 5vw, 56px);
    line-height: 1.02;
}

.premium-story p:not(.eyebrow) {
    color: var(--text);
    font-size: 18px;
}

.story-meta-strip,
.mini-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.story-meta-strip span,
.mini-tags a {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: #eaf3ff;
    background: rgba(255, 255, 255, 0.08);
    font-size: 12px;
    font-weight: 900;
    padding: 7px 9px;
}

.prediction-scene {
    grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
}

.prediction-panel,
.gossip-panel {
    min-width: 0;
    padding: 20px;
}

.prediction-summary {
    color: var(--text);
}

.table-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
}

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

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

.prediction-table th {
    color: var(--gold);
    font-size: 12px;
    text-transform: uppercase;
}

.prediction-table tbody tr:first-child td {
    background: rgba(246, 197, 88, 0.1);
}

.confidence {
    display: inline-block;
    width: 72px;
    height: 7px;
    margin-right: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    vertical-align: middle;
}

.confidence span {
    display: block;
    height: 100%;
    max-width: 100%;
    background: var(--gold);
}

.gossip-item {
    display: block;
    padding: 14px 0;
    border-top: 1px solid var(--line);
}

.gossip-item span,
.gossip-item small {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.gossip-item strong {
    display: block;
    margin: 4px 0;
    color: #fff;
    line-height: 1.25;
}

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

.sport-lane {
    display: grid;
    grid-template-columns: 82px 1fr;
    gap: 16px;
    padding: 20px;
}

.featured-lane {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(18, 63, 147, 0.88), rgba(246, 197, 88, 0.2));
}

.sport-lane-mark {
    display: grid;
    place-items: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    color: #07152d;
    background: #fff;
    font-weight: 900;
}

.sport-lane h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 27px;
}

.sport-lane p {
    margin: 0 0 14px;
    color: var(--text);
}

.content-band,
.dynamic-section,
.page-title,
.page-hero,
.sports-directory {
    margin-top: 28px;
    padding: 22px;
}

.latest-band,
.dynamic-section,
.page-title,
.page-hero,
.sports-directory {
    background: rgba(7, 21, 45, 0.76);
}

.dynamic-section {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.section-head span {
    display: block;
    max-width: 680px;
    color: var(--muted);
    font-size: 15px;
}

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

.dynamic-section.layout-featured .dynamic-section-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wide-card {
    grid-column: span 2;
}

.wide-card .article-image {
    aspect-ratio: 16 / 8;
}

.wide-card h3 {
    font-size: 26px;
}

.article-card {
    overflow: hidden;
    background: rgba(255, 255, 255, 0.94);
    color: var(--dark-text);
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.2);
}

.article-image {
    display: block;
    aspect-ratio: 16 / 10;
    background: #e9edf2;
}

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

.article-copy {
    padding: 16px;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.meta-row span,
.meta-row time {
    color: var(--jersey);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.article-card h3 {
    margin: 10px 0 8px;
    font-size: 19px;
    line-height: 1.22;
}

.article-card p {
    margin: 0 0 12px;
    color: var(--dark-muted);
    font-size: 14px;
}

.article-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.article-foot time,
.article-foot span {
    color: var(--dark-muted);
    font-size: 13px;
    font-weight: 900;
}

.article-foot span {
    color: var(--jersey);
}

.page-hero {
    min-height: 330px;
    display: flex;
    align-items: end;
    overflow: hidden;
}

.page-hero span {
    display: block;
    max-width: 700px;
    color: var(--text);
    font-size: 18px;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 22px;
}

.hero-metrics span {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
    font-size: 12px;
    font-weight: 800;
    padding: 11px;
}

.hero-metrics strong {
    display: block;
    color: #fff;
    font-size: 20px;
    overflow-wrap: anywhere;
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.filter-pills a {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.08);
}

.fixture-table {
    display: grid;
    gap: 10px;
}

.fixture-row {
    display: grid;
    grid-template-columns: 96px minmax(180px, 1.2fr) minmax(180px, 1fr) 110px;
    align-items: center;
    gap: 18px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.94);
    color: var(--dark-text);
}

.fixture-row time {
    display: grid;
    place-items: center;
    width: 74px;
    min-height: 58px;
    border-radius: var(--radius);
    color: #fff;
    background: var(--jersey);
    font-weight: 900;
}

.fixture-row time span,
.fixture-row div span {
    display: block;
    font-size: 12px;
}

.fixture-row p {
    margin: 0;
    color: var(--dark-muted);
}

.story-layout {
    width: min(860px, calc(100% - 32px));
    margin: 34px auto;
}

.story-header {
    padding: 16px 0 22px;
}

.story-header h1 {
    margin: 12px 0;
    color: #fff;
    font-size: 46px;
    line-height: 1.08;
}

.story-header p,
.story-header > span {
    color: var(--text);
}

.story-image {
    margin: 0 0 24px;
    overflow: hidden;
    border-radius: var(--radius);
}

.story-image img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
}

.story-body {
    color: var(--dark-text);
    font-size: 18px;
    line-height: 1.8;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.46);
    border-radius: var(--radius);
    padding: 26px;
}

.sports-directory {
    display: grid;
    gap: 16px;
}

.sport-section {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 16px;
    padding: 20px;
}

.sport-icon {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    color: var(--jersey);
    background: #fff;
    font-weight: 900;
}

.sport-section h2 {
    margin: 0 0 12px;
    color: #fff;
}

.tournament-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.tournament-list a {
    display: block;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.tournament-list span {
    display: block;
    color: var(--muted);
    font-size: 13px;
}

.empty-state {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: #fff;
    background: var(--glass);
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 44px;
    padding: 26px 0 34px;
    color: #e9eef5;
}

.site-footer div {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-footer p {
    margin: 0;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-weight: 900;
}

@media (max-width: 1080px) {
    .nav-wrap,
    .scroll-scene,
    .premium-story,
    .prediction-scene {
        grid-template-columns: 1fr;
    }

    .main-nav {
        justify-content: flex-start;
    }

    .match-grid,
    .article-grid,
    .dynamic-section-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wide-card {
        grid-column: span 2;
    }
}

@media (max-width: 720px) {
    .site-header,
    .site-main,
    .site-footer {
        width: min(100% - 22px, 1180px);
    }

    .site-header {
        top: 8px;
        margin-top: 8px;
    }

    .brand {
        min-width: 0;
    }

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

    .scroll-scene {
        min-height: auto;
        padding: 44px 0;
    }

    .scene-copy {
        padding: 22px;
    }

    .scene-copy h1 {
        font-size: 42px;
    }

    .floating-score {
        align-self: stretch;
    }

    .match-grid,
    .article-grid,
    .dynamic-section-grid,
    .sports-lanes,
    .sport-lane,
    .tournament-list,
    .sport-section {
        grid-template-columns: 1fr;
    }

    .wide-card {
        grid-column: auto;
    }

    .featured-lane {
        grid-column: auto;
    }

    .premium-story-image {
        min-height: 230px;
    }

    .premium-story > div,
    .prediction-panel,
    .gossip-panel,
    .content-band,
    .page-title,
    .page-hero,
    .sports-directory {
        padding: 18px;
    }

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

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

    .fixture-row time,
    .fixture-row p,
    .fixture-row em {
        grid-column: auto;
    }

    .fixture-row time {
        width: 100%;
    }

    .story-header h1 {
        font-size: 32px;
    }

    .story-body {
        padding: 18px;
        font-size: 16px;
    }

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