/* Scoped to the approved card types; navigation and dating components retain their existing rules. */
body:not(.admin-embed) .editorial-card{border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:#eeedf5}
.editorial-card .product-icon{border-radius:3px!important}.editorial-card>.product-title{background:transparent!important;border:0!important;padding:0!important;margin:9px 0 4px!important;font-size:16px!important;font-weight:700;line-height:1.4!important;color:#eeedf5!important}.editorial-card>.product-desc{display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;margin:0 0 14px!important;font-size:13px;line-height:1.6;color:#aaa8b9}.editorial-heading{font-size:23px;color:#eeedf5;margin:12px 0 18px;line-height:1.4}.editorial-heading span{color:#ff5792}
body:not(.admin-embed) .app:not(.detail-page){background-color:#0d1220!important;background-image:radial-gradient(circle at 17px 29px,#b6bfd226 .6px,transparent 1px),radial-gradient(circle at 113px 151px,#b6bfd218 .7px,transparent 1.2px)!important;background-size:211px 251px,307px 331px!important}
.brand-fallback{position:absolute;inset:0;background:#fff0aa;color:#24210e;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:2%;aspect-ratio:1}.brand-disc{position:relative;display:grid;place-items:center;width:68%;height:68%;background:#fffdf2;border-radius:50%}.brand-disc svg{width:90%;height:96%}.brand-fallback b{font-size:clamp(8px,2.8vw,15px);line-height:1.1}.brand-dots{position:absolute;left:50%;top:57%;transform:translate(-50%,-50%);display:flex;gap:4px}.brand-dots i{width:4px;height:4px;background:#9c6d00;border-radius:50%;animation:brand-hop 1.2s infinite}.brand-dots i:nth-child(2){animation-delay:.16s}.brand-dots i:nth-child(3){animation-delay:.32s}@keyframes brand-hop{0%,65%,100%{transform:translateY(0);opacity:.4}30%{transform:translateY(-4px);opacity:1}}
#startup.brand-startup{background:#0d1220;transition:none}.brand-boot{text-align:center;color:#ffda32}.brand-boot>.logo{display:block;width:160px;height:170px;margin:auto}.brand-boot>strong{display:block;font-size:26px;margin:12px}.brand-boot p{font-size:13px;color:#aaa8b9}.brand-boot button{padding:10px 20px;background:#ffda32;color:#24210e;border:0;border-radius:6px}.brand-boot .liquid{transform:translateY(var(--water,97.5px));transition:transform .15s linear}.brand-meter{height:6px;width:180px;background:#414447;border-radius:8px;overflow:hidden;margin:20px auto 8px}.brand-meter i{display:block;height:100%;width:var(--progress,0%);background:#e6bd13}
.brand-player{--player-bg:#141719;--player-fg:#fff;--wave:#c4a426}.brand-player .brand-player-ui{position:absolute;inset:auto 0 0;background:linear-gradient(transparent,#101018eb);color:#fff;padding:24px 10px 7px;z-index:3}.brand-player-row{display:flex;align-items:center;gap:8px;font-size:11px}.brand-player-row button,.brand-player-row select{min-width:32px;min-height:32px;border:0;background:transparent;color:inherit;padding:3px;font:inherit}.brand-player-row select option{background:#20212b;color:white}.brand-player-row [data-brand-time]{flex:1;white-space:nowrap}.brand-seek{display:block;appearance:none;width:100%;height:3px;margin:8px 0 5px;background:linear-gradient(to right,#ff5792 var(--seek,0%),#ffffff50 var(--seek,0%));cursor:pointer}.brand-seek::-webkit-slider-thumb{appearance:none;width:11px;height:11px;border-radius:50%;background:#ff5792}.brand-seek::-moz-range-thumb{width:11px;height:11px;border:0;border-radius:50%;background:#ff5792}.brand-seek:focus-visible{outline:2px solid #fff;outline-offset:5px}.brand-seek-preview{position:absolute;bottom:78px;left:50%;transform:translateX(-50%);width:96px;background:#141719;border-radius:4px;overflow:hidden;text-align:center;font-size:12px}.brand-seek-preview img{width:96px;height:54px;object-fit:cover}.brand-seek-preview span{display:block;padding:4px}.brand-video-loading{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:center;background:var(--player-bg);color:#ffda32;z-index:2;pointer-events:none}.brand-video-loading[hidden],.brand-seek-preview[hidden],.ranking-video-controls[hidden]{display:none!important}.brand-video-loading>.logo{width:62px;height:66px;z-index:1}.brand-video-loading b{font-size:13px;z-index:1}.brand-video-loading small{font-size:11px;z-index:1}.brand-video-loading .brand-meter{width:110px;height:3px;margin:10px 0 5px;z-index:1}.brand-video-loading .brand-meter i{width:30%;animation:brand-buffer 1.4s ease-in-out infinite}@keyframes brand-buffer{from{transform:translateX(-100%)}to{transform:translateX(440%)}}.brand-ripples{position:absolute;width:1px;height:1px;top:45%;left:50%}.brand-ripples i{position:absolute;left:-44px;top:-44px;width:88px;height:88px;border:1px solid var(--wave);border-radius:50%;animation:brand-wave 3s ease-out infinite}.brand-ripples i:nth-child(2){animation-delay:1s}.brand-ripples i:nth-child(3){animation-delay:2s}@keyframes brand-wave{0%{transform:scale(.7);opacity:0}20%{opacity:.35}100%{transform:scale(1.95);opacity:0}}.brand-player:fullscreen{aspect-ratio:auto;max-height:none!important;width:100%;height:100%;border-radius:0}
@media(prefers-reduced-motion:reduce){.brand-dots i,.brand-ripples i,.brand-video-loading .brand-meter i{animation:none}.brand-boot .liquid{transition:none}}

/* Unknown preparation time uses activity, never a fabricated percentage. */
.brand-startup.boot-preparing .brand-meter i{width:30%;animation:brand-buffer 1.4s ease-in-out infinite}.brand-startup:not(.boot-preparing) .brand-meter i{transition:width .15s linear}.brand-startup.boot-preparing .brand-boot>.logo{animation:brand-breathe 1.6s ease-in-out infinite}@keyframes brand-breathe{50%{transform:translateY(-2px)}}
@media(prefers-reduced-motion:reduce){.brand-startup.boot-preparing .brand-meter i,.brand-startup.boot-preparing .brand-boot>.logo{animation:none}}

/* Limit listing summaries; detail pages retain the complete description. */
.page-panel[data-page="直播"] .editorial-card>.product-desc,
.page-panel[data-page="商城"] .editorial-card>.product-desc{display:-webkit-box!important;-webkit-box-orient:vertical;overflow:hidden!important;line-height:1.6!important;font-size:13px!important;white-space:normal!important;overflow-wrap:anywhere}
.page-panel[data-page="直播"] .editorial-card>.product-desc{-webkit-line-clamp:2!important;max-height:3.2em!important}
.page-panel[data-page="商城"] .editorial-card>.product-desc{-webkit-line-clamp:4!important;max-height:6.4em!important}

/* Consistent glow for all portal grid icons. */
.icon-ad .square{box-shadow:0 0 12px #899dff88,0 0 3px #b8c4ffbb!important}

/* Cover play count: compact, high contrast, lightweight flame motion. */
.product-icon:has(.video-display-plays){position:relative}
.video-display-plays{position:absolute;left:auto;right:4px;bottom:4px;z-index:1;display:inline-flex;align-items:center;gap:2px;padding:2px 3px;border:1px solid #ffffff24;border-radius:8px;background:linear-gradient(110deg,#24150ee6,#100e13c9);color:#fff5e8;font-size:9px;font-weight:600;line-height:12px;white-space:nowrap;pointer-events:none;font-variant-numeric:tabular-nums;box-shadow:0 2px 5px #0003}
.video-play-flame{display:block;width:8px;height:11px;flex:none;transform-origin:50% 90%;animation:video-flame-flicker 1.4s ease-in-out infinite}
@keyframes video-flame-flicker{0%,100%{transform:rotate(-4deg) scale(.94,1)}35%{transform:rotate(3deg) scale(1.04,.94)}70%{transform:rotate(-1deg) scale(.97,1.06)}}
@media(prefers-reduced-motion:reduce){.video-play-flame{animation:none}}
/* Episode controls: compact mobile grid with a clear selected state. */
.episode-cover-badge{position:absolute;right:8px;top:8px;z-index:1;padding:3px 7px;border-radius:6px;background:#17131bd9;color:#fff;font-size:11px;font-weight:600;line-height:16px;pointer-events:none}
.episode-panel{flex-shrink:0;margin:8px 0 4px;padding:12px;border:1px solid #ffffff14;border-radius:12px;background:#1c1d27}
.episode-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:10px;color:#f4eff6;font-size:14px}
.episode-heading span{font-size:11px;color:#aaa5b6}
.episode-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;max-height:148px;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;scrollbar-width:thin}
.episode-button{min-height:44px;padding:8px 4px;border:1px solid #ffffff12;border-radius:8px;background:#292a36;color:#d9d6e1;font-size:12px;font-weight:600;cursor:pointer}
.episode-button.active{border-color:#ff6395;background:#49293c;color:#ffb5ce;box-shadow:inset 0 0 0 1px #ff639530}
.episode-button:focus-visible{outline:2px solid #ffb5ce;outline-offset:2px}
.ranking-video-detail.grid-detail>.content:has(.episode-panel){overflow-y:auto;display:block}
.ranking-video-detail .episode-panel~.detail-copy{max-height:120px;overflow-y:auto}
@media(min-width:600px){.episode-grid{grid-template-columns:repeat(6,minmax(0,1fr))}}

/* Shared front-end return control, matching the profile card action. */
.app .top .portal-back{appearance:none;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:5px;flex:0 0 auto;min-width:84px;height:44px;margin:0;padding:0 13px 0 9px;border:2px solid #a72b0c;border-radius:24px;background:radial-gradient(ellipse at 38% 20%,#ff7538 0%,#f54f1b 55%,#d9360c 100%);box-shadow:0 0 0 2px #0c1021,0 2px 4px #0006,inset 1px 2px 2px #ffbf7c,inset -1px -3px 3px #922008;color:#fff0d4;font:800 14px/1 'Microsoft YaHei',SimHei,sans-serif;letter-spacing:1px;text-shadow:0 1px 1px #8f240a;white-space:nowrap;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.app .top .portal-back svg{width:20px;height:20px;flex:none}
.app .top .portal-back:active{transform:translateY(1px);box-shadow:0 0 0 2px #0c1021,inset 1px 2px 4px #922008}
.app .top .portal-back:focus-visible{outline:2px solid #ffe0a4;outline-offset:4px}
.dating-collection>.top>h1{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.app .gallery-controls .gallery-arrow{appearance:none;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;min-width:44px;height:44px;padding:0;border:2px solid #a72b0c;border-radius:50%;background:radial-gradient(ellipse at 38% 20%,#ff7538 0%,#f54f1b 55%,#d9360c 100%);box-shadow:0 0 0 2px #0c1021,0 2px 4px #0006,inset 1px 2px 2px #ffbf7c,inset -1px -3px 3px #922008;color:#fff0d4;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.app .gallery-controls .gallery-arrow svg{width:24px;height:24px}
.app .gallery-controls .gallery-arrow:active{transform:translateY(1px);box-shadow:0 0 0 2px #0c1021,inset 1px 2px 4px #922008}
.app .gallery-controls .gallery-arrow:focus-visible{outline:2px solid #ffe0a4;outline-offset:4px}
.app .gallery-controls .gallery-arrow:disabled{opacity:.45;cursor:default;transform:none}

/* Larger ad surfaces use the icon glow with a wider, softer falloff. */
body:not(.admin-embed) .app .hero>.banner-rail,
body:not(.admin-embed) .app .grid-banner{box-shadow:0 0 4px #b8c4ff99,0 0 16px #899dff70,0 0 26px #899dff30!important}

/* Video, live, game and shop cover glow; keep captions clear. */
body:not(.admin-embed) .app .editorial-card{overflow:visible}
body:not(.admin-embed) .app .editorial-card>.card-header{border-radius:3px;box-shadow:0 0 4px #b8c4ff99,0 0 16px #899dff70,0 0 26px #899dff30}

/* Video cover titles match the profile introduction typography. */
.video-layout .editorial-card>.product-title{font-family:'Microsoft YaHei',SimHei,Arial,sans-serif;font-size:12px!important;font-weight:500!important;line-height:1.8!important;color:#e6d6b7!important}

/* Shared cover-name color; existing sizes and weights stay unchanged. */
.editorial-card>.product-title{color:#e6d6b7!important}

/* Portrait covers reserve the right half for branding and compact play heat. */
.product-card.game-simple .product-icon.has-material:has(>img.portrait-poster)::after{content:"";position:absolute;left:50%;right:0;top:0;bottom:20px;background:url("/landing/assets/icon.png") center/55% auto no-repeat;opacity:.09;pointer-events:none}
.product-card.game-simple .product-icon.has-material:has(>img.portrait-poster) .video-display-plays{box-sizing:border-box;max-width:calc(50% - 8px);overflow:hidden}

/* Video detail: keep actions on screen and scroll only the bounded ad region. */
body:has(>.app.grid-detail.ranking-video-detail){padding:0}
.app.grid-detail.ranking-video-detail{height:100vh;height:100dvh;min-height:0;box-sizing:border-box}
.app.grid-detail.ranking-video-detail>.top{height:48px;min-height:48px}
.app.grid-detail.ranking-video-detail>.content{display:flex;flex-direction:column;overflow:hidden;min-height:0;gap:6px;padding:8px 12px calc(8px + var(--portal-safe-bottom,env(safe-area-inset-bottom,0px)))!important}
.app.grid-detail.ranking-video-detail .ranking-player{flex:0 1 auto;aspect-ratio:16/9;max-height:28vh;max-height:28dvh;min-height:64px;border-radius:8px}
.app.grid-detail.ranking-video-detail .ranking-player video{object-fit:contain}
.app.grid-detail.ranking-video-detail .ranking-video-controls{margin:0;gap:6px}
.app.grid-detail.ranking-video-detail .ranking-video-controls[hidden]{display:none}
.app.grid-detail.ranking-video-detail .detail-copy{flex:0 0 auto;min-height:18px;max-height:54px;padding:0;margin:0;overflow:hidden}
.app.grid-detail.ranking-video-detail .detail-copy h1{font-size:14px;line-height:1.3;margin:0;-webkit-line-clamp:2}
.app.grid-detail.ranking-video-detail .detail-copy p{font-size:11px;line-height:1.3;margin:2px 0 0;max-height:15px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.app.grid-detail.ranking-video-detail .ranking-detail-ads{flex:1 1 0;min-height:44px;overflow-x:hidden;overflow-y:auto;overscroll-behavior-y:contain;touch-action:pan-y;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:#e6d6b780 transparent;margin:0;padding:5px 2px 2px;border-top:1px solid #e6d6b733}
.app.grid-detail.ranking-video-detail .ranking-detail-ads .icon-grid.large{grid-template-columns:repeat(5,minmax(0,1fr));gap:6px 6px;align-content:start}
.app.grid-detail.ranking-video-detail .ranking-detail-ads .square{width:clamp(36px,11vw,48px);max-width:100%;aspect-ratio:1;margin-inline:auto;border-radius:6px}
.app.grid-detail.ranking-video-detail .ranking-detail-ads .icon-ad p{font-size:10px;line-height:1.25;height:25px;max-height:25px;margin:3px 0 0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere}
.app.grid-detail.ranking-video-detail .content>.primary{flex:0 0 42px;min-height:42px;height:42px;margin:0;font-size:14px!important;line-height:1.2;padding:6px 12px}
.app.grid-detail.ranking-video-detail .episode-panel{order:1;flex:0 1 auto;min-height:46px;max-height:86px;overflow:hidden;margin:0;padding:4px 6px}
.app.grid-detail.ranking-video-detail .episode-heading{font-size:12px;line-height:16px;margin-bottom:3px}
.app.grid-detail.ranking-video-detail .episode-grid{gap:4px;max-height:58px}
.app.grid-detail.ranking-video-detail .episode-button{min-height:27px;padding:4px 2px;font-size:11px;line-height:17px}
@media(max-height:540px){
 .app.grid-detail.ranking-video-detail>.top{height:44px;min-height:44px}
 .app.grid-detail.ranking-video-detail>.content{gap:4px;padding:5px 10px calc(5px + var(--portal-safe-bottom,env(safe-area-inset-bottom,0px)))!important}
 .app.grid-detail.ranking-video-detail .ranking-player{max-height:25vh;max-height:25dvh;min-height:56px}
 .app.grid-detail.ranking-video-detail .detail-copy{min-height:15px;max-height:15px}
 .app.grid-detail.ranking-video-detail .detail-copy h1{font-size:12px;line-height:1.25;-webkit-line-clamp:1}
 .app.grid-detail.ranking-video-detail .detail-copy p{display:none}
 .app.grid-detail.ranking-video-detail .ranking-detail-ads .square{width:36px}
 .app.grid-detail.ranking-video-detail .ranking-detail-ads .icon-grid.large{gap:4px 5px}
 .app.grid-detail.ranking-video-detail .content>.primary{flex-basis:36px;min-height:36px;height:36px;font-size:13px!important}
 .app.grid-detail.ranking-video-detail .episode-panel{min-height:44px;max-height:50px}
 .app.grid-detail.ranking-video-detail .episode-grid{max-height:27px}
}
@media(max-height:380px){
 .app.grid-detail.ranking-video-detail>.top{height:40px;min-height:40px}
 .app.grid-detail.ranking-video-detail .ranking-player{min-height:40px;max-height:24vh;max-height:24dvh}
 .app.grid-detail.ranking-video-detail .detail-copy{flex-shrink:0;min-height:15px;max-height:15px}
 .app.grid-detail.ranking-video-detail .detail-copy h1{-webkit-line-clamp:1}
 .app.grid-detail.ranking-video-detail .detail-copy p{display:none}
 .app.grid-detail.ranking-video-detail .episode-panel{min-height:33px;max-height:33px;padding:2px 4px}
 .app.grid-detail.ranking-video-detail .episode-heading{display:none}
 .app.grid-detail.ranking-video-detail .ranking-detail-ads{min-height:32px}
}
