/* uk49predictions.com - design system shared with the Android app (Sept 2026).
   Loaded after Bootstrap and the legacy style.css so it wins where both style the same thing. */

:root {
  --brand: #F04543;
  --brand-dark: #B71C1C;
  --bg: #F5F6FA;
  --card: #FFFFFF;
  --stroke: #ECEEF2;
  --title: #1B1F2A;
  --text: #3A4050;
  --muted: #7A8194;
  --chip-bg: #FFF0EF;
  --chip-text: #D63A38;
  --gold-bg: #FFF8E1;
  --gold-text: #8A6100;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .04);
  --ball: clamp(38px, 10.5vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}
a { color: var(--brand-dark); }
a:hover { color: var(--brand); }
h1, h2, h3, h4 { color: var(--title); font-weight: 600; line-height: 1.3; }
h1 { font-size: clamp(1.4rem, 4.5vw, 2rem); margin: 0 0 .4rem; }
h2 { font-size: clamp(1.15rem, 3.5vw, 1.45rem); margin: 0 0 .75rem; }
h3 { font-size: 1.05rem; margin: 0 0 .5rem; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.section { margin: 28px 0; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- Header / navigation ---------- */
.site-header {
  background: linear-gradient(120deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 2px 10px rgba(183, 28, 28, .25);
}
.site-header .bar { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 600; font-size: 1.05rem; }
.brand:hover { color: #fff; }
.brand img { height: 34px; width: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.nav > a, .nav .dd > button {
  color: #fff; text-decoration: none; background: none; border: 0; font: inherit; font-size: .92rem;
  padding: 8px 12px; border-radius: 10px; cursor: pointer; white-space: nowrap;
}
.nav > a:hover, .nav .dd > button:hover, .nav .dd.open > button { background: rgba(255, 255, 255, .15); color: #fff; }
.nav .dd { position: relative; }
.nav .dd > button::after { content: '\25BE'; margin-left: 6px; font-size: .75em; }
.nav .dd-menu {
  display: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 210px;
  background: #fff; border-radius: 12px; box-shadow: 0 10px 30px rgba(16, 24, 40, .18); padding: 6px;
}
.nav .dd.open .dd-menu { display: block; }
.nav .dd-menu a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--title); text-decoration: none; font-size: .92rem; }
.nav .dd-menu a:hover { background: var(--chip-bg); color: var(--chip-text); }
.nav .btn-app { background: #fff; color: var(--brand-dark); font-weight: 600; margin-left: 6px; }
.nav .btn-app:hover { background: #FFE9E8; color: var(--brand-dark); }
.menu-toggle { display: none; margin-left: auto; background: rgba(255, 255, 255, .15); border: 0; color: #fff; width: 42px; height: 42px; border-radius: 10px; font-size: 22px; cursor: pointer; }

@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch;
         background: #fff; padding: 8px 12px 14px; box-shadow: 0 12px 24px rgba(16, 24, 40, .15); max-height: calc(100vh - 60px); overflow-y: auto; }
  .nav.open { display: flex; }
  .nav > a, .nav .dd > button { color: var(--title); text-align: left; width: 100%; padding: 12px; }
  .nav > a:hover, .nav .dd > button:hover, .nav .dd.open > button { background: var(--bg); color: var(--title); }
  .nav .dd-menu { position: static; box-shadow: none; padding: 0 0 6px 12px; }
  .nav .btn-app { background: var(--brand); color: #fff; text-align: center; margin: 8px 0 0; }
}

/* ---------- Breadcrumb + page hero ---------- */
.crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 0 0; margin: 0; font-size: .85rem; color: var(--muted); }
.crumbs li + li::before { content: '\203A'; margin-right: 6px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.page-hero { padding: 14px 0 6px; }
.page-hero .lead { max-width: none; margin: 0; font-size: 1rem; font-weight: 400; line-height: 1.65; }
.page-hero h1 { text-align: center; }
.page-hero .updated { justify-content: center; }
.page-hero .updated + .lead { margin-top: 10px; }
.updated { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .82rem; color: var(--muted); margin-top: 6px; }
.updated::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #2E9E4F; }

/* ---------- Draw tabs ---------- */
.tabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 2px; margin: 14px 0 16px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: 0 0 auto; text-decoration: none; padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--stroke); color: var(--title); font-size: .9rem; }
.tabs a:hover { border-color: var(--brand); color: var(--brand); }
.tabs a.active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- Cards ---------- */
.card-x { background: var(--card); border: 1px solid var(--stroke); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.card-x + .card-x { margin-top: 12px; }
.grid > .card-x + .card-x, .grid > .card-link + .card-link { margin-top: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.label { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.card-title { font-weight: 600; color: var(--title); font-size: 1.02rem; }
.chip { display: inline-block; background: var(--chip-bg); color: var(--chip-text); border-radius: 999px; padding: 2px 10px; font-size: .78rem; font-weight: 500; white-space: nowrap; }
.chip-green { background: #E8F6EC; color: #1E7A3C; }
.divider { height: 1px; background: var(--stroke); margin: 12px 0 14px; border: 0; }
.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.card-link { text-decoration: none; color: inherit; display: block; transition: transform .15s, box-shadow .15s; }
.card-link:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(16, 24, 40, .1); color: inherit; }
.more { display: inline-block; margin-top: 12px; font-size: .88rem; font-weight: 500; text-decoration: none; }
.more::after { content: ' \2192'; }

/* ---------- Balls: coloured ring, white face, dark number ---------- */
.balls { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.balls.centered { justify-content: center; }
.ball {
  --c1: #E53935; --c2: #B71C1C;
  width: var(--ball); height: var(--ball); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  font-weight: 600; font-size: calc(var(--ball) * .4); color: var(--title); line-height: 1;
  border: calc(var(--ball) * .11) solid transparent;
  background: linear-gradient(#fff, #F1F3F7) padding-box, linear-gradient(180deg, var(--c1), var(--c2)) border-box;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .15);
}
.ball-sm { --ball: 34px; }
.b-red    { --c1: #E53935; --c2: #B71C1C; }
.b-blue   { --c1: #1E88E5; --c2: #0D47A1; }
.b-green  { --c1: #43A047; --c2: #1B5E20; }
.b-purple { --c1: #8E24AA; --c2: #4A148C; }
.b-orange { --c1: #FB8C00; --c2: #E65100; }
.b-gold   { --c1: #F4B400; --c2: #B07D00; }

.booster { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--gold-bg); color: var(--gold-text); border-radius: 10px; padding: 8px 12px; margin-top: 12px; font-weight: 500; }

/* Prediction card: sets stacked so 5-number sets fit on phones */
.sets { display: grid; grid-template-columns: 1fr; gap: 12px; }
.sets > div { display: flex; align-items: center; gap: 12px; }
.sets > div + div { border-top: 1px solid var(--stroke); padding-top: 12px; }
.sets .label { flex: 0 0 44px; }
.sets .balls { margin: 0; }
@media (max-width: 360px) { .sets > div { flex-direction: column; align-items: flex-start; gap: 6px; } }
.set-lines { display: grid; gap: 6px; }
.set-lines > div { display: flex; align-items: center; gap: 8px; }
.set-lines .label { flex: 0 0 34px; font-size: .62rem; }

/* Stats rows (hot / cold / overdue) */
.stat-row { display: flex; align-items: center; gap: 14px; }
.stat-row .info { flex: 1; min-width: 0; }
.stat-row .info b { color: var(--title); font-weight: 600; display: block; }
.stat-row .info span { color: var(--muted); font-size: .85rem; }
.stat-list .card-x + .card-x { margin-top: 8px; }
.mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mini-stats h3 { font-size: .95rem; }

/* Tables */
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--stroke); border-radius: var(--radius); box-shadow: var(--shadow); }
.table-x { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table-x caption { caption-side: top; text-align: left; padding: 12px 14px 8px; color: var(--title); font-weight: 600; font-size: .95rem; }
.table-x th, .table-x td { padding: 10px 12px; border-top: 1px solid var(--stroke); text-align: left; vertical-align: middle; }
.table-x thead th { background: #FAFBFC; color: var(--muted); font-weight: 500; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.table-x tbody th { font-weight: 500; color: var(--title); white-space: nowrap; }
.table-x tbody tr:hover { background: #FCFCFD; }
.table-x .balls { flex-wrap: nowrap; gap: 4px; }
.table-x .ball-sm { --ball: 30px; }
.table-x abbr { text-decoration: none; cursor: help; }
.table-stats tr.top td:first-child { color: var(--brand); font-weight: 600; }
.table-x.facts th { width: 38%; color: var(--muted); font-weight: 500; }
@media (max-width: 520px) {
  .table-x th, .table-x td { padding: 8px 8px; }
  .table-x .ball-sm { --ball: 27px; }
  .table-x tbody th { white-space: normal; font-size: .8rem; }
}
.stamp { margin: 10px 0 0; font-size: .78rem; color: var(--muted); }
time.chip { font-style: normal; }

/* Buttons */
.btn-x { display: inline-flex; align-items: center; gap: 8px; background: var(--brand); color: #fff; border: 0; border-radius: 12px; padding: 11px 18px; font-weight: 600; text-decoration: none; font-size: .95rem; }
.btn-x:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { background: #fff; color: var(--brand-dark); border: 1px solid var(--stroke); }
.btn-ghost:hover { background: var(--chip-bg); color: var(--brand-dark); }

/* Hero on home */
.hero { background: transparent; border: 0; border-radius: 18px; padding: 22px 20px; margin-top: 16px; box-shadow: none; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.draw-times { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px; }
.draw-times div { background: var(--bg); border-radius: 10px; padding: 8px; text-align: center; }
.draw-times b { display: block; color: var(--title); font-size: .92rem; }
.draw-times span { font-size: .8rem; color: var(--muted); }
@media (max-width: 520px) { .draw-times { grid-template-columns: repeat(2, 1fr); } }

/* Long-form text + admin messages */
.prose { background: #fff; border: 1px solid var(--stroke); border-radius: var(--radius); padding: 18px 20px; }
.prose p { text-align: left; margin: 0 0 .8rem; }
.prose h2, .prose h3 { margin-top: 1.1rem; }
.prose img { max-width: 100%; height: auto; }
.empty { text-align: center; color: var(--muted); padding: 28px 16px; }
.notice { background: var(--gold-bg); color: var(--gold-text); border-radius: 12px; padding: 12px 14px; font-size: .9rem; }

/* Footer */
.site-footer { background: #1B1F2A; color: #C9CDD6; margin-top: 40px; padding: 30px 0 18px; font-size: .9rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #FFB4B3; }
.site-footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; }
.site-footer .f-head { color: #fff; font-size: .95rem; font-weight: 600; margin: 0 0 8px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 4px 0; }
.site-footer .legal { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 22px; padding-top: 14px; font-size: .8rem; color: #9AA0AE; }

/* Legacy pages (FAQs, how to play ...) keep their markup; soften it to match */
.admin-msg { background: #fff; border: 1px solid var(--stroke); border-radius: var(--radius); padding: 16px 18px; }

/* Text logo: UK49 Predictions */
.brand { gap: 6px; letter-spacing: -.01em; }
.brand-mark { background: #fff; color: var(--brand-dark); font-weight: 700; font-size: 1.05rem; padding: 3px 8px; border-radius: 8px; line-height: 1.2; }
.brand-text { color: #fff; font-weight: 600; font-size: 1.1rem; }

/* FAQ / article pages */
.article-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.article-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.article-media { display: block; aspect-ratio: 16 / 9; background: linear-gradient(120deg, var(--chip-bg), #fff); overflow: hidden; }
.article-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.article-card:hover .article-media img { transform: scale(1.03); }
.article-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.article-body p { margin: 0; font-size: .9rem; }
.article-body .more { margin-top: auto; padding-top: 6px; }
.article-title { font-size: 1.02rem; margin: 0; line-height: 1.35; }
.article-title a { color: var(--title); text-decoration: none; }
.article-title a:hover { color: var(--brand); }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 8px 0 28px; }
.pager a { min-width: 40px; text-align: center; padding: 8px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--stroke); color: var(--title); text-decoration: none; font-size: .9rem; }
.pager a:hover { border-color: var(--brand); color: var(--brand); }
.pager a.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.article { max-width: 780px; margin: 0 auto; }
.article-hero { margin: 4px 0 16px; border-radius: var(--radius); overflow: hidden; background: var(--chip-bg); max-width: 100%; height: clamp(160px, 38vw, 300px); }
.article-hero img { width: 100%; height: 100%; max-width: 100%; object-fit: cover; display: block; }
.article-content { overflow-wrap: anywhere; }
.article-content img, .article-content iframe, .article-content video { max-width: 100% !important; height: auto; }
.article-content { font-size: 1rem; line-height: 1.75; }
.article-content h2 { font-size: 1.25rem; margin-top: 1.4rem; }
.article-content h3 { font-size: 1.08rem; margin-top: 1.2rem; }
.article-content ul, .article-content ol { padding-left: 1.3rem; margin: 0 0 .9rem; }
.article-content li { margin: .25rem 0; }
.article-content img { border-radius: 10px; margin: 10px 0; }
.article-content table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: .92rem; }
.article-content th, .article-content td { border: 1px solid var(--stroke); padding: 8px 10px; text-align: left; }
.article-content blockquote { border-left: 4px solid var(--brand); margin: 12px 0; padding: 6px 14px; background: var(--bg); border-radius: 0 10px 10px 0; }
/* FAQ accordion (footer_faqs.php) on new pages */
.prose .accordion-button { font-weight: 500; color: var(--title); background: #fff; box-shadow: none; }
.prose .accordion-button:not(.collapsed) { color: var(--brand-dark); background: var(--chip-bg); }
.prose .accordion-item { border: 1px solid var(--stroke); border-radius: 10px !important; margin-bottom: 8px; overflow: hidden; }
.prose .accordion-header { margin: 0; }

/* FAQ list: image left, text right */
.faq-list { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 480px), 1fr)); }
.faq-item { display: flex; gap: 14px; padding: 12px; align-items: flex-start; }
.faq-item + .faq-item { margin-top: 0; }
.faq-thumb { flex: 0 0 150px; width: 150px; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: linear-gradient(120deg, var(--chip-bg), #fff); display: block; }
.faq-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.faq-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.faq-body p { margin: 2px 0 0; font-size: .88rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.faq-body .more { margin-top: 6px; }
@media (max-width: 520px) {
  .faq-thumb { flex-basis: 96px; width: 96px; aspect-ratio: 1; }
  .faq-item { gap: 12px; padding: 10px; }
  .faq-body .article-title { font-size: .95rem; }
  .faq-body p { -webkit-line-clamp: 2; }
}

/* Related articles: compact list */
.related-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.related-list a { display: flex; align-items: center; gap: 12px; padding: 8px; background: #fff; border: 1px solid var(--stroke); border-radius: 12px; text-decoration: none; color: var(--title); }
.related-list a:hover { border-color: var(--brand); }
.related-thumb { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 8px; overflow: hidden; background: linear-gradient(120deg, var(--chip-bg), #fff); }
.related-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.related-text { display: flex; flex-direction: column; min-width: 0; }
.related-title { font-weight: 500; font-size: .9rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.related-list a:hover .related-title { color: var(--brand); }

/* Body text: paragraphs are black site-wide (not grey) */
p, p.muted, .lead, .prose p, .article-body p, .faq-body p { color: #1B1F2A; }
