
:root{
 --hp-page:#f4f7fb;--hp-surface:#ffffff;--hp-surface-2:#f8fafc;--hp-text:#101827;--hp-muted:#718096;
 --hp-line:#e3e9f1;--hp-red:#ef2028;--hp-shadow:0 12px 36px rgba(13,23,41,.06);
}
html[data-theme="light"] body{background:var(--hp-page)!important;color:var(--hp-text)}
html[data-theme="light"] .portal-header,
html[data-theme="light"] .portal-top,
html[data-theme="light"] .portal-nav-wrap,
html[data-theme="light"] .portal-nav{background:#fff!important;color:#101827}
html[data-theme="light"] .market-v3,
html[data-theme="light"] .service-v3 a,
html[data-theme="light"] .feature-strip-v4 article,
html[data-theme="light"] .most-read-v4,
html[data-theme="light"] .lead-card,
html[data-theme="light"] .small-4 article,
html[data-theme="light"] .sports-list,
html[data-theme="light"] .league-mini,
html[data-theme="light"] .economy-grid article,
html[data-theme="light"] .editor-special,
html[data-theme="light"] .magazine-strip article{background:#fff;color:#101827;border-color:var(--hp-line)}
html[data-theme="light"] .portal-nav a,
html[data-theme="light"] .service-v3 a,
html[data-theme="light"] .feature-strip-v4 h3,
html[data-theme="light"] .most-read-list strong{color:#101827}

html[data-theme="dark"]{
 color-scheme:dark;
 --hp-page:#080d15;--hp-surface:#101722;--hp-surface-2:#151e2b;--hp-text:#eef4ff;--hp-muted:#94a3b8;--hp-line:#263245;
}
html[data-theme="dark"] body{background:#080d15!important;color:#eef4ff!important}
html[data-theme="dark"] .portal-header,
html[data-theme="dark"] .portal-top,
html[data-theme="dark"] .portal-nav-wrap,
html[data-theme="dark"] .portal-nav{background:#0c131e!important;border-color:#263245!important;color:#eef4ff!important}
html[data-theme="dark"] .portal-date{color:#8fa0b8;border-color:#263245}
html[data-theme="dark"] .portal-nav a,
html[data-theme="dark"] .nav-tools a,
html[data-theme="dark"] .nav-tools button{color:#e9f0fb!important}
html[data-theme="dark"] .service-buttons a{background:#121b28;color:#edf4ff;border-color:#2b384c}
html[data-theme="dark"] main{background:#080d15}
html[data-theme="dark"] .market-v3{background:#101722;border-color:#263245}
html[data-theme="dark"] .market-v3>div{border-color:#263245}
html[data-theme="dark"] .market-v3 small{color:#8fa0b8}
html[data-theme="dark"] .market-v3 strong{color:#f1f5fb}
html[data-theme="dark"] .market-v3 .weather{background:linear-gradient(135deg,#122033,#1a1821)}
html[data-theme="dark"] .service-v3 a{background:#101722;color:#eef4ff;border-color:#263245}
html[data-theme="dark"] .service-v3 small{color:#8798af}
html[data-theme="dark"] .feature-strip-v4 article{background:#101722;border-color:#263245}
html[data-theme="dark"] .feature-strip-v4 h3{color:#eef4ff}
html[data-theme="dark"] .main-headline-v4-stage{background:#05080d}
html[data-theme="dark"] .most-read-v4{background:#101722;border-color:#263245}
html[data-theme="dark"] .most-read-v4-head h3,
html[data-theme="dark"] .most-read-list strong{color:#eef4ff}
html[data-theme="dark"] .most-read-list a{border-color:#263245}
html[data-theme="dark"] .most-read-list b{background:#172131;border-color:#2c3a4e;color:#dae5f4}
html[data-theme="dark"] .most-read-v4-tabs button{background:#202b3b;color:#aebbd0}
html[data-theme="dark"] .most-read-v4-tabs button.active{background:#ef2028;color:#fff}
html[data-theme="dark"] .section-head h2,
html[data-theme="dark"] .card-copy h3,
html[data-theme="dark"] .small-4 h3,
html[data-theme="dark"] .sports-layout h3,
html[data-theme="dark"] .economy-grid h3,
html[data-theme="dark"] .editor-special h3,
html[data-theme="dark"] .magazine-strip h3{color:#eef4ff!important}
html[data-theme="dark"] .lead-card,
html[data-theme="dark"] .small-4 article,
html[data-theme="dark"] .sports-feature,
html[data-theme="dark"] .sports-list,
html[data-theme="dark"] .league-mini,
html[data-theme="dark"] .economy-grid article,
html[data-theme="dark"] .editor-special,
html[data-theme="dark"] .magazine-strip article{background:#101722!important;border-color:#263245!important}
html[data-theme="dark"] .sports-list a,
html[data-theme="dark"] .editor-special-list a{border-color:#263245!important}
html[data-theme="dark"] .league-mini table,
html[data-theme="dark"] .league-mini th,
html[data-theme="dark"] .league-mini td{color:#dce6f5;border-color:#263245}
html[data-theme="dark"] .horoscope-grid-v4{background:linear-gradient(135deg,#131a26,#151827);border-color:#293347}
html[data-theme="dark"] .module-title-v4:after{background:#293347}
html[data-theme="dark"] .module-title-v4 strong{background:linear-gradient(90deg,#222d3e,#37445a)}
html[data-theme="dark"] .horoscope-grid-v4 a{background:#182232;color:#edf3fc;border-color:#29374b}
html[data-theme="dark"] .horoscope-grid-v4 i{background:#242a3d;color:#c2a9ff}
html[data-theme="dark"] .cinema-v4{background:linear-gradient(135deg,#0e1520,#111b29);border:1px solid #253247}
html[data-theme="dark"] .cinema-card-v4{background:#151f2e;border-color:#2a384d}
html[data-theme="dark"] .cinema-info-v4 h3{color:#f3f6fb}
html[data-theme="dark"] .cinema-info-v4 small{color:#91a2ba}
html[data-theme="dark"] .hp-visual-panel{background:linear-gradient(135deg,#0d1521,#111927)}
html[data-theme="dark"] .main-ad-placeholder{background:linear-gradient(135deg,#151c28,#101722);border-color:#5e343c;color:#eef4ff}
html[data-theme="dark"] .main-ad-placeholder small{color:#96a5ba}
html[data-theme="dark"] .main-ad-real{background:#101722}
html[data-theme="dark"] .portal-footer{background:#050912!important;color:#c7d2e2!important;border-color:#1e2938}
html[data-theme="dark"] .portal-footer a{color:#aebbd0!important}
html[data-theme="dark"] .footer-copy{border-color:#1e2938!important;color:#78879d!important}

/* Theme button */
#theme-toggle{display:grid;place-items:center;min-width:38px;height:38px;border:1px solid var(--hp-line);border-radius:10px;background:transparent;cursor:pointer;font-size:16px;transition:.2s}
#theme-toggle:hover{transform:translateY(-1px);border-color:#ef2028}

/* V6.2 safe advertising slots */
.hp-ad-placeholder{max-width:970px;min-height:90px;margin:26px auto;display:grid;grid-template-columns:54px 1fr auto;gap:15px;align-items:center;border:1px solid #ffc7ca;border-radius:17px;padding:18px 22px;background:linear-gradient(135deg,#fffafa,#fff);color:#101827;box-shadow:0 8px 26px rgba(13,23,41,.025)}
.hp-ad-placeholder .hp-ad-icon{display:grid;place-items:center;width:50px;height:50px;border-radius:13px;background:#ffedef;color:#ef2028;font-size:18px}
.hp-ad-placeholder strong,.hp-ad-placeholder small{display:block}.hp-ad-placeholder strong{font-size:18px;letter-spacing:-.02em}.hp-ad-placeholder small{margin-top:4px;color:#748198;font-size:9px}.hp-ad-placeholder>b{border-radius:999px;padding:7px 11px;background:#ef2028;color:#fff;font-size:9px}
.hp-ad-render{margin:26px auto;text-align:center;overflow:hidden}.hp-ad-render img{display:block;max-width:100%;height:auto;margin:auto;object-fit:contain}
html[data-theme="dark"] .hp-ad-placeholder{border-color:#493039;background:linear-gradient(135deg,#111925,#151c28);color:#eef4ff}
html[data-theme="dark"] .hp-ad-placeholder .hp-ad-icon{background:#2c2028;color:#ff5d64}
html[data-theme="dark"] .hp-ad-placeholder small{color:#8e9eb5}
@media(max-width:700px){.hp-ad-placeholder{grid-template-columns:42px 1fr;padding:13px 14px;margin:16px 12px}.hp-ad-placeholder .hp-ad-icon{width:40px;height:40px}.hp-ad-placeholder>b{grid-column:2;justify-self:start}.hp-ad-placeholder strong{font-size:14px}}
