/*
Theme Name: ASIA680 Ocean Football
Version: 1.6
Description: Responsive football editorial theme.
Text Domain: asia680-ocean
Requires PHP: 7.4
*/
:root{--bg:#042f40;--panel:#073d51;--cyan:#00bdf2;--gold:#ffc928;--muted:#a9c9d5}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:#f5f7fa;font:16px/1.65 system-ui,sans-serif;padding-bottom:90px}a{color:inherit;text-decoration:none}a:focus-visible{outline:3px solid var(--gold);outline-offset:3px}img{max-width:100%;height:auto}.wrap{max-width:1120px;margin:auto;padding:0 18px}.brand{text-align:center;padding:22px 0;font-size:32px;font-weight:900;letter-spacing:-1px;color:var(--gold)}.brand img{max-height:76px;width:auto}.topbar{position:sticky;top:0;z-index:20;background:rgba(4,47,64,.98);padding:10px 16px;border-bottom:1px solid #28677e}.admin-bar .topbar{top:32px}.hero{margin:22px 0;background:linear-gradient(125deg,#0b526c,#052b3b);border:1px solid #27677f;border-radius:18px;overflow:hidden}.hero img{display:block;width:100%;aspect-ratio: 3/1;object-fit:cover}.hero-copy{padding:24px}.hero h1{margin:0;color:var(--gold);font-size:clamp(24px,4vw,40px);line-height:1.2}.hero p{color:var(--muted);margin:10px 0 0}.ticker{padding:10px 16px;background:#145c76;border-radius:8px;color:#fff;font-size:14px}.section-title{border-left:4px solid var(--cyan);padding-left:12px;margin:28px 0 18px}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.post-card{background:var(--panel);border:1px solid #22596b;border-radius:14px;overflow:hidden}.post-card img,.placeholder{width:100%;aspect-ratio:16/9;object-fit:cover;display:block}.placeholder{background:radial-gradient(ellipse at 50% 100%,#237d84,#062d40 70%);display:grid;place-items:center;font-size:44px}.post-copy{padding:16px}.meta{font-size:12px;color:var(--muted)}.post-card h2{font-size:19px;line-height:1.35;margin:8px 0}.post-card p{font-size:14px;color:var(--muted)}.article{max-width:850px;margin:24px auto;background:var(--panel);padding:clamp(18px,4vw,40px);border-radius:14px;overflow-wrap:anywhere}.article a{color:#64d9ff;text-decoration:underline}.article h1{line-height:1.2}.article table{display:block;overflow-x:auto;border-collapse:collapse}.article td,.article th{padding:10px;border:1px solid #39768b}.pagination{padding:25px 0;text-align:center}.page-numbers{display:inline-block;padding:8px 13px;background:var(--panel);margin:3px;border-radius:6px}.page-numbers.current{background:var(--cyan);color:#042f40}.footer{text-align:center;color:var(--muted);padding:28px 16px;font-size:13px}.bottom{position:fixed;bottom:0;left:0;right:0;z-index:30;background:#083c50;border-top:1px solid #398ba8;padding:10px 16px calc(10px + env(safe-area-inset-bottom));display:flex;justify-content:center;gap:32px}.bottom a{display:flex;flex-direction:column;align-items:center;font-size:12px;min-width:60px}.bottom svg{width:24px;height:24px;stroke:var(--cyan);fill:none;stroke-width:1.8}.bottom .active svg{stroke:var(--gold)}.top-inner{text-align:center;color:var(--muted);font-size:14px;font-weight:600}@media(max-width:760px){.grid{grid-template-columns:1fr}.post-card{display:grid;grid-template-columns:38% 1fr}.post-card img,.post-card .placeholder{height:100%;min-height:120px;aspect-ratio:auto}.post-copy{padding:12px}.post-card h2{font-size:16px}.post-card p{display:none}.bottom{gap:0;justify-content:space-around}.hero img{aspect-ratio:2/1}.admin-bar .topbar{top:46px}}@media(max-width:600px){.admin-bar .topbar{top:0}}

/* Ocean Football 1.1 */
:root{--panel:#0a4054}body{font-family:"Plus Jakarta Sans",system-ui,-apple-system,sans-serif;background:radial-gradient(ellipse at 50% 0,#0b455a 0,var(--bg) 55%);min-height:100vh}.wrap{max-width:1060px}.brand{padding:9px 18px;line-height:1;min-height:0}.brand a{display:inline-flex;align-items:center}.brand img{display:block;max-height:64px;max-width:180px;object-fit:contain}.topbar{padding:8px 16px;background:#07394b;box-shadow:0 4px 16px #001b2980}.top-inner{color:#d5edf5;font-size:12px;letter-spacing:.05em}.hero{position:relative;min-height:290px;display:flex;align-items:flex-end;background:linear-gradient(0deg,#031d2bf5 0%,#06324455 70%),url(assets/stadium.svg) center/cover;border-radius:18px;box-shadow:0 12px 30px #001b2955}.hero img{position:absolute;inset:0;height:100%;width:100%;object-fit:cover}.hero:has(img):after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,#031d2bf5,transparent 90%)}.hero-copy{position:relative;z-index:1;padding:30px;max-width:700px}.hero-copy:before{content:"FOOTBALL  /  MATCH CENTER";display:inline-block;color:#8ce7ff;letter-spacing:.16em;font-weight:800;font-size:11px;margin-bottom:12px}.hero h1{font-size:clamp(26px,4vw,42px);text-shadow:0 2px 12px #00121c}.ticker{display:flex;align-items:center;gap:12px;overflow:hidden;padding:0;background:#0c4c63;border:1px solid #2a8ca8}.ticker-label{background:linear-gradient(#ffe697,#e5a91e);color:#302300;font-weight:800;padding:10px 14px;z-index:1;flex:none;font-size:12px}.ticker-window{overflow:hidden;flex:1;white-space:nowrap}.ticker-track{display:inline-block;padding-left:100%;animation:ocean-scroll 22s linear infinite}.ticker:hover .ticker-track,.ticker:focus-within .ticker-track{animation-play-state:paused}@keyframes ocean-scroll{to{transform:translateX(-100%)}}.section-title{font-size:23px;letter-spacing:-.02em}.post-card{box-shadow:0 8px 24px #001c2833;transition:transform .2s,border-color .2s}.post-card:hover{transform:translateY(-3px);border-color:#36a6c8}.post-copy .meta{color:#81d9f1}.empty-state{grid-column:1/-1;border:1px dashed #33788c;border-radius:14px;padding:28px;text-align:center;color:var(--muted)}.bottom{background:#07394bf5;backdrop-filter:blur(12px);gap:40px}.bottom a{padding:5px 18px;border-radius:12px}.bottom a.active{background:#15546a;color:var(--gold)}.footer{padding:32px 16px}.footer a:hover{color:var(--gold)}@media(max-width:760px){.hero{min-height:230px}.hero-copy{padding:20px}.brand img{max-height:56px}.bottom{gap:14px;justify-content:center}.wrap{padding:0 14px}}@media(prefers-reduced-motion:reduce){.ticker-track{animation:none;padding-left:0;white-space:normal}.post-card{transition:none}}

/* 1.2: preserve full uploaded banner, without overlay */
.wrap{max-width:1240px}.hero.hero-has-banner{display:block;min-height:0;padding:0;background:#042f40;box-shadow:0 8px 28px #001b2933}.hero.hero-has-banner:after{display:none;content:none}.hero.hero-has-banner .hero-banner{position:static;display:block;width:100%;height:auto;aspect-ratio:auto;object-fit:contain;max-width:100%}.ocean-sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.hero{margin:18px 0}.brand{padding:8px 16px}.brand img{max-height:72px}.ticker{margin-bottom:22px}@media(max-width:760px){.hero{margin:14px 0;border-radius:12px}.brand img{max-height:58px}.hero.hero-has-banner{min-height:0}}

/* 1.3 — readable match tables */
.article table:has(thead tr > th:nth-child(4):last-child){display:table;width:100%;table-layout:auto;border-collapse:separate;border-spacing:0;border:1px solid #28677d;border-radius:12px;overflow:hidden;font-size:14px;overflow-wrap:normal;background:#0b3b4e;margin:12px 0 22px}
.article table:has(thead tr > th:nth-child(4):last-child) th,.article table:has(thead tr > th:nth-child(4):last-child) td{border:0;border-bottom:1px solid #28677d;padding:12px 10px;text-align:left;vertical-align:middle;overflow-wrap:normal;word-break:normal}
.article table:has(thead tr > th:nth-child(4):last-child) thead th{background:#155970;color:#e9faff;font-size:12px;letter-spacing:.035em;text-transform:uppercase}
.article table:has(thead tr > th:nth-child(4):last-child) tbody tr:nth-child(even){background:#0e4559}.article table:has(thead tr > th:nth-child(4):last-child) tbody tr:last-child td{border-bottom:0}.article table:has(thead tr > th:nth-child(4):last-child) tbody tr:hover{background:#14546b}
.article table:has(thead tr > th:nth-child(4):last-child) th:first-child,.article table:has(thead tr > th:nth-child(4):last-child) td:first-child{white-space:nowrap;font-variant-numeric:tabular-nums}.article table:has(thead tr > th:nth-child(4):last-child) td:first-child{color:#ffc928;font-weight:700}.article table:has(thead tr > th:nth-child(4):last-child) th:last-child,.article table:has(thead tr > th:nth-child(4):last-child) td:last-child{white-space:nowrap;text-align:center}.article table:has(thead tr > th:nth-child(4):last-child) td:last-child{color:#a4eaff;font-weight:700}.article table:has(thead tr > th:nth-child(4):last-child) td:nth-child(2){color:#91d5e8;font-size:13px}.article table:has(thead tr > th:nth-child(4):last-child) td:nth-child(3){font-weight:600}
@media(max-width:650px){.article table:has(thead tr > th:nth-child(4):last-child){font-size:12px}.article table:has(thead tr > th:nth-child(4):last-child) th,.article table:has(thead tr > th:nth-child(4):last-child) td{padding:9px 6px}.article table:has(thead tr > th:nth-child(4):last-child) thead th{font-size:10px;letter-spacing:0}.article table:has(thead tr > th:nth-child(4):last-child) td:nth-child(2){font-size:11px}.article table:has(thead tr > th:nth-child(4):last-child) td:nth-child(2),.article table:has(thead tr > th:nth-child(4):last-child) td:nth-child(3){overflow-wrap:anywhere}.article table:has(thead tr > th:nth-child(4):last-child) th:first-child,.article table:has(thead tr > th:nth-child(4):last-child) td:first-child{min-width:48px}.article table:has(thead tr > th:nth-child(4):last-child) th:last-child,.article table:has(thead tr > th:nth-child(4):last-child) td:last-child{min-width:45px}}

/* 1.4 Match Center */
.a680-match-center{margin:20px 0;color:#f5faff;overflow-wrap:normal}.a680-center-head{display:flex;flex-direction:column;gap:3px;padding:18px;background:linear-gradient(120deg,#17617a,#092f42);border:1px solid #38829a;border-radius:14px;margin-bottom:20px}.a680-center-head strong{font-size:19px;color:#ffce48;letter-spacing:.04em}.a680-center-head span{font-size:13px;color:#b5dbe9}.a680-league{margin:18px 0}.a680-league-head{display:flex;align-items:center;gap:10px;background:linear-gradient(90deg,#17617a,#104458);padding:10px 14px;border-radius:10px;margin:0 0 10px;font-size:14px;color:#d9f5ff}.a680-match-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.a680-match{min-width:0;background:linear-gradient(145deg,#104c61,#082f43);border:1px solid #32768b;border-radius:14px;padding:14px;box-shadow:0 5px 14px #001b292e}.a680-match-meta{display:flex;justify-content:space-between;align-items:center;gap:6px;flex-wrap:wrap;font-size:12px}.a680-match-meta>strong{color:#ffce48;white-space:nowrap}.a680-status{font-size:11px;font-weight:700;border-radius:5px;padding:4px 7px;background:#174f71;color:#b9eaff}.a680-status.done{background:#155440;color:#a7f3c9}.a680-status.live{background:#742b38;color:#ffced5}.a680-teams{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:9px;padding:18px 0 12px}.a680-team{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;font-size:13px;line-height:1.35;overflow-wrap:anywhere}.a680-score{white-space:nowrap;color:#ffd45a;background:#062b3d;padding:7px 9px;border-radius:8px;font-size:18px;font-variant-numeric:tabular-nums}.a680-crest,.a680-league-logo{display:grid;place-items:center;position:relative;width:54px;height:54px;flex:none}.a680-logo-wrap img{grid-area:1/1;width:100%;height:100%;object-fit:contain;position:relative;background:#104456;border-radius:5px}.a680-logo-wrap>span{grid-area:1/1}.a680-league-logo{width:25px;height:25px}.a680-venue{text-align:center;font-size:11px;color:#b5dbe9;border-top:1px solid #28677d;padding-top:8px;overflow-wrap:anywhere}.a680-fallback{font-size:25px}@media(max-width:640px){.a680-match-grid{grid-template-columns:1fr}.a680-team{font-size:14px}.a680-match{padding:12px}.a680-center-head strong{font-size:16px}}

.a680-home-center{margin:24px 0 36px;scroll-margin-top:150px}.a680-day-tabs{display:flex;gap:8px;margin:12px 0}.a680-day-tabs a{flex:1;text-align:center;padding:12px 6px;border:1px solid #28677d;border-radius:9px;background:#0c4053;color:#e5f6ff;font-weight:700;text-decoration:none}.a680-day-tabs a.active{background:linear-gradient(#ffe89a,#ffc928);color:#302400;border-color:#ffe89a}.a680-cache-note{font-size:13px;color:#b4d8e5}.a680-home-center .a680-match-center{margin-top:12px}.a680-home-center .a680-match-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:12px}

/* 1.6 reader account navigation */
.ocean-account{display:flex;justify-content:center;gap:12px;max-width:520px;margin:auto}.ocean-account>*{display:flex;align-items:center;justify-content:center;flex:1;min-width:0;min-height:44px;border-radius:9px;font-size:14px;font-weight:850;letter-spacing:.05em;box-shadow:0 3px 9px #001b2955}.ocean-login{background:linear-gradient(#42d5ff,#05628c);color:white;border:1px solid #6be2ff}.ocean-register{background:linear-gradient(#fff1a3,#ffc928 55%,#ce8b06);color:#493000;border:1px solid #ffe697}.ocean-disabled{opacity:.55}.ocean-nav{gap:0;justify-content:center;padding-inline:8px}.ocean-nav a{flex:1;max-width:120px;min-width:0;padding:5px 3px}.ocean-nav .active svg{width:28px;height:28px}.ocean-nav .active{background:#15546a}.a680-home-center{scroll-margin-top:100px}body{padding-bottom:calc(100px + env(safe-area-inset-bottom))}@media(max-width:600px){.ocean-nav a{font-size:11px}.ocean-account{gap:8px}.ocean-account>*{min-height:42px}}
