/* 654CMS original high contrast faceted draw balls, all themes. */
html .premium .draw4540 .premium-balls.mark-six{
 --gap:clamp(3px,0.7vw,12px);
 display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr)) minmax(13px,0.44fr) minmax(0,1fr)!important;
 align-items:start!important;justify-content:center;gap:var(--gap)!important;max-width:100%;width:100%;min-width:0
}
html .premium .draw4540 .mark-six .number-unit{width:100%!important;max-width:76px!important;min-width:0!important;margin:0 auto!important;gap:5px}
html .premium .draw4540 .mark-six .ball-plus{position:static!important;display:grid!important;place-items:center;width:100%!important;min-width:0!important;aspect-ratio:auto;height:auto!important;align-self:center!important;margin:0!important;padding:0!important;line-height:1;font-size:clamp(12px,2.3vw,24px)!important;font-weight:700;color:var(--gold,var(--accent,#b78942));text-align:center;transform:translateY(-11px)!important}
html .premium .draw4540-main,html .premium .draw4540-grid,html .premium .draw4540 .number-stage{min-width:0}
html .premium .draw4540 .number-orbit,html .premium .number-orbit{
 --wave-light:#d4dce8;--wave-mid:#8b9eb5;--wave-dark:#4c607e;
 background:conic-gradient(from -15deg,var(--wave-light) 0deg,var(--wave-mid) 51deg,var(--wave-dark) 97deg,var(--wave-mid) 139deg,var(--wave-dark) 185deg,var(--wave-mid) 232deg,var(--wave-dark) 280deg,var(--wave-light) 323deg,var(--wave-light) 360deg)!important;
 box-shadow:inset 0 2px 4px #fff8,inset 0 -3px 5px #0003,0 2px 6px #17263e18!important;
 border:0!important;position:relative;isolation:isolate;border-radius:50%!important
}
html .premium .number-orbit.red{--wave-light:#ffb1b4;--wave-mid:#ee515e;--wave-dark:#ac1c34}
html .premium .number-orbit.blue{--wave-light:#a6c6ff;--wave-mid:#4482ee;--wave-dark:#2148b7}
html .premium .number-orbit.green{--wave-light:#adf3cc;--wave-mid:#31bd78;--wave-dark:#087b48}
html .premium .number-orbit::before{content:"";position:absolute;inset:2%;background:linear-gradient(135deg,#fff8 0%,transparent 30%,#fff2 50%,#0002 100%);border-radius:50%;pointer-events:none;z-index:-1}
html .premium .number-orbit b{width:72%!important;height:72%!important;background:linear-gradient(155deg,#fff 8%,#f6f8fc 75%,#e8edf4)!important;box-shadow:0 1px 3px #17233e26!important;color:#111926!important;border:0!important;font-weight:800!important}
html .premium .draw4540 .mark-six .number-orbit b{font-size:clamp(12px,2.8vw,27px)!important}
html .premium .draw4540 .mark-six .number-unit.special .number-orbit{outline:1.5px solid var(--gold,#b78942)!important;outline-offset:2px!important}
html .premium .draw4540 .ball-attributes{white-space:nowrap;font-size:clamp(9px,1.35vw,15px)!important;gap:2px}
@media(max-width:1000px){
 html .premium .draw4540 .draw4540-grid{grid-template-columns:minmax(0,1fr)!important;display:grid!important;gap:12px!important}
 html .premium .draw4540 .draw4540-tools{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;border:none!important;padding:0!important;margin:0!important;gap:7px!important}
 html .premium .draw4540 .draw4540-tools :is(a,button){min-width:0!important;white-space:nowrap;justify-content:center;gap:5px;font-size:clamp(12px,2.7vw,15px)!important}
}
@media(max-width:480px){
 html .premium .draw4540 .premium-balls.mark-six{--gap:4px;grid-template-columns:repeat(6,minmax(0,1fr)) 13px minmax(0,1fr)!important}
 html .premium .draw4540 .mark-six .ball-plus{transform:translateY(-9px)!important;font-size:15px!important}
 html .premium .draw4540 .mark-six .number-orbit b{font-size:clamp(13px,4.2vw,21px)!important}
}
@media(max-width:360px){
 html .premium .draw4540 .premium-balls.mark-six{--gap:3px;grid-template-columns:repeat(6,minmax(0,1fr)) 11px minmax(0,1fr)!important}
 html .premium .draw4540 .mark-six .ball-plus{transform:translateY(-9px)!important}
 html .premium .draw4540 .ball-attributes{font-size:9px!important}
}

/* R2: one compact header and one full-width footer, shared by every
   draw4541 renderer. The existing live player remains outside the grid. */
html .premium .draw500-compact{
 container-type:inline-size;container-name:draw500;
 --draw500-gap:8px;
}
html .premium .draw500-compact .draw-switcher{
 display:flex!important;justify-content:flex-start!important;align-items:center;
 gap:7px!important;padding:10px 12px 3px!important;
 overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:thin;
}
html .premium .draw500-compact .draw-tab{
 flex:0 0 auto!important;min-height:32px!important;height:auto!important;
 padding:6px 13px!important;font-size:13px!important;line-height:1.2!important;
 border-radius:8px!important;box-shadow:none!important;white-space:nowrap;
}
html .premium .draw500-compact .draw-panel{padding:11px 12px 12px!important}
html .premium .draw500-compact:not([data-draw4540]) .draw-panel{
 border-top:0!important;
}
html .premium .draw500-compact .window-row{
 display:flex!important;align-items:center!important;justify-content:space-between!important;
 flex-wrap:wrap;gap:6px!important;padding:0 0 8px!important;margin:0!important;
 border-bottom:1px solid var(--line);
}
html .premium .draw500-compact .draw500-heading{
 display:flex!important;align-items:center!important;flex-wrap:wrap;gap:5px 9px;min-width:0;flex:1 1 auto;
}
html .premium .draw500-compact .draw500-heading h3{
 margin:0!important;padding:0!important;line-height:1.25!important;
 font-size:18px!important;font-weight:750!important;white-space:nowrap;letter-spacing:0!important;
}
html .premium .draw500-compact .draw500-heading .issue-line{
 display:flex!important;align-items:center!important;flex-wrap:nowrap!important;gap:6px!important;
 margin:0!important;white-space:nowrap;min-width:0;
}
html .premium .draw500-compact .issue-code{
 font-size:13px!important;line-height:1.2!important;margin:0!important;letter-spacing:0!important;font-variant-numeric:tabular-nums;
}
html .premium .draw500-compact .issue-line .pill{
 white-space:nowrap;font-size:11px!important;line-height:1.3!important;padding:3px 7px!important;
}
html .premium .draw500-compact .window-status{
 flex:none;gap:5px!important;padding:4px 8px!important;border-radius:7px!important;font-size:11px!important;line-height:1.2;
}
html .premium .draw500-compact .draw4540-grid{
 display:grid!important;grid-template-columns:minmax(0,1fr) minmax(100px,19%)!important;
 align-items:center!important;gap:var(--draw500-gap)!important;padding:9px 0 7px!important;
}
html .premium .draw500-compact .number-stage{padding:5px 0!important;min-height:0!important}
html .premium .draw500-compact .draw4540-tools{
 display:grid!important;grid-template-columns:minmax(0,1fr)!important;
 border:0!important;border-left:1px solid var(--line)!important;padding:0 0 0 8px!important;
 gap:5px!important;margin:0!important;
}
html .premium .draw500-compact .draw4540-tools :is(a,button){
 min-height:29px!important;padding:5px 4px!important;gap:4px!important;
 font-size:12px!important;line-height:1.2!important;border-radius:7px!important;
 white-space:nowrap;min-width:0!important;
}
html .premium .draw500-compact .draw4540-tools .ui-icon{width:14px!important;height:14px!important;flex:none}
html .premium .draw500-compact .draw500-meta{
 width:auto;display:flex!important;align-items:center;justify-content:space-between;
 gap:4px 8px!important;margin:0 0 7px!important;padding:7px 0 0!important;
 border-top:1px solid var(--line);font-size:11px!important;
}
html .premium .draw500-compact .draw500-meta span:last-child{white-space:nowrap}
html .premium .draw500-compact .draw500-next{
 display:flex!important;align-items:center!important;flex-wrap:nowrap!important;justify-content:space-between!important;
 gap:8px!important;margin:0!important;padding:9px 11px!important;border-radius:10px!important;min-height:0!important;
}
html .premium .draw500-compact .draw500-next .next-icon{display:none!important}
html .premium .draw500-compact .draw500-next>div{
 display:flex!important;flex-direction:row!important;align-items:center!important;flex-wrap:wrap;gap:4px 8px!important;min-width:0;
}
html .premium .draw500-compact .draw500-next small{white-space:nowrap;font-size:11px!important;line-height:1.2}
html .premium .draw500-compact .draw500-next b{font-size:13px!important;line-height:1.3;white-space:nowrap}
html .premium .draw500-compact .draw500-next .next-clock{
 margin-left:auto!important;padding-left:10px;border-left:1px solid var(--line);
 justify-content:flex-end;text-align:right;flex:0 1 auto!important;
}
html .premium .draw500-compact .draw500-next [data-countdown]{
 font-size:clamp(19px,2.5vw,29px)!important;line-height:1.1!important;
 white-space:normal!important;overflow-wrap:anywhere;font-variant-numeric:tabular-nums;
}
/* Responsive fallback for browsers without container queries. */
@media(max-width:700px){
 html .premium .draw500-compact .draw-panel{padding:9px 9px 10px!important}
 html .premium .draw500-compact .draw-switcher{padding:8px 9px 3px!important;gap:5px!important}
 html .premium .draw500-compact .draw-tab{min-height:29px!important;padding:5px 10px!important;font-size:12px!important}
 html .premium .draw500-compact .draw500-heading{gap:5px!important;flex:1 1 auto}
 html .premium .draw500-compact .draw500-heading h3{font-size:13px!important}
 html .premium .draw500-compact .draw500-heading .issue-line{gap:4px!important}
 html .premium .draw500-compact .issue-code{font-size:11px!important}
 html .premium .draw500-compact .issue-line .pill{padding:2px 4px!important;font-size:10px!important}
 html .premium .draw500-compact .window-status{padding:3px 4px!important;font-size:10px!important;gap:3px!important}
 html .premium .draw500-compact .draw4540-grid{grid-template-columns:minmax(0,1fr) 72px!important;gap:6px!important}
 html .premium .draw500-compact .draw4540-tools{padding-left:5px!important;gap:4px!important}
 html .premium .draw500-compact .draw4540-tools :is(a,button){min-height:26px!important;padding:3px 2px!important;font-size:10px!important;gap:2px!important}
 html .premium .draw500-compact .draw4540-tools .ui-icon{width:12px!important;height:12px!important}
 html .premium .draw500-compact .draw500-meta{font-size:10px!important}
 html .premium .draw500-compact .draw500-next{padding:7px 8px!important;gap:5px!important}
 html .premium .draw500-compact .draw500-next>div{flex-direction:column!important;align-items:flex-start!important;gap:3px!important}
 html .premium .draw500-compact .draw500-next .next-clock{align-items:flex-end!important}
 html .premium .draw500-compact .draw500-next small{font-size:10px!important}
 html .premium .draw500-compact .draw500-next b{font-size:12px!important}
 html .premium .draw500-compact .draw500-next [data-countdown]{font-size:19px!important}
}
/* Use the actual component width, not the viewport, for multi-column themes. */
@container draw500 (max-width:560px){
 html .premium .draw500-compact .draw4540-grid{grid-template-columns:minmax(0,1fr) 72px!important;gap:6px!important}
 html .premium .draw500-compact .draw4540-tools{gap:4px!important;padding-left:5px!important}
 html .premium .draw500-compact .draw4540-tools :is(a,button){min-height:26px!important;gap:2px!important;padding:3px 2px!important;font-size:10px!important}
 html .premium .draw500-compact .draw4540-tools .ui-icon{width:12px!important;height:12px!important}
 html .premium .draw500-compact .draw500-heading h3{font-size:13px!important}
 html .premium .draw500-compact .issue-code{font-size:11px!important}
 html .premium .draw500-compact .issue-line .pill{font-size:10px!important;padding:2px 4px!important}
 html .premium .draw500-compact .window-status{font-size:10px!important;gap:3px!important;padding:3px 5px!important}
 html .premium .draw500-compact .draw500-heading{gap:5px!important}
 html .premium .draw500-compact .draw500-next>div{flex-direction:column!important;align-items:flex-start!important;gap:3px!important}
 html .premium .draw500-compact .draw500-next .next-clock{align-items:flex-end!important}
 html .premium .draw500-compact .draw500-next [data-countdown]{font-size:19px!important}
 html .premium .draw500-compact .premium-balls.mark-six{gap:3px!important;grid-template-columns:repeat(6,minmax(0,1fr)) 11px minmax(0,1fr)!important}
 html .premium .draw500-compact .mark-six .number-orbit b{font-size:clamp(11px,4cqw,20px)!important}
 html .premium .draw500-compact .mark-six .ball-plus{font-size:14px!important;transform:translateY(-8px)!important}
 html .premium .draw500-compact .ball-attributes{font-size:9px!important}
}
@media(max-width:370px){
 html .premium .draw500-compact .draw4540-grid{grid-template-columns:minmax(0,1fr)!important;gap:5px!important}
 html .premium .draw500-compact .draw4540-tools{grid-template-columns:repeat(3,minmax(0,1fr))!important;border:0!important;padding:0!important}
}
@container draw500 (max-width:350px){
 html .premium .draw500-compact .draw4540-grid{grid-template-columns:minmax(0,1fr)!important;gap:5px!important}
 html .premium .draw500-compact .draw4540-tools{grid-template-columns:repeat(3,minmax(0,1fr))!important;border:0!important;padding:0!important}
 html .premium .draw500-compact .draw500-next b{font-size:11px!important}
}
/* Don't alter autoplay/stream routing, collapse logic, video size, or ads. */
html .premium .draw500-compact .mobile-live{width:100%;max-width:100%;min-width:0}

/* 手机端彩种栏目滚动条修复 */
@media (max-width:870px), (hover:none) and (pointer:coarse) {
    html .premium .draw500-compact .draw-switcher {
        scrollbar-width:none!important;
        -ms-overflow-style:none;
        overflow-x:auto!important;
        overflow-y:hidden!important;
        padding-bottom:7px!important;
    }
    html .premium .draw500-compact .draw-switcher::-webkit-scrollbar {
        display:none!important;
        width:0!important;
        height:0!important;
    }
}

/* 直播线路紧凑布局 */
html .premium .draw500-compact .draw4540-lines {
    padding:4px 8px!important;
    margin-top:8px!important;
    border-radius:8px!important;
}
html .premium .draw500-compact .draw4540-lines summary {
    font-size:12px!important;
    line-height:20px!important;
}
html .premium .draw500-compact .draw4540-lines .draw-actions {
    gap:5px!important;
    margin-top:5px!important;
}
html .premium .draw500-compact .draw4540-lines .draw-actions a,
html .premium .draw500-compact .draw4540-primary a {
    min-height:28px!important;
    padding:3px 8px!important;
    font-size:12px!important;
    border-radius:6px!important;
}
