:root {
    color-scheme: light;
    font-family: "Segoe UI", Arial, sans-serif;
    background: #f5f7fb;
    color: #172033;
}

body {
    margin: 0;
}

main {
    max-width: 1120px;
    margin: 0 auto;
    padding: 48px 24px;
}

.hero {
    background: linear-gradient(135deg, #243b80, #0078d4);
    border-radius: 24px;
    color: white;
    padding: 48px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.18);
}

.hero h1 {
    font-size: clamp(2.4rem, 7vw, 4.5rem);
    margin: 0 0 16px;
}

.lead {
    color: #44546a;
    font-size: 1.05rem;
    line-height: 1.7;
}

.eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    margin: 0 0 12px;
    text-transform: uppercase;
}

.chat-form,
.fixture-card,
.football-card,
.message,
.prediction-main,
.schedule-card,
.prediction-side,
.team-card {
    background: white;
    border: 1px solid #dde4f0;
    border-radius: 18px;
    margin-top: 24px;
    padding: 24px;
}

.prediction-shell {
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
}

.prediction-main h2,
.team-card h2 {
    margin-top: 0;
}

.score-card {
    align-items: center;
    background: linear-gradient(135deg, #111827, #243b80);
    border-radius: 16px;
    color: white;
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr auto 1fr;
    margin: 18px 0 24px;
    padding: 18px 22px;
    text-align: center;
}

.score-card strong {
    font-size: clamp(1.8rem, 5vw, 3.2rem);
}

.score-card h3 {
    font-size: 1rem;
    margin: 8px 0 0;
}

.score-card .team-badge {
    height: 46px;
    width: 46px;
}

.team-badge {
    align-items: center;
    background: #0078d4;
    color: white;
    border-radius: 999px;
    display: inline-flex;
    font-weight: 800;
    height: 54px;
    justify-content: center;
    letter-spacing: 0.06em;
    width: 54px;
}

.pick-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 24px 0;
}

.pick-card {
    background: #f5f7fb;
    border: 1px solid #dde4f0;
    border-radius: 16px;
    padding: 18px;
}

.pick-card span,
.tips-list span {
    color: #52627a;
    display: block;
    font-size: 0.85rem;
    margin-bottom: 6px;
}

.pick-card strong {
    font-size: 1.1rem;
}

.tips-list {
    list-style: none;
    margin: 18px 0;
    padding: 0;
}

.tips-list li {
    border-bottom: 1px solid #dde4f0;
    padding: 14px 0;
}

.tips-list li:first-child {
    padding-top: 0;
}

.disclaimer {
    background: #fff4ce;
    border-radius: 14px;
    color: #5c4200;
    font-size: 0.9rem;
    line-height: 1.5;
    padding: 14px;
}

.fixture-grid,
.team-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fixture-grid {
    margin-top: 24px;
}

.fixture-grid .section-heading {
    grid-column: 1 / -1;
}

.fixture-card h3 {
    margin: 10px 0;
}

.fixture-card p {
    color: #44546a;
    line-height: 1.6;
}

.fixture-card-top,
.mini-picks {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
}

.fixture-card-top span,
.mini-picks span {
    color: #52627a;
    font-size: 0.9rem;
    font-weight: 700;
}

.fixture-card-top strong,
.mini-picks span {
    background: #eef6ff;
    border-radius: 999px;
    color: #005a9e;
    padding: 6px 10px;
}

.mini-score {
    color: #172033;
    font-size: 2.4rem;
    font-weight: 800;
    margin: 12px 0;
}

.schedule-grid {
    border-top: 1px solid #dde4f0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 24px -24px -24px;
}

.schedule-item {
    align-items: center;
    background: #f3f8ff;
    border-bottom: 1px solid #dde4f0;
    color: #172033;
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 28px 30px;
    text-decoration: none;
}

.schedule-item:nth-child(odd) {
    border-right: 1px solid #dde4f0;
}

.schedule-item:hover {
    background: #eaf4ff;
}

.week-label {
    color: #52627a;
    display: block;
    margin-bottom: 16px;
}

.schedule-team {
    align-items: center;
    display: flex;
    font-size: 1.15rem;
    gap: 12px;
    margin: 10px 0;
}

.team-dot {
    align-items: center;
    background: #0078d4;
    border-radius: 999px;
    color: white;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0.68rem;
    font-weight: 800;
    height: 32px;
    justify-content: center;
    width: 32px;
}

.schedule-time {
    border-left: 1px solid #d6deeb;
    display: grid;
    gap: 6px;
    min-width: 120px;
    padding-left: 20px;
    text-align: right;
}

.schedule-time span {
    font-size: 1.1rem;
}

.button-link,
.card-link {
    background: #0078d4;
    border-radius: 999px;
    color: white;
    display: inline-block;
    font-weight: 700;
    margin-top: 16px;
    padding: 12px 18px;
    text-decoration: none;
}

.card-link {
    background: #172033;
    padding: 10px 14px;
}

.reasoning-list p {
    background: #f5f7fb;
    border-left: 4px solid #0078d4;
    border-radius: 12px;
    line-height: 1.6;
    padding: 14px 16px;
}

.ai-preview {
    background: #f8fbff;
    border: 1px solid #cfe5ff;
    border-radius: 16px;
    line-height: 1.7;
    margin-top: 12px;
    padding: 18px;
    white-space: pre-wrap;
}

.source-list {
    display: grid;
    gap: 14px;
}

.source-list article {
    background: #f5f7fb;
    border: 1px solid #dde4f0;
    border-radius: 14px;
    padding: 16px;
}

.source-list h3 {
    margin: 0 0 8px;
}

.team-card-header {
    align-items: center;
    display: flex;
    gap: 16px;
}

.stat-list {
    margin: 20px 0 0;
}

.stat-list div {
    align-items: center;
    border-top: 1px solid #dde4f0;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    padding: 14px 0;
}

.stat-list dt {
    color: #52627a;
    font-weight: 700;
}

.stat-list dd {
    margin: 0;
    text-align: right;
}

.section-heading {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
}

.section-heading h2 {
    margin: 0;
}

.section-heading span {
    color: #52627a;
    font-weight: 700;
}

.football-card .eyebrow {
    color: #0078d4;
}

.table-wrap {
    overflow-x: auto;
}

table {
    border-collapse: collapse;
    margin-top: 18px;
    width: 100%;
}

th,
td {
    border-bottom: 1px solid #dde4f0;
    padding: 12px 10px;
    text-align: left;
}

th {
    color: #52627a;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
}

textarea {
    border: 1px solid #b7c3d7;
    border-radius: 12px;
    box-sizing: border-box;
    font: inherit;
    padding: 14px;
    resize: vertical;
    width: 100%;
}

button {
    background: #0078d4;
    border: 0;
    border-radius: 999px;
    color: white;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    margin-top: 16px;
    padding: 12px 22px;
}

.alert,
.validation {
    color: #a4262c;
}

.history h2 {
    margin-top: 40px;
}

.message h3 {
    margin-bottom: 6px;
}

.message p {
    white-space: pre-wrap;
}

@media (max-width: 820px) {
    .prediction-shell,
    .fixture-grid,
    .schedule-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .schedule-item:nth-child(odd) {
        border-right: 0;
    }

    .pick-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .hero {
        padding: 32px;
    }

    .pick-grid,
    .score-card {
        grid-template-columns: 1fr;
    }
}
