/* ARISWATCH_UI_VERSION=20261018-v15 */
:root{color-scheme:light;--yellow:#f5cc16;--yellow-soft:#fff4b5;--ink:#171717;--muted:#626262;--line:#e4dfc7;--paper:#fffdf5;--green:#e4f2d6;--red:#f8e3dd;--amber:#fff0b8}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:linear-gradient(180deg,#fff5bf 0,#fffdf5 300px);color:var(--ink);font:16px/1.5 Arial,Helvetica,sans-serif}
a{color:inherit}
header{max-width:1600px;margin:auto;padding:9px 20px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.brand{display:flex;gap:10px;align-items:center;font-size:18px;font-weight:900;letter-spacing:1.6px;line-height:1.05}
.brand-logo{width:43px;height:48px;object-fit:contain;flex-shrink:0}
.brand small{display:block;font-size:14px;letter-spacing:1.1px;margin-top:5px;font-weight:800}
.edition{font-size:14px;letter-spacing:1.8px;font-weight:800;color:#50430a;white-space:nowrap}
main{max-width:1600px;margin:auto;padding:0 20px 12px}
.hero{position:relative;isolation:isolate;overflow:hidden;min-height:196px;padding:24px 28px;display:flex;align-items:center;background:var(--yellow);border:1px solid #d8b100;border-radius:12px}
.hero-photo{position:absolute;z-index:0;inset:0;width:100%;overflow:hidden;background:#262626}
.hero-photo img{display:block;width:100%;height:100%;min-height:196px;object-fit:cover;object-position:center 42%}
.hero-photo:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(245,204,22,.97) 0%,rgba(245,204,22,.91) 25%,rgba(245,204,22,.62) 47%,rgba(22,22,22,.14) 72%,rgba(0,0,0,.34) 100%)}
.photo-credit{position:absolute;right:8px;bottom:7px;padding:3px 6px;background:#111b;color:#fff;border-radius:4px;font-size:14px;z-index:3;pointer-events:auto}
.photo-credit a{text-decoration:none;color:#fff}
.hero-copy{position:relative;z-index:2;max-width:720px;width:67%}
.eyebrow{margin:0 0 9px;font-size:14px;letter-spacing:2.2px;font-weight:900}
h1{font-size:clamp(30px,3.25vw,47px);line-height:1.02;letter-spacing:-1.4px;margin:0 0 9px;font-weight:950}
h1 span{text-decoration:underline;text-decoration-color:#fff;text-decoration-thickness:4px;text-underline-offset:5px}
.intro{font-size:14px;font-weight:700;max-width:450px;margin:0;line-height:1.4}
.statusbar{display:grid;grid-template-columns:9px auto minmax(165px,auto) minmax(190px,1fr) auto;align-items:center;gap:9px 11px;padding:8px 12px;margin:9px 0 10px;background:#202019;color:#fff;border-radius:8px;border-left:4px solid var(--yellow);font-size:14px;min-height:48px}
.statusbar>strong{font-size:14px;white-space:nowrap}
.dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--yellow);box-shadow:0 0 0 3px #f5cc1626}
.dot.unconfirmed{background:#aaa;box-shadow:none}
.update-stamp{border-left:1px solid #5c542b;padding-left:10px;min-width:0}
.update-stamp>span{display:block;color:var(--yellow);font-size:14px;letter-spacing:1.2px;font-weight:800}
.update-stamp time{display:block;font-size:14px;font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap}
.update-stamp small{display:block;font-size:14px;color:#d2d0c4;line-height:1.25}
.statusbar p{margin:0;color:#e5e2d4;font-size:14px}
.statusbar .timezone-note{grid-column:2/5;color:#c9c6b5;font-size:14px;margin-top:-7px}
button,select{font:inherit}
button{cursor:pointer;border:1px solid #d4c98f;border-radius:5px;padding:6px 10px;background:#fff;color:var(--ink);font-weight:700}
button:hover{border-color:#8b7200}
button:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid #9a7900;outline-offset:2px}
button:disabled{opacity:.5;cursor:wait}
#refresh{background:var(--yellow);border:1px solid var(--yellow);white-space:nowrap;font-size:14px;padding:6px 9px}
nav{display:flex;gap:6px;align-items:center;margin:0 0 9px}
nav button{background:#fff;border-color:#d9d1aa;padding:6px 10px;font-size:14px}
nav .active{background:var(--yellow);border-color:#d2a900;color:#171717}
.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:0 0 10px}
.stat{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;padding:7px 11px;background:#fff;border:1px solid var(--line);border-radius:7px;min-height:43px}
.stat strong{font-size:21px;line-height:1;font-weight:900;font-variant-numeric:tabular-nums;white-space:nowrap}
.stat span{font-size:14px;color:var(--muted);text-align:right;line-height:1.15}
.stat:first-child{background:var(--yellow);border-color:#e0b700}
.stat:first-child span{color:#4a3d00}
.toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:2px 0 7px}
h2{font-size:15px;margin:0;font-weight:900}
.filter-control{display:flex;align-items:center;gap:6px}
.filter-control label{font-size:14px;color:var(--muted);font-weight:700}
select{padding:5px 7px;border:1px solid #d9d1aa;border-radius:5px;background:#fff;color:var(--ink);font-size:14px;max-width:190px}
.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;align-items:stretch}
.card{min-width:0;min-height:99px;display:flex;flex-direction:column;gap:5px;padding:7px 8px;background:#fff;border:1px solid var(--line);border-left:3px solid var(--yellow);border-radius:7px;box-shadow:0 1px 2px #00000008}
.card-top{display:flex;align-items:center;justify-content:space-between;gap:5px;min-width:0;line-height:1.1}
.competition{font-size:14px;color:#6b5b16;font-weight:900;letter-spacing:.35px;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.badge{flex-shrink:0;padding:3px 5px;border-radius:4px;background:#eee;font-size:14px;font-weight:900;line-height:1.1;white-space:nowrap}
.badge.available{background:var(--green);color:#35561c}
.badge.soldout{background:var(--red);color:#8e3522}
.badge.unknown{background:var(--amber);color:#735800}
.match-body{display:flex;align-items:center;gap:8px;min-width:0;flex:1}
.team-logo{position:relative;display:flex;align-items:center;justify-content:center;flex:0 0 33px;width:33px;height:33px;border:1px solid #e1d9ad;border-radius:50%;overflow:hidden;background:#fff8d3;color:#171717}
.team-logo img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;padding:2px;background:#fff;z-index:1}
.logo-fallback{display:flex;align-items:center;justify-content:center;width:100%;height:100%;font-size:14px;font-weight:900;background:linear-gradient(135deg,#f5cc16 0 50%,#171717 50% 100%);color:#fff;text-shadow:0 1px 2px #0008}
.logo-fallback[hidden]{display:none}
.match-info{min-width:0;flex:1}
.card h3{font-size:14px;line-height:1.12;letter-spacing:-.15px;margin:0 0 3px;font-weight:900;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.meta{font-size:14px;color:#5f5f5f;line-height:1.15;font-variant-numeric:tabular-nums}
.venue{font-size:14px;color:#888;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px}
.card-bottom{display:flex;align-items:center;justify-content:space-between;gap:5px;border-top:1px solid #f0ead2;padding-top:4px;margin-top:auto;min-width:0}
.seat-count{display:flex;align-items:baseline;gap:3px;min-width:0;white-space:nowrap}
.seat-count b{font-size:17px;line-height:1;font-weight:900;color:#8a6b00;font-variant-numeric:tabular-nums}
.seat-count small{font-size:14px;color:#6e6a59}
.actions{display:flex;align-items:center;gap:7px;min-width:0}
.actions a,.actions button{font-size:14px;font-weight:800;white-space:nowrap}
.actions a{color:#695100;text-decoration:none}
.actions a:hover{text-decoration:underline}
.actions button{padding:0;border:0;background:transparent;color:#666;text-decoration:underline}
.last-known{font-size:14px;color:#7b6b34}
.empty{padding:20px;background:#fff;border:1px dashed #cfc38b;border-radius:8px;grid-column:1/-1;color:var(--muted);font-size:14px}
#notice:not(:empty){padding:8px 10px;background:#fff0bd;border:1px solid #d8b13b;border-radius:6px;margin-bottom:8px;font-size:14px}
.sources-details{margin-top:10px;border-top:1px solid var(--line);padding-top:7px}
.sources-details summary{cursor:pointer;font-size:14px;font-weight:900;color:#5c4a00}
.sources{display:grid;gap:5px;margin-top:8px}
.source{border-bottom:1px solid var(--line);padding:7px 0;font-size:14px}
.source a{color:inherit}
.source small{display:block;color:var(--muted);font-size:14px}
footer{color:#69634e;font-size:14px;line-height:1.6;padding:15px 0 5px}
footer a{color:#665000}
dialog{border:1px solid var(--line);border-radius:10px;width:min(620px,92vw);max-height:80vh;padding:18px;background:#fffdf5;color:var(--ink)}
dialog::backdrop{background:#0008}
.dialog-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}
#close{padding:4px 8px}
table{border-collapse:collapse;width:100%;font-size:14px}
th,td{text-align:left;padding:8px 4px;border-bottom:1px solid var(--line)}
@media(min-width:1100px) and (max-height:900px){.hero{min-height:165px;padding:18px 24px}.hero-photo img{min-height:165px}.hero-copy h1{font-size:clamp(28px,3vw,40px)}.statusbar{min-height:43px;padding:6px 10px;margin:7px 0}.stats{margin-bottom:7px}.stat{min-height:38px;padding:5px 9px}.card{min-height:88px;padding:6px 7px;gap:4px}.team-logo{width:29px;height:29px;flex-basis:29px}.card h3{font-size:14px}.seat-count b{font-size:15px}}
@media(max-width:1200px){.cards{grid-template-columns:repeat(3,minmax(0,1fr))}.hero-copy{width:72%}.statusbar{grid-template-columns:9px auto minmax(155px,auto) 1fr auto}.statusbar .timezone-note{grid-column:2/5}}
@media(max-width:850px){main{padding:0 12px 12px}header{padding:9px 12px}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.hero{min-height:180px;padding:20px}.hero-photo{width:100%}.hero-photo img{min-height:180px}.hero-copy{width:76%}.hero h1{font-size:clamp(28px,5vw,39px)}.statusbar{grid-template-columns:9px 1fr auto;gap:7px 9px}.statusbar>strong{white-space:normal}.update-stamp{grid-column:2;grid-row:2;border-left:0;padding-left:0}.statusbar p{grid-column:2;grid-row:3}.statusbar #refresh{grid-column:3;grid-row:1/3}.statusbar .timezone-note{grid-column:2/4;margin-top:0}.edition{font-size:14px;letter-spacing:1px}}
@media(max-width:540px){body{font-size:14px}header{padding:8px 10px}.brand{font-size:15px;letter-spacing:1px}.brand-logo{width:36px;height:40px}.brand small{font-size:14px;letter-spacing:.5px}.edition{display:none}main{padding:0 9px 10px}.hero{min-height:176px;padding:17px 15px;border-radius:9px}.hero-photo{width:100%}.hero-photo img{min-height:176px;opacity:1;object-position:center}.hero-photo:after{background:linear-gradient(90deg,rgba(245,204,22,.94) 0%,rgba(245,204,22,.80) 50%,rgba(245,204,22,.48) 100%)}.hero-copy{width:100%;max-width:100%}.eyebrow{font-size:14px;letter-spacing:1.5px}.hero h1{font-size:clamp(27px,7vw,34px);letter-spacing:-.8px}.intro{font-size:14px;max-width:300px}.photo-credit{font-size:14px}.statusbar{margin:7px 0;padding:7px 8px}.update-stamp time{font-size:14px}.stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;margin-bottom:8px}.stat{padding:6px 8px;min-height:37px}.stat strong{font-size:18px}.stat span{font-size:14px}.toolbar{align-items:flex-start;flex-direction:column;gap:6px}.toolbar h2{font-size:14px}.filter-control{width:100%;justify-content:space-between}.filter-control select{max-width:none;flex:1}nav{overflow-x:auto;padding-bottom:2px}nav button{white-space:nowrap;padding:6px 8px;font-size:14px}.cards{grid-template-columns:1fr;gap:6px}.card{min-height:91px;padding:7px 8px}.card h3{font-size:14px}.team-logo{width:32px;height:32px;flex-basis:32px}.card-top .competition{font-size:14px}.actions{gap:10px}.actions a,.actions button{font-size:14px}footer{font-size:14px}}

.hero-photo.image-failed img{display:none}.hero-photo.image-failed{background:linear-gradient(110deg,#f5cc16 0%,#8d7610 45%,#222 100%)}

/* Both teams, in fixture order; compact on all screens. */
.fixture-logos{display:flex;align-items:center;gap:3px;flex-shrink:0}
.fixture-logos .team-logo{width:27px;height:27px;flex-basis:27px}
.logo-divider{font-size:14px;color:#645c36}

/* Readable layout: no height-based shrinking or truncated fixture names. */
.cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.card{min-height:180px;padding:16px;gap:12px}
.card-top{flex-wrap:wrap;gap:8px;line-height:1.4}
.competition{white-space:normal;overflow:visible;letter-spacing:0}
.badge{font-size:14px;padding:5px 8px;white-space:normal}
.match-body{flex-wrap:wrap;gap:10px}
.match-info{flex-basis:100%}
.card h3{font-size:19px;line-height:1.35;display:block;overflow:visible;-webkit-line-clamp:unset;margin-bottom:6px;overflow-wrap:break-word}
.meta{font-size:16px;line-height:1.5;color:#424242}
.venue{font-size:14px;color:#555;white-space:normal;line-height:1.4}
.fixture-logos{gap:6px}
.fixture-logos .team-logo{width:40px;height:40px;flex-basis:40px}
.logo-divider{font-size:16px}
.card-bottom{flex-wrap:wrap;gap:10px;padding-top:10px}
.seat-count b{font-size:26px}
.seat-count small{font-size:14px}
.actions{gap:14px}
.actions a,.actions button{font-size:15px;min-height:36px;display:inline-flex;align-items:center}
nav{flex-wrap:wrap;gap:8px}
nav button,select,#refresh{font-size:16px;padding:10px 12px;min-height:44px}
h2,.toolbar h2{font-size:22px}
.stat{padding:12px;min-height:64px}
.stat strong{font-size:30px}
.stat span{font-size:15px;line-height:1.4}
.statusbar{display:flex;flex-wrap:wrap;gap:12px;padding:14px}
.statusbar>strong,.update-stamp time{font-size:17px;white-space:normal}
.statusbar p,.update-stamp small,.statusbar .timezone-note{font-size:14px;line-height:1.5;margin:0}
.statusbar .timezone-note{flex-basis:100%}
.intro{font-size:16px;line-height:1.5}
.photo-credit{font-size:12px}
.hero{padding-bottom:42px}
.toolbar{flex-wrap:wrap}
.filter-control{flex-wrap:wrap}
footer,table,.source,.source small,.sources-details summary,.empty,#notice:not(:empty){font-size:14px}
@media(max-width:1100px){.cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.cards{grid-template-columns:1fr}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.hero-copy{width:100%}.card h3{font-size:19px}.card{padding:14px}.stat{flex-wrap:wrap}.stat span{text-align:left}.brand small{font-size:12px}}

/* Confirmed fixtures grouped by availability. */
.stats{grid-template-columns:repeat(3,minmax(0,1fr))}
.event-group-title{grid-column:1/-1;font-size:23px;line-height:1.4;padding:12px 16px;margin:10px 0 0;border-radius:8px;background:#e4f2d6;border-left:5px solid #426b22}
.event-group-title.soldout{background:#f8e3dd;border-left-color:#8e3522;margin-top:24px}
.event-group-title span{font-size:17px;font-weight:600}
@media(max-width:650px){.stats{grid-template-columns:1fr}.event-group-title{font-size:21px}}

.past-games{margin-top:36px;padding-top:24px;border-top:3px solid #d4b52a}
.past-games[hidden]{display:none}
.past-games>h2{font-size:25px}
.archive-intro{font-size:15px;color:#555;margin:8px 0 18px}
.archive-card{background:#fffdf2}
.archive-result{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;border-top:1px solid #e4dfc7;padding-top:12px;margin-top:auto}
.archive-result strong{font-size:30px;font-variant-numeric:tabular-nums}
.archive-result span{font-size:14px;color:#555}

/* Separate upcoming and completed sold-out counts. */
.stats{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:1000px){.stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:420px){.stats{grid-template-columns:1fr}}

.stat-ratio{flex-direction:column;align-items:flex-start;justify-content:center;gap:7px}
.stat-ratio strong{font-size:26px;line-height:1.2;white-space:normal;overflow-wrap:anywhere}
.stat-ratio span{text-align:left;line-height:1.4}

/* Larger emblems for both upcoming and archived matches. */
.fixture-logos{gap:12px}
.fixture-logos .team-logo{width:64px;height:64px;flex-basis:64px;border-radius:10px;background:#fff}
.fixture-logos .team-logo img{padding:5px;object-fit:contain}
.fixture-logos .logo-fallback{font-size:20px}
.logo-divider{font-size:22px}
@media(max-width:540px){.fixture-logos .team-logo{width:56px;height:56px;flex-basis:56px}}

/* More of the real arena, with contrast confined to the text panel. */
.hero{min-height:330px;padding:26px 30px 44px;align-items:center}
.hero-photo img{min-height:330px;object-position:center 45%}
.hero-photo:after{background:linear-gradient(90deg,rgba(0,0,0,.12),transparent 60%)}
.hero-copy{width:46%;max-width:650px;padding:22px 24px;background:rgba(245,204,22,.94);border-radius:10px}
.hero-copy h1{font-size:clamp(30px,3vw,46px)}
.hero-copy .intro{max-width:100%;font-size:16px}
.next-match{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:18px 0;padding:22px;background:#fff8d2;border:2px solid #e4bf18;border-radius:12px}
.next-match[hidden]{display:none}
.next-copy{flex:1;min-width:0}.next-copy h2{font-size:25px;line-height:1.35}.next-copy p{font-size:16px;margin:8px 0 0}
.next-copy .next-eyebrow{font-size:13px;letter-spacing:1px;font-weight:900;margin:0 0 8px;color:#60500b}
.next-actions{display:flex;flex-direction:column;gap:10px;align-items:stretch}
.next-actions strong{font-size:18px;color:#35561c}.next-actions button{background:transparent}
.primary-link{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:11px 16px;background:#171717;color:#ffdf35;border-radius:7px;text-decoration:none;font-weight:800;font-size:16px}
.actions{flex-wrap:wrap}.card-bottom{align-items:flex-start}.actions a{color:#473700}
.update-age{display:block!important;font-size:16px!important;font-weight:800;letter-spacing:0!important;margin-bottom:5px}
.update-age.fresh{color:#bfe3a3!important}.update-age.aging{color:#ffe17b!important}.update-age.old{color:#ffb5a5!important}
.visit-meter{display:inline-flex;align-items:center;gap:8px;float:right;font-size:13px;color:#625d4c;padding:4px 9px;border:1px solid #ded6b2;border-radius:6px}
.visit-meter strong{font-size:15px;color:#292719;font-variant-numeric:tabular-nums}
.share-options{display:flex;flex-wrap:wrap;gap:10px}.share-options button{min-height:44px}#share-description{font-size:18px;font-weight:700}
@media(max-width:1000px){.hero-copy{width:58%}.next-match{flex-wrap:wrap}.next-copy{flex-basis:65%}.next-actions{flex-direction:row;align-items:center;flex-wrap:wrap;width:100%}}
@media(max-width:650px){.hero{min-height:360px;padding:150px 12px 40px;align-items:flex-end}.hero-photo img{min-height:360px;object-position:center}.hero-copy{width:100%;padding:16px}.hero-copy h1{font-size:30px}.hero-photo:after{background:transparent}.next-match{padding:16px;gap:16px}.next-copy{flex-basis:100%}.next-copy h2{font-size:22px}.next-actions{flex-direction:column;align-items:stretch}.visit-meter{float:none;margin-bottom:10px;display:flex;width:max-content}}

/* Football archive */
.badge.completed{background:#eee8ce;color:#51430a}
.archive-tickets{display:flex;gap:8px;align-items:baseline;border-top:1px solid #dfcf86;padding-top:9px}
.archive-tickets strong{font-size:25px;font-variant-numeric:tabular-nums}
.archive-tickets span{font-size:14px;color:#51430a}

.filter-control[hidden]{display:none}
.stats.football-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:540px){.stats.football-stats{grid-template-columns:1fr}}
