/* Splot navigation: compact controls, readable listings, accessible discovery rotation. */
.splot-header-refresh { --sh-bg:#111016; --sh-border:#2c2836; --sh-text:#f6f4fa; --sh-muted:#bab3c9; }
.splot-header-refresh #masthead { background:var(--sh-bg); border-bottom:1px solid var(--sh-border); }
.splot-header-refresh #masthead .king-header { display:flex; align-items:center; gap:20px; min-height:76px; height:auto; max-width:1440px; margin:0 auto; padding:12px 32px; background:transparent; box-sizing:border-box; }
.splot-header-brand { display:flex; align-items:center; gap:8px; color:#fff!important; font-size:28px; font-weight:700; letter-spacing:-1px; flex-shrink:0; line-height:1; }
.splot-header-mark { width:38px; height:38px; display:block; background:linear-gradient(135deg,#8f5cff 15%,#e059d4 60%,#53bde7); -webkit-mask:url('../assets/splot-loader.svg') center/contain no-repeat; mask:url('../assets/splot-loader.svg') center/contain no-repeat; }
.splot-primary-nav { display:flex; gap:24px; margin-left:18px; }
.splot-primary-nav a { color:var(--sh-muted); font-size:15px; padding:12px 0; }
.splot-primary-nav a:hover,.splot-primary-nav a[aria-current] { color:#fff; }
.splot-header-refresh #masthead .king-header-right { display:flex; align-items:center; gap:12px; float:none; margin:0 0 0 auto; position:static; }
.splot-header-refresh .splot-header-utilities { display:flex; align-items:center; gap:12px; }
.splot-header-refresh #masthead .king-head-toggle,.splot-header-refresh #searchv2-button { display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; width:44px; height:44px; min-width:44px; margin:0; padding:0; border:1px solid var(--sh-border); border-radius:12px; color:var(--sh-text); background:transparent; line-height:1; cursor:pointer; }
.splot-header-refresh #masthead .king-head-toggle { display:none; }
.splot-header-refresh .king-submit { margin:0; }
.splot-header-refresh #masthead .king-submit-open { display:inline-flex; align-items:center; justify-content:center; gap:8px; width:auto; height:44px; min-width:100px; padding:0 16px; border:1px solid #a680f2; border-radius:12px; background:#8054cb; color:#fff; font-size:14px; line-height:1; box-shadow:none; }
.splot-header-refresh .king-submit-open i { font-size:14px; }
.splot-header-refresh .userCreditHeader { margin:0; font-size:12px; color:var(--sh-muted); white-space:nowrap; }
.splot-header-refresh .king-notify,.splot-header-refresh .king-logged-user,.splot-header-refresh .king-username,.splot-header-refresh .king-rlater { margin:0; }
.splot-header-refresh .king-rlater,.splot-header-refresh #ntoggle { min-width:44px; min-height:44px; display:flex; align-items:center; justify-content:center; color:var(--sh-text); }
.splot-header-refresh .splot-account-trigger { width:44px; height:44px; }
.splot-header-refresh .splot-account-trigger img { width:36px; height:36px; object-fit:cover; }
.splot-header-refresh :is(button,a,[tabindex]):focus-visible,.splot-signup-strip :is(button,a):focus-visible { outline:2px solid #c8a7ff; outline-offset:3px; }
.splot-header-refresh .splot-create-menu { margin-top:8px; }
.splot-header-refresh .splot-discovery { display:flex; align-items:center; gap:16px; box-sizing:border-box; max-width:1376px; margin:16px auto 24px; padding:6px 8px 6px 18px; min-height:58px; background:#15131c; border:1px solid var(--sh-border); border-radius:14px; color:var(--sh-text); }
.splot-discovery-label { color:var(--sh-muted); font-size:12px; letter-spacing:.08em; text-transform:uppercase; }
.splot-discovery-items { min-width:0; flex:1; }
.splot-discovery-item { display:flex; align-items:center; gap:20px; color:var(--sh-text)!important; min-height:44px; }
.splot-discovery-item[hidden],.splot-discovery-controls[hidden] { display:none!important; }
.splot-discovery-title { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:14px; }
.splot-discovery-price { flex-shrink:0; margin-left:auto; font-size:14px; font-weight:600; color:#d1b3ff; }
.splot-discovery-price small { font-size:11px; font-weight:400; }
.splot-discovery-controls { display:flex; gap:4px; flex-shrink:0; }
.splot-discovery-controls button { width:44px; height:44px; padding:0; background:transparent; border:1px solid var(--sh-border); border-radius:10px; color:var(--sh-text); font-size:25px; line-height:1; }
.splot-discovery-controls button:hover { background:#2c243a; }
.splot-signup-strip.king-headerstrip { box-sizing:border-box; position:relative; margin:0!important; padding:4px 52px 4px 16px!important; min-height:44px; background:#272033!important; color:#ece4f8!important; border-bottom:1px solid #443451; font-size:12px; }
.splot-signup-strip .king-hs-content { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:4px 10px; margin:0; padding:0; line-height:1.4; }
.splot-signup-strip .king-hs-content p { margin:0; }
.splot-signup-strip .king-hs-button { display:inline-flex; align-items:center; min-height:36px; padding:0 10px; margin:0; border-radius:8px; background:transparent; color:#fff; font-size:12px; font-weight:600; text-decoration:underline; }
.splot-signup-strip .king-hs-close { position:absolute; right:4px; top:0; display:flex; align-items:center; justify-content:center; width:44px; height:44px; padding:0; margin:0; background:transparent; border:0; color:#eee; font-size:16px; }
.splot-mobile-tools { display:none; }
@media(min-width:1100px) and (max-width:1250px) { .splot-header-refresh #masthead .king-header { gap:12px; padding-inline:20px; } .splot-primary-nav { gap:16px; margin-left:0; } .splot-header-refresh #masthead .king-header-right,.splot-header-refresh .splot-header-utilities { gap:6px; } }
@media(max-width:1439px) { .splot-header-refresh .splot-discovery { margin-left:24px; margin-right:24px; } }
@media(max-width:1099px) {
 .splot-header-refresh #masthead .king-header { min-height:68px; padding:10px 20px; gap:12px; }
 .splot-header-refresh #masthead .king-head-toggle { display:inline-flex; }
 .splot-primary-nav { display:none; }
 .splot-header-brand { font-size:26px; }
 .splot-header-mark { width:32px; height:32px; }
 .splot-header-refresh #masthead .splot-header-utilities,.splot-header-refresh #masthead .userCreditHeader { display:none; }
 .splot-header-refresh .king-leftmenu { width:min(360px,calc(100vw - 24px)); max-width:calc(100vw - 24px); }
 .splot-mobile-tools { display:block; padding:16px; margin:0 12px 12px; border:1px solid var(--sh-border); border-radius:14px; background:var(--sh-bg); }
 .splot-mobile-tools .splot-header-utilities { display:flex; justify-content:space-between; gap:12px; }
 .splot-mobile-tools .userCreditHeader { display:block; margin-top:12px; }
 .splot-mobile-tools .user-header-menu,.splot-mobile-tools .king-notify-menu { position:fixed; top:135px; left:16px; right:auto; width:min(300px,calc(100vw - 56px)); max-height:calc(100dvh - 160px); overflow:auto; }
 .splot-header-refresh .king-leftmenu-close { min-width:44px; min-height:44px; }
 .splot-header-refresh .king-leftmenu-nav > .mobile-king-logo-night,.splot-header-refresh .king-leftmenu-nav > .mobile-king-logo { display:none; }
}
@media(max-width:599px) {
 .splot-header-refresh #masthead .king-header { gap:8px; padding:10px 12px; }
 .splot-header-refresh #masthead .king-header-right { gap:6px; }
 .splot-header-brand { gap:5px; font-size:24px; }
 .splot-header-refresh #masthead .king-submit-open { min-width:90px; padding:0 12px; }
 .splot-header-refresh .splot-discovery { margin:12px 12px 20px; padding:6px 6px 6px 12px; gap:8px; border-radius:12px; }
 .splot-discovery-label { display:none; }
 .splot-discovery-item { gap:8px; flex-wrap:wrap; align-content:center; padding:2px 0; }
 .splot-discovery-title { width:100%; font-size:13px; }
 .splot-discovery-price { margin-left:0; font-size:12px; }
 .splot-discovery-controls { gap:2px; }
 .splot-signup-strip.king-headerstrip { font-size:11px; padding-left:10px!important; }
}
@media(max-width:359px) { .splot-header-refresh #masthead .king-header { gap:5px; padding-inline:8px; } .splot-header-brand { font-size:22px; } .splot-header-mark { width:26px; height:26px; } .splot-header-refresh #masthead .king-submit-open { min-width:82px; padding-inline:9px; } }
/* Keep secondary destinations accessible on desktop too. */
.splot-header-refresh #masthead .king-head-toggle { display:inline-flex; }
.splot-header-refresh .king-submit-drop.splot-create-menu { background:#19151f; border:1px solid #383041; border-radius:14px; padding:12px; box-shadow:0 16px 48px #0006; }
.splot-header-refresh .king-submit-drop.splot-create-menu .king-submit-buttons a { background:#25202d; color:#f4effa; border:1px solid #3b3248; border-radius:10px; min-height:48px; }
.splot-header-refresh .king-submit-drop.splot-create-menu .king-submit-buttons a:hover { background:#3c2a52; }
.splot-header-refresh .splot-menu-title { color:#bab3c9; }
.splot-header-refresh .king-notify-num { position:absolute; }
.splot-header-refresh #ntoggle { position:relative; }
@media(max-width:599px) { #page.splot-header-refresh { margin-left:0!important; margin-right:0!important; } }
@media(max-width:599px) { body:has(.splot-header-refresh) { padding:0!important; } }

/* Artwork previews fit inside the existing ribbon height. */
.splot-discovery-item { flex-wrap:nowrap; gap:10px; }
.splot-discovery-thumb { display:flex; align-items:center; justify-content:center; width:36px; height:36px; flex:0 0 36px; overflow:hidden; border-radius:7px; background:#292331; }
.splot-discovery-thumb img { display:block; width:36px; height:36px; object-fit:cover; }
.splot-discovery-copy { display:flex; align-items:center; gap:16px; flex:1; min-width:0; }
.splot-discovery-controls .splot-discovery-playback { font-size:14px; }
@media(max-width:599px) {
 .splot-discovery-copy { flex-direction:column; align-items:flex-start; gap:2px; }
 .splot-discovery-item { padding:0; }
 .splot-discovery-title { line-height:18px; }
 .splot-discovery-price { line-height:16px; }
}

/* Discovery polish: preserve the 58px ribbon and existing controls. */
.splot-header-refresh .splot-discovery { position:relative; isolation:isolate; height:58px; padding:6px 8px 6px 18px; gap:14px; overflow:hidden; }
.splot-discovery::before { content:""; position:absolute; z-index:-1; inset:-30px auto -30px 55px; width:240px; background-image:var(--discovery-art); background-size:cover; background-position:center; filter:blur(28px); opacity:.22; pointer-events:none; mask-image:linear-gradient(90deg,transparent,#000 25%,transparent); }
.splot-discovery-items { position:relative; }
.splot-discovery-item { height:44px; gap:12px; animation:splot-discovery-in .25s ease-out; }
.splot-discovery-thumb,.splot-discovery-thumb img { width:44px; height:44px; }
.splot-discovery-thumb { flex-basis:44px; border-radius:9px; box-shadow:0 0 0 1px #ffffff18; }
.splot-discovery-title { font-size:15px; font-weight:600; text-overflow:clip; mask-image:linear-gradient(to right,#000 calc(100% - 16px),transparent); padding-right:16px; }
.splot-discovery-price { display:inline-flex; align-items:center; gap:4px; padding:5px 9px; border:1px solid #ac7deb30; background:#a96be914; border-radius:9px; color:#e0c5ff; line-height:18px; }
.splot-discovery-price::before { content:""; width:18px; height:18px; margin-right:2px; background:url('/wp-content/uploads/2024/01/millix-icon-square-60px.png') center/contain no-repeat; }
.splot-discovery-controls { gap:0; }
.splot-discovery-controls button { width:40px; border-color:transparent; color:#bdb2cb; font-size:21px; }
.splot-discovery-controls button:hover { color:#fff; background:#b386e51a; }
.splot-discovery-progress { position:absolute; bottom:0; left:0; width:100%; height:2px; background:linear-gradient(90deg,#8152ce,#cf9fff); transform:scaleX(0); transform-origin:left; pointer-events:none; opacity:.7; }
.splot-discovery-outgoing { position:absolute; inset:0; pointer-events:none; animation:splot-discovery-out .25s ease-in forwards; }
@keyframes splot-discovery-in { from {opacity:0} to {opacity:1} }
@keyframes splot-discovery-out { from {opacity:1} to {opacity:0} }
@media(max-width:599px) {
 .splot-header-refresh .splot-discovery { padding:6px; gap:4px; }
 .splot-discovery-item { gap:8px; }
 .splot-discovery-copy { gap:1px; }
 .splot-discovery-title { font-size:13px; line-height:19px; }
 .splot-discovery-price { font-size:11px; border:0; padding:0 5px; line-height:18px; }
 .splot-discovery-price::before { width:14px; height:14px; }
 .splot-discovery-controls button { width:32px; height:44px; border-radius:8px; }
}
@media(prefers-reduced-motion:reduce) { .splot-discovery-item { animation:none; } .splot-discovery-progress { display:none; } }
