/* Shared dark sports UI. Loaded after the existing structural styles. */
:root{--ref-bg:#0b1121;--ref-header:#080d17;--ref-panel:#111a2e;--ref-border:#263047;--ref-text:#e9edf7;--ref-muted:#929fb7;--ref-yellow:#315ba7;--ref-live:#ef354d;--ref-width:1220px;color-scheme:dark}
body.ref-theme{background:linear-gradient(135deg,#080d18,#10182d);color:var(--ref-text);font-size:14px;line-height:1.7}
body.ref-theme a:hover{color:#8cb5ff}
body.ref-theme main.W_1200{padding-top:28px;padding-bottom:40px}
.ref-site-header{background:#080d17;border-bottom:1px solid #20283b;box-shadow:none}
.ref-header-inner{align-items:center;min-height:64px;gap:22px;flex-wrap:nowrap}
.ref-brand-mark{background:linear-gradient(135deg,#42c2ff,#315ba7);color:white;border-radius:7px}
.ref-main-nav{margin-left:auto;flex:0 1 auto}
.ref-main-nav ul{height:64px}
.ref-main-nav .nav-link{padding:0 13px;font-size:14px;font-weight:500}
.ref-main-nav .nav-link.is-active,.ref-main-nav .nav-link:hover{color:#8cb5ff;background:transparent}
.ref-main-nav .nav-link.is-active:after{background:#477cda}
.ui-menu-toggle{display:none}
body.ref-theme .site-search-link{background:transparent;border-color:#29334b;border-radius:8px;min-width:64px}
body.ref-theme :is(.section-panel,.site-intro-section,.seo-nav-section,.detail-match-card,.detail-info-box,.detail-inter-box,.detail-article,.sidebar-box,.inter-grid-section,.inter-header,.inter-matches,.pagination-wrap,.topic-pagination){background:#111a2e;border-color:#263047;border-radius:12px;box-shadow:none}
body.ref-theme :is(.sidebar-title,.date-header,.video-title,.ref-panel-heading){background:transparent;border-color:#263047;color:#ecf0fa}
body.ref-theme :is(.site-intro-desc,.inter-desc,.inter-meta,.article-meta,.news-date,.news-info p,.sl-time,.sl-league,.ref-match-league,.ref-match-time span,.news-thumb-meta,.detail-breadcrumb,.breadcrumb){color:#929fb7}
body.ref-theme :is(.news-info h3 a,.news-thumb-title,.inter-grid-title,.team-name,.sl-teams,.section-title,.article-title,.search-result-title,.seo-nav-col h3 a,.ref-match-time strong){color:#e9edf7}
body.ref-theme :is(.detail-breadcrumb a,.breadcrumb a,.sidebar-title a){color:#a8b7d0}
body.ref-theme :is(.ref-heading-kicker,.inter-more,.ref-topic-hero .inter-more){color:#7aa8f8}
body.ref-theme :is(.page-hero,.ref-topic-hero){border-left-color:#315ba7}
body.ref-theme .ref-topic-hero :is(.inter-desc,.inter-meta){color:#a4b2ca}
body.ref-theme .ref-news-list .news-info h3 a,
body.ref-theme .ref-topic-list .inter-grid-title,
body.ref-theme .ref-competition-table .seo-nav-col h3 a{color:#e9edf7}
body.ref-theme .ref-news-list .news-info h3 a:hover{color:#8cb5ff}
body.ref-theme .match-score,body.ref-theme .article-news-list h3{color:#e9edf7}
body.ref-theme .detail-info-content p{color:#c6d0e2}
body.ref-theme .detail-info-content .tip{color:#a4b2ca}
body.ref-theme .detail-inter-box li a{background:#172238;border:1px solid #2a3751;color:#bac6da;border-radius:7px}
body.ref-theme .ref-article-panel .article-topic-tags a{background:#172238;border-color:#2a3751;color:#bac6da}
body.ref-theme .ref-article-panel .article-topic-tags a:hover{background:#244985;border-color:#416cb6;color:#fff}
body.ref-theme :is(.ref-board-tabs a,.live-filter a,.article-topic-tags a,.ref-home-topics a,.pagination a,.pagination span,.topic-pagination a,.topic-pagination span,.btn-upcoming){background:#172238;border:1px solid #2a3751;color:#bac6da;border-radius:7px}
body.ref-theme :is(.ref-board-tabs a.is-active,.live-filter a.active,.pagination .active,.topic-pagination .active,.ref-search-form button){background:#244985;border-color:#315ba7;color:#fff}
body.ref-theme :is(.ref-board-tabs a:hover,.live-filter a:hover,.article-topic-tags a:hover,.ref-home-topics a:hover){background:#244985;border-color:#416cb6;color:#fff}
body.ref-theme :is(.ref-home-news .news-list li,.ref-news-list .news-list li,.inter-grid-card,.ref-competition-table .seo-nav-col,.ref-topic-detail .inter-matches .match-row,.search-result){background:#111a2e;border-color:#263047;color:#e9edf7}
body.ref-theme :is(.ref-home-news .news-list li:hover,.ref-news-list .news-list li:hover,.inter-grid-card:hover,.ref-match-row:hover){background:#172238;border-color:#385787;box-shadow:none}
body.ref-theme :is(.ref-article-panel .article-content,.detail-info-content,.article-content p,.article-content li){color:#c6d0e2}
body.ref-theme :is(.ref-article-panel .article-content a,.ref-competition-table .seo-match-list a){color:#8cb5ff}
body.ref-theme :is(.ref-search-form input,.search-input){background:#0c1425;border-color:#32405c;color:#e9edf7}
body.ref-theme :is(.ref-search-form button:hover,.ref-search-results .search-result-index){background:#315ba7;color:#fff}
body.ref-theme :is(.article-nav,.article-topic-tags,.article-news-list,.sidebar-live-list li,.sidebar-news-list li,.sidebar-inter-list li,.news-list li,.inter-grid-title){border-color:#263047}
body.ref-theme .ref-detail-tabs a{color:#b9c7dd!important}
body.ref-theme .ref-match-hero{background:radial-gradient(ellipse at center,#233a65,#101a30 70%);border:1px solid #2c3e5d!important;box-shadow:none!important}
body.ref-theme .ref-match-hero .vs-score .score{color:#fff}
body.ref-theme .ref-match-hero .team-logo-lg{background:#eaf0f8}
.ref-content-grid{grid-template-columns:minmax(0,1fr) 300px;gap:20px}
.ref-home-sidebar{gap:20px;align-content:start}
.ref-home-sidebar .sidebar-title,.ref-content-sidebar .sidebar-title{padding:15px 16px;border-bottom:1px solid #263047}
.ref-match-row{grid-template-columns:64px minmax(0,1fr) 92px;grid-template-rows:auto auto;gap:3px 14px;min-height:110px;padding:14px 18px;background:#111a2e;border-color:#263047}
.ref-match-time{grid-column:1;grid-row:1 / 3;align-items:center}
body.ref-theme .ref-match-time strong{font-size:13px;font-weight:500;color:#a5b3cd}
.ref-match-league{grid-column:2;grid-row:1;align-self:end;font-size:12px}
.ref-match-teams{grid-column:2;grid-row:2;display:flex;flex-direction:column;align-items:stretch;gap:3px;font-size:14px}
.ref-match-teams>b{display:none}
.ref-team{justify-content:flex-start;gap:8px}
.ref-team-away .team-name{order:2}
.ref-team-away img{order:1}
.ref-team .team-name{max-width:100%;overflow-wrap:anywhere;white-space:normal}
.ref-team .team-logo-sm{width:22px;height:22px;min-width:22px;object-fit:contain;border:0;border-radius:0;background:transparent}
.ref-match-action{grid-column:3;grid-row:1 / 3;min-height:34px;border-radius:20px;background:#223a65;color:#e2ebff!important;font-size:12px}
.ref-match-action.is-live{background:#ef354d}
.ref-match-action.is-live:before{display:none}
body.ref-theme .ref-match-list .date-header{font-size:14px;padding:14px 18px;border-bottom:1px solid #263047}
.date-header:before{content:"";display:inline-block;width:7px;height:7px;margin-right:8px;border-radius:50%;background:#ef354d}
.ui-home-intro{padding:12px 0 30px}
.ui-home-intro h1{font-size:24px;line-height:1.5;color:#f2f5fc;margin:0 0 8px}
.ui-home-intro p{font-size:14px;color:#99a7bf;line-height:1.9;max-width:1120px}
.ui-badges{display:flex;flex-wrap:wrap;gap:9px;margin-top:15px;font-size:12px;color:#acbbd5}
.ui-badges>span{padding:4px 12px;border:1px solid #29344d;background:#111a2e;border-radius:30px}
.ui-badges>span:last-child{background:#244985;color:#fff;border-color:#244985}
.ui-badges i{display:inline-block;width:6px;height:6px;background:#32ca88;border-radius:50%;margin-right:6px}
.ui-section-title{font-size:18px;border-left:3px solid #315ba7;padding-left:10px;line-height:1.5;margin-bottom:12px}
.ui-focus{margin-bottom:32px}
.ui-focus-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.ui-focus-card{padding:14px;border:1px solid #29334b;border-radius:12px;background:#111a2e;min-width:0}
.ui-focus-meta{display:flex;justify-content:space-between;gap:8px;font-size:12px;color:#7c9ddd}
.ui-focus-meta time{color:#9cabc5}
.ui-focus-teams{display:grid;grid-template-columns:minmax(0,1fr) 28px minmax(0,1fr);align-items:center;gap:8px;margin:16px 0}
.ui-focus-teams>span{display:flex;align-items:center;gap:7px;font-size:13px;min-width:0;overflow-wrap:anywhere}
.ui-focus-teams>span:last-child{justify-content:flex-end}
.ui-focus-teams img{width:26px;height:26px;flex-shrink:0;object-fit:contain}
.ui-focus-teams b{color:#eaf0fb;font-size:14px;text-align:center}
.ui-focus-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.ui-focus-actions a{display:block;text-align:center;border:1px solid #29334b;border-radius:7px;padding:6px;font-size:13px}
.ui-focus-actions .ui-primary{background:#244985;border-color:#244985;color:#fff}
.ui-focus-actions a:hover{background:#315ba7;color:#fff!important}
.ui-date-tabs{display:flex;gap:7px;padding:14px;overflow-x:auto;scrollbar-width:thin;max-width:100%}
.ui-date-tabs button{font:inherit;flex:0 0 auto;min-width:77px;padding:8px 10px;border:1px solid #2a3650;border-radius:9px;background:#172238;color:#c2cee1;cursor:pointer;font-size:12px}
.ui-date-tabs button strong{font-size:14px}
.ui-date-tabs button.is-active{background:#244985;border-color:#416db7;color:#fff}
.ui-date-tabs button:hover{border-color:#608fd9}
[data-match-day][hidden]{display:none!important}
.ui-day-sidebar li{padding:14px 16px;border-bottom:1px solid #222d43}
.ui-day-sidebar li:last-child{border:0}
.ui-day-sidebar a{display:flex;justify-content:space-between;gap:10px;font-size:13px}
.ui-day-sidebar span{color:#899bb9;white-space:nowrap}
.ref-site-footer{background:#080d17;border-top:1px solid #253049;color:#92a0b8;padding:32px 0}
.ref-site-footer .footer-rule{background:#315ba7}
body.ref-theme #totop{background:#244985;color:#fff;border:1px solid #4267a0;border-radius:8px}
body.ref-theme :is(a,button,input):focus-visible{outline:2px solid #8cb5ff;outline-offset:3px}
@media(max-width:1000px){
 .ref-header-inner{gap:12px}.ref-brand-name{font-size:18px}.ref-main-nav .nav-link{padding:0 8px;font-size:13px}
 .ref-content-grid{grid-template-columns:minmax(0,1fr) 270px}.ui-focus-grid{gap:10px}.ui-focus-card{padding:12px}
}
@media(max-width:760px){
 body.ref-theme .W_1200{padding-left:18px;padding-right:18px}body.ref-theme main.W_1200{padding-top:22px}
 .ref-header-inner{min-height:60px;display:flex;flex-wrap:wrap;gap:0 12px;padding-top:10px;padding-bottom:10px}
 .ref-brand{min-height:40px}.ref-brand-mark{width:34px;height:34px}.ref-brand-name{font-size:18px}
 .ui-menu-toggle{display:flex;flex-direction:column;justify-content:center;gap:5px;width:38px;height:38px;margin-left:auto;background:transparent;border:1px solid #2a344b;border-radius:8px;align-items:center;order:2}
 .ui-menu-toggle span{display:block;width:19px;height:2px;background:#dce5f5}
 body.ref-theme .site-search-link{display:none}.ref-main-nav{display:none;order:3;width:100%;flex-basis:100%;margin:10px 0 0;border-top:1px solid #29334b}
 .ui-menu-open .ref-main-nav{display:block}.ref-main-nav ul{height:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding-top:8px}
 .ref-main-nav .nav-link{justify-content:flex-start;padding:10px 14px;width:100%;font-size:14px;min-height:42px}
 .ui-home-intro{padding:8px 0 26px}.ui-home-intro h1{font-size:21px}.ui-home-intro p{font-size:13px}
 .ui-focus-grid{grid-template-columns:1fr;gap:12px}.ui-focus-card{padding:13px}.ui-focus-teams>span{font-size:14px}
 .ui-focus{margin-bottom:25px}.ref-content-grid{grid-template-columns:1fr;gap:18px}.ref-home-sidebar{display:none}
 .ref-match-row{grid-template-columns:42px minmax(0,1fr) 76px;gap:3px 9px;padding:13px 11px;min-height:106px}
 .ref-match-league{grid-column:2;grid-row:1}.ref-match-time{grid-column:1;grid-row:1/3;flex-direction:column;gap:3px}.ref-match-teams{grid-column:2;grid-row:2;gap:5px}.ref-match-action{grid-column:3;grid-row:1/3;min-width:0;padding:5px;font-size:11px}
 .ref-team .team-name{font-size:13px}.ref-match-time strong{font-size:12px}.ref-match-teams .ref-team{justify-content:flex-start;flex-direction:row}
 body.ref-theme .ref-article-panel{padding:20px 16px}body.ref-theme .ref-article-panel .article-title{font-size:23px}
 body.ref-theme .ref-news-list .news-img,body.ref-theme .ref-home-news .news-img{width:100%;height:80px;object-fit:cover}
 .ref-content-layout .detail-sidebar{width:100%}.ui-date-tabs{padding:12px;gap:6px}.ui-date-tabs button{min-width:76px}
 .footer-label{display:none}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* Article metadata stays on one line, including narrow screens. */
body.ref-theme .ref-article-panel .article-meta{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;gap:16px;text-align:left;font-size:13px}
body.ref-theme .ref-article-panel .article-meta span{margin:0;white-space:nowrap;min-width:0}
body.ref-theme .ref-article-panel .article-meta span:first-child{overflow:hidden;text-overflow:ellipsis;flex:0 1 auto}
body.ref-theme .ref-article-panel .article-meta span:last-child{flex:0 0 auto}
.news-signal-panel{margin:0 0 24px;padding:22px 16px 18px;border:1px solid #29334b;border-radius:12px;background:#111a2e}
.news-signal-panel h2{font-size:14px;line-height:1.6;color:#eef3ff;margin:0 0 13px;font-weight:700}
.news-signal-actions{display:flex;flex-wrap:wrap;gap:10px}
body.ref-theme .news-signal-button{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:9px 20px;border-radius:8px;background:#2b65c4;color:#fff;font-size:13px;font-weight:700;line-height:1.5;text-decoration:none}
body.ref-theme .news-signal-button:first-child{background:#3278ed}
body.ref-theme .news-signal-button:hover{background:#458aff;color:#fff}
@media(max-width:760px){body.ref-theme .ref-article-panel .article-meta{gap:10px;font-size:12px}.news-signal-panel{padding:16px 12px}.news-signal-actions{gap:8px}body.ref-theme .news-signal-button{padding:9px 12px;font-size:12px}}