/* Font: Manrope, loaded via <link> in each page head (see preconnect + stylesheet tags) */

/* Design system */
:root { --navy:#10263f; --blue:#1e75bb; --red:#d9343b; --green:#179b73; --ink:#142130; --muted:#637282; --line:#dce4ea; --surface:#fff; --canvas:#edf2f5; --pale:#f7fafc; --blue-pale:#eaf5fd; --green-pale:#e8f7f1; --red-pale:#fff0f1; --radius-sm:8px; --radius:14px; --radius-lg:20px; --shadow-sm:0 2px 7px rgba(16,38,63,.08); --shadow:0 12px 28px rgba(16,38,63,.1); --shadow-lg:0 22px 48px rgba(16,38,63,.18); --ease:160ms ease; }
* { box-sizing:border-box; }
html { min-width:320px; background:var(--canvas); }
body { margin:0; background:var(--canvas); color:var(--ink); font-family:Manrope,"Segoe UI",system-ui,sans-serif; font-size:14px; line-height:1.5; }
button,input,select { font:inherit; }
button { min-height:38px; cursor:pointer; border:1px solid transparent; border-radius:var(--radius-sm); padding:9px 13px; background:var(--blue); color:#fff; font-size:.8rem; font-weight:800; line-height:1; transition:transform var(--ease),background var(--ease),box-shadow var(--ease),border-color var(--ease); }
button:hover { background:#175e9a; box-shadow:var(--shadow-sm); transform:translateY(-1px); }
button:active { box-shadow:none; transform:translateY(0); }
button:disabled { cursor:not-allowed; opacity:.55; transform:none; box-shadow:none; }
button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,a:focus-visible { outline:3px solid #8ecbf2; outline-offset:3px; }
input,select { min-height:42px; width:100%; border:1px solid #bdcad4; border-radius:var(--radius-sm); padding:9px 11px; background:var(--surface); color:var(--ink); transition:border-color var(--ease),box-shadow var(--ease); }
input::placeholder { color:#8492a0; }
input:hover,select:hover { border-color:#94adc0; }
input:focus,select:focus { border-color:var(--blue); box-shadow:0 0 0 3px rgba(30,117,187,.15); outline:0; }
.danger { background:var(--red); }.danger:hover { background:#b6262d; }
.eyebrow { display:block; color:#8fcff4; font-size:.66rem; font-weight:800; letter-spacing:.14em; line-height:1.2; }
/* Standalone wrapper for embedding the public scoreboard outside index.php (e.g. WordPress shortcode) */
.livescore-embed { overflow:hidden; border-radius:var(--radius-lg); background:var(--canvas); box-shadow:var(--shadow); }.livescore-embed .live-header { background:linear-gradient(105deg,var(--navy),#183a5e); border-radius:var(--radius-lg) var(--radius-lg) 0 0; }.livescore-embed .table-responsive { padding-top:20px; }

/* Public portal */
.public-page { min-height:100vh; background:linear-gradient(180deg,var(--navy) 0,var(--navy) 208px,var(--canvas) 208px); }
.live-header { max-width:1180px; min-height:138px; margin:0 auto; padding:29px 28px 34px; display:flex; align-items:center; justify-content:space-between; gap:20px; color:#fff; }
.live-header h1 { margin:4px 0 0; color:#fff !important; font-size:clamp(1.65rem,4vw,2.45rem); font-weight:800; line-height:1.1; }.live-header h1::after { display:block; width:48px; height:4px; margin-top:12px; border-radius:10px; background:var(--red); content:""; }
.live-status { display:grid; grid-template-columns:9px auto; align-items:center; gap:2px 8px; min-width:167px; padding:10px 12px; border:1px solid rgba(255,255,255,.2); border-radius:var(--radius-sm); background:rgba(255,255,255,.08); font-size:.76rem; font-weight:700; }.live-status small { grid-column:2; color:#c6d5e2; font-size:.65rem; font-weight:600; }
.live-dot { width:8px; height:8px; border-radius:50%; background:#55d9ad; animation:live-pulse 1.9s infinite; }
.table-responsive { max-width:1180px; margin:0 auto; padding:0 20px 34px; }
#scores { width:100%; border-spacing:0; border-collapse:separate; } #scores > thead { display:none; } #scores > tbody,#scores tr { display:block; } #scores td,#scores th { border:0; }
#scores .hero-row { overflow:hidden; border-radius:var(--radius-lg); background:var(--surface); box-shadow:var(--shadow); }.ad-image { display:block; width:100%; height:clamp(120px,20vw,224px); object-fit:cover; }
.category-row { margin-top:22px; }.category-row th { display:flex; align-items:center; min-height:44px; padding:10px 14px; border-left:4px solid var(--red); border-radius:var(--radius-sm) var(--radius-sm) 0 0; background:linear-gradient(105deg,var(--navy),#183a5e); color:#fff; font-size:.79rem; font-weight:800; letter-spacing:.035em; }.category-row th::before { width:7px; height:7px; margin-right:9px; border-radius:50%; background:#8fcff4; content:""; }.live-now-badge { display:inline-flex; align-items:center; gap:5px; margin-left:auto; border-radius:999px; padding:4px 10px; background:var(--green); color:#fff; font-size:.62rem; font-weight:800; letter-spacing:.05em; animation:badge-pulse 2.1s infinite; }.live-now-badge::before { display:inline-block; width:6px; height:6px; border-radius:50%; background:#fff; content:""; }
.match-row { margin-top:2px; }.match-cell { display:block; padding:0; }.match-card { overflow:hidden; border:1px solid var(--line); border-radius:0 0 var(--radius) var(--radius); background:var(--surface); box-shadow:var(--shadow-sm); transition:box-shadow var(--ease),transform var(--ease); }.match-card:hover { box-shadow:var(--shadow); transform:translateY(-2px); }
.match-meta { display:flex; align-items:center; gap:8px; min-height:43px; padding:9px 15px; border-bottom:1px solid var(--line); background:#fbfcfd; color:var(--muted); font-size:.72rem; font-weight:700; }.match-meta img { display:none; }.match-date { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.match-status { margin-left:auto; flex:0 0 auto; border-radius:999px; padding:5px 9px; background:var(--blue-pale); color:#17649f; font-size:.66rem; font-weight:800; letter-spacing:.035em; }.match-status.status-live { background:var(--green-pale); color:#107151; }.match-status.status-break { background:#fff7df; color:#936b00; }.match-status.status-final { background:#edf0f3; color:#536170; }.match-status.status-paused { background:var(--red-pale); color:#a5232a; }.match-status.status-live { animation:badge-pulse 2.1s infinite; }
.teams { display:grid; grid-template-columns:minmax(0,1fr) 96px minmax(0,1fr); align-items:center; gap:8px; padding:16px; text-align:center; }.team-pane { min-width:0; }.team-pane:first-child { text-align:right; }.team-pane:last-child { text-align:left; }.team-name { overflow:hidden; color:var(--ink); font-size:clamp(.78rem,2.2vw,.98rem); font-weight:800; line-height:1.3; text-overflow:ellipsis; white-space:nowrap; }
.fixture-score { display:flex; align-items:center; justify-content:center; gap:8px; min-height:53px; border-radius:10px; background:var(--pale); color:var(--navy); font-size:1.7rem; font-weight:800; line-height:1; }.fixture-score .score { min-width:17px; }.score-separator { color:#95a4b0; font-size:1.15rem; }
.events { display:none; margin-top:10px; padding-top:9px; border-top:1px dashed var(--line); color:var(--muted); font-size:.71rem; line-height:1.5; }.events.open { display:block; animation:reveal .2s ease-out; }.event-line { padding:3px 0; }.event-icon { width:14px; height:14px; vertical-align:-2px; }.important-event { color:var(--ink); font-weight:700; }
.more-events { display:block; width:max-content; margin:0 auto 14px; border:0; background:transparent; color:var(--blue); font-size:.69rem; font-weight:800; letter-spacing:.04em; text-decoration:none; }.more-events:hover { background:transparent; box-shadow:none; color:var(--navy); transform:none; text-decoration:underline; }
.empty-state { display:grid; min-height:260px; place-items:center; border:1px dashed #b7c8d5; border-radius:var(--radius-lg); background:var(--surface); color:var(--muted); text-align:center; }.empty-state strong { display:block; margin-bottom:5px; color:var(--navy); font-size:1rem; }.empty-state p { margin:0; font-size:.8rem; }.score-changed .match-card { animation:score-flash 3s ease; }.ad-slot { min-height:90px; max-width:970px; margin:0 auto 24px; padding:0 12px; }

/* Login and administrator creation */
.login-page { min-height:100vh; display:grid; place-items:center; padding:26px 20px; background:radial-gradient(circle at 82% 12%,#2d83bd 0,transparent 30%),linear-gradient(135deg,#0e233a,#173c60 57%,#e8f0f4 57%); }.login-box { width:min(438px,100%); padding:36px; border-radius:var(--radius-lg); background:var(--surface); box-shadow:var(--shadow-lg); }.login-box::before { display:block; width:44px; height:5px; margin-bottom:20px; border-radius:99px; background:var(--red); content:""; }.login-box h1 { margin:0 0 7px; color:var(--navy); font-size:1.55rem; line-height:1.2; }.login-box h1 + .alert { margin-top:18px; }.login-box form { display:grid; gap:9px; margin-top:22px; }.login-box label { color:var(--muted); font-size:.75rem; font-weight:800; }.login-box button { min-height:44px; margin-top:6px; }.subtle { margin:22px 0 0; color:var(--muted); font-size:.75rem; text-align:center; }.alert { border-left:4px solid currentColor; border-radius:var(--radius-sm); padding:11px 12px; font-size:.8rem; font-weight:700; }.alert::before { margin-right:7px; font-weight:800; }.alert.error::before { content:"⚠"; }.alert.success::before { content:"✓"; }.alert.error { background:var(--red-pale); color:#a22128; }.alert.success { background:var(--green-pale); color:#116b4e; }
/* Semantic button variants (primary = default blue, danger = red, success = green, secondary = outline) */
.success { background:var(--green); }.success:hover { background:#127c5c; }.secondary { border-color:var(--line); background:var(--surface); color:var(--navy); }.secondary:hover { background:var(--pale); border-color:#b9c8d3; box-shadow:var(--shadow-sm); }

/* Admin dashboard */
.panel-page { min-height:100vh; }.panel-header { position:sticky; z-index:5; top:0; display:flex; align-items:center; justify-content:space-between; gap:20px; min-height:72px; padding:13px max(24px,calc((100% - 1240px)/2)); border-bottom:3px solid var(--red); background:linear-gradient(105deg,var(--navy),#173a5b); color:#fff; box-shadow:0 3px 14px rgba(16,38,63,.16); }.panel-header strong { display:block; margin-top:3px; font-size:1rem; }.panel-header nav { display:flex; align-items:center; gap:9px; }.panel-header a { min-height:36px; display:inline-flex; align-items:center; padding:0 9px; border-radius:6px; color:#fff; font-size:.76rem; font-weight:800; text-decoration:none; }.panel-header a:hover { background:rgba(255,255,255,.12); }.panel-header a:last-child { border:1px solid rgba(255,255,255,.35); }
.panel-layout { max-width:1240px; margin:0 auto; padding:26px 20px 48px; display:grid; grid-template-columns:300px minmax(0,1fr); align-items:start; gap:26px; }.toolbar { position:sticky; top:94px; display:grid; gap:12px; }.toolbar details,.category-manager { overflow:hidden; border:1px solid var(--line); border-radius:var(--radius); background:var(--surface); box-shadow:var(--shadow-sm); }.toolbar summary { min-height:50px; display:flex; align-items:center; padding:0 15px; cursor:pointer; color:var(--navy); font-size:.82rem; font-weight:800; list-style:none; }.toolbar summary::-webkit-details-marker { display:none; }.toolbar summary::before { width:9px; height:9px; margin-right:9px; border-right:2px solid var(--blue); border-bottom:2px solid var(--blue); content:""; transform:rotate(-45deg); transition:transform var(--ease); }.toolbar details[open] summary { border-bottom:1px solid var(--line); background:var(--pale); }.toolbar details[open] summary::before { transform:rotate(45deg); }.toolbar details form { display:grid; gap:8px; padding:14px; }.toolbar label { color:var(--muted); font-size:.71rem; font-weight:800; }.toolbar details button { min-height:42px; margin-top:4px; }.category-manager { padding:15px; }.category-manager h2 { margin:0 0 9px; color:var(--navy); font-size:.87rem; }.category-manager #categories { max-height:250px; overflow-y:auto; padding-right:4px; }.category-manager .category-row { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:8px; padding:9px 0; border-top:1px solid var(--line); font-size:.76rem; font-weight:700; }.category-name { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.category-manager .category-row button { min-height:30px; padding:6px 7px; border:1px solid #f2c5c8; border-radius:6px; background:var(--red-pale); color:#ad252b; font-size:.65rem; }.category-manager .category-row button:hover { background:var(--red); color:#fff; }.empty-categories { margin:0; color:var(--muted); font-size:.76rem; }.toolbar > .danger { min-height:42px; border:1px solid #efb7ba; background:var(--surface); color:#ad252b; }.toolbar > .danger:hover { background:var(--red-pale); box-shadow:none; }
.workspace { min-width:0; }.workspace-heading { display:flex; align-items:end; justify-content:space-between; gap:16px; margin-bottom:17px; }.workspace-heading .eyebrow { color:var(--blue); }.panel-layout h1 { margin:3px 0 0; color:var(--navy); font-size:1.55rem; line-height:1.2; }.dashboard-stats { display:grid; grid-template-columns:repeat(4,minmax(70px,1fr)); gap:8px; }.dashboard-stats div { min-width:76px; padding:9px 10px; border:1px solid var(--line); border-radius:var(--radius-sm); background:var(--surface); box-shadow:var(--shadow-sm); text-align:center; }.dashboard-stats strong,.dashboard-stats span { display:block; }.dashboard-stats strong { color:var(--navy); font-size:1.15rem; line-height:1.1; }.dashboard-stats span { margin-top:3px; color:var(--muted); font-size:.61rem; font-weight:800; letter-spacing:.025em; }.notice { min-height:20px; margin:0; border-radius:var(--radius-sm); color:#116b4e; font-size:.76rem; font-weight:700; }.notice:not(:empty) { padding:9px 11px; background:var(--green-pale); animation:reveal .18s ease-out; }.notice.error { background:var(--red-pale); color:#a22128; }
.admin-match { position:relative; overflow:hidden; margin-bottom:18px; border:1px solid var(--line); border-radius:var(--radius); background:var(--surface); box-shadow:var(--shadow-sm); }.admin-match::before { position:absolute; inset:0 auto 0 0; width:4px; background:var(--red); content:""; }.admin-match.is-live::before { background:var(--green); animation:badge-pulse 2.1s infinite; }.admin-match h2 { margin:0; padding:17px 20px 10px; color:var(--navy); font-size:1rem; font-weight:800; text-align:center; }.status-form { display:flex; flex-wrap:wrap; justify-content:center; gap:6px; padding:0 16px 14px; border-bottom:1px solid var(--line); }.status-form button { min-height:31px; padding:6px 8px; border:1px solid #b8d5e9; border-radius:999px; background:var(--blue-pale); color:#155f99; font-size:.65rem; }.status-form button:hover { background:var(--blue); color:#fff; }.admin-grid { display:grid; grid-template-columns:minmax(0,1fr) 180px minmax(0,1fr); gap:14px; padding:16px; }.event-form { display:grid; gap:8px; align-content:start; padding:14px; border:1px solid var(--line); border-radius:var(--radius-sm); background:var(--pale); }.event-form h3 { margin:0 0 2px; color:var(--navy); font-size:.86rem; }.event-actions { display:flex; flex-wrap:wrap; gap:5px; }.event-actions button { min-height:32px; padding:6px 7px; font-size:.65rem; }.match-score { padding:15px 5px; color:var(--navy); font-size:1.18rem; font-weight:800; text-align:center; }.match-score .events { display:block; margin:12px 0 0; color:var(--ink); font-size:.71rem; font-weight:500; text-align:left; }.delete-event { float:right; min-height:22px; padding:0 4px; border:0; background:transparent; color:var(--red); font-size:.95rem; }.delete-event:hover { background:transparent; box-shadow:none; color:#9c2026; transform:none; }.delete-match { display:block; min-height:33px; margin:0 auto 16px; border:1px solid #f2c5c8; background:var(--surface); color:#ad252b; font-size:.67rem; }.delete-match:hover { background:var(--red-pale); box-shadow:none; }

/* Breakpoints */
@media (max-width:1100px) { .panel-layout { grid-template-columns:270px minmax(0,1fr); gap:18px; }.dashboard-stats { grid-template-columns:repeat(2,1fr); }.admin-grid { grid-template-columns:minmax(0,1fr) 150px minmax(0,1fr); } }
@media (max-width:820px) { .panel-header { position:relative; }.panel-layout { grid-template-columns:1fr; padding-top:18px; }.toolbar { position:static; grid-template-columns:repeat(2,minmax(0,1fr)); }.category-manager { grid-row:span 2; }.toolbar > .danger,.notice { grid-column:1; }.workspace-heading { align-items:start; }.dashboard-stats { min-width:285px; }.admin-grid { grid-template-columns:minmax(0,1fr) 170px; }.admin-grid .event-form:last-child { grid-column:1/-1; }.match-score { grid-column:2; grid-row:1; } }
@media (max-width:600px) { .public-page { background:linear-gradient(180deg,var(--navy) 0,var(--navy) 183px,var(--canvas) 183px); }.live-header { min-height:116px; padding:22px 18px 27px; }.live-status { min-width:auto; padding:8px; }.live-status small { display:none; }.table-responsive { padding:0 12px 24px; }.teams { grid-template-columns:minmax(0,1fr) 75px minmax(0,1fr); padding:13px 10px; }.fixture-score { min-height:47px; font-size:1.45rem; }.team-name { white-space:normal; }.match-meta { padding-inline:11px; }.match-status { max-width:118px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.login-box { padding:27px 22px; }.panel-header { align-items:flex-start; padding:13px 16px; }.panel-header nav { display:grid; gap:4px; text-align:right; }.panel-header a { min-height:29px; padding:4px 6px; }.toolbar { grid-template-columns:1fr; }.category-manager { grid-row:auto; }.toolbar > .danger,.notice { grid-column:auto; }.workspace-heading { display:block; }.dashboard-stats { min-width:0; margin-top:14px; grid-template-columns:repeat(2,1fr); }.admin-grid { grid-template-columns:1fr; padding:12px; }.admin-grid .event-form:last-child,.match-score { grid-column:auto; grid-row:auto; }.match-score { padding:8px 3px; }.status-form { justify-content:flex-start; }.status-form button { min-height:36px; }.event-actions button { min-height:38px; } }
@media (max-width:420px) { .live-header h1 { font-size:1.45rem; }.live-status { font-size:.65rem; }.live-dot { width:7px; height:7px; }.category-row th { font-size:.72rem; }.match-date { max-width:116px; }.panel-layout { padding-inline:12px; }.dashboard-stats div { min-width:0; }.login-page { padding:14px; }.login-box { border-radius:var(--radius); }.event-actions { display:grid; grid-template-columns:1fr 1fr; }.event-actions button { width:100%; } }

/* Motion and printing */
@keyframes live-pulse { 0%,100% { box-shadow:0 0 0 0 rgba(85,217,173,.5); } 55% { box-shadow:0 0 0 6px rgba(85,217,173,0); } }
@keyframes reveal { from { opacity:0; transform:translateY(-4px); } to { opacity:1; transform:translateY(0); } }
@keyframes score-flash { 0%,100% { background:var(--surface); } 18% { background:#e2f7ee; } }
@keyframes badge-pulse { 0%,100% { box-shadow:0 0 0 0 rgba(23,155,115,.35); } 55% { box-shadow:0 0 0 5px rgba(23,155,115,0); } }
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto !important; animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; } }
@media print { body,.public-page { background:#fff; }.live-header { min-height:auto; margin:0; padding:0 0 12px; color:#000; background:#fff; border-bottom:2px solid #000; }.live-header h1::after,.live-status,.ad-slot,.more-events { display:none; }.table-responsive { max-width:none; padding:0; }.category-row { margin-top:12px; }.category-row th { color:#000; border:1px solid #000; background:#fff; }.match-card { border:1px solid #777; box-shadow:none; break-inside:avoid; }.events { display:block; }.teams { padding:10px; }.panel-page { background:#fff; }.panel-header,.toolbar,.dashboard-stats,.status-form,.event-form,.delete-match,.delete-event { display:none; }.panel-layout { display:block; padding:0; }.admin-match { box-shadow:none; } }