/* Scoped G profile/ranking refinement; legacy page geometry is retained. */
#stage2hApp .gp-favorites,#stage2hApp .s2h-my-page .s2kh3-history-panel{padding:18px!important;margin:0 0 16px!important;border:1px solid #ffffff0d!important;border-radius:18px!important;background:#131519!important;box-shadow:none!important}
#stage2hApp .gp-section-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px;margin:0 0 16px!important}
#stage2hApp .gp-section-title{display:flex;gap:11px;align-items:center;min-width:0}
#stage2hApp .gp-section-icon{display:grid;width:34px;height:34px;flex:0 0 34px;place-items:center;border-radius:10px;background:#ddbb5c12;color:#dec477!important}
#stage2hApp .gp-section-icon svg{width:19px;height:19px}
#stage2hApp .gp-section-head h2{font-size:17px!important;line-height:1.4!important;margin:0!important;color:#f3f1e9!important;font-weight:700!important}
#stage2hApp .gp-section-head p{font-size:11px!important;line-height:1.5!important;color:#858992!important;margin:4px 0 0!important}
#stage2hApp .gp-tabs{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px;padding:4px;margin:0 0 17px;border-radius:10px;background:#0d0f12}
#stage2hApp .gp-tabs button{height:37px;padding:0 8px;border:0!important;border-radius:7px!important;background:transparent!important;color:#9297a0!important;font-size:14px!important;font-weight:500!important}
#stage2hApp .gp-tabs [aria-pressed=true]{background:#26272b!important;color:#edce83!important;box-shadow:0 1px 4px #0003}
#stage2hApp .gp-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 10px}
#stage2hApp .gp-card{min-width:0;position:relative}
#stage2hApp .gp-card>button:first-child{display:block;width:100%;padding:0;border:0;background:none;color:inherit;text-align:left}
#stage2hApp .gp-poster{display:block;aspect-ratio:2/3;background:#252932;border-radius:10px;overflow:hidden}
#stage2hApp .gp-poster img{display:block;width:100%;height:100%;object-fit:cover}
#stage2hApp .gp-card strong{display:block;margin:9px 0 5px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#e5e7eb;font-size:12px;line-height:1.5;font-weight:500}
#stage2hApp .gp-remove{padding:3px 0!important;background:none!important;border:0!important;border-radius:0!important;color:#8b9099!important;font-size:11px!important;min-height:25px;text-align:left}
#stage2hApp .gp-clear{display:flex;align-items:center;gap:5px;flex:0 0 auto;min-height:34px;padding:6px 0 6px 10px!important;border:0!important;border-radius:0!important;background:transparent!important;color:#989da6!important;font-size:12px!important;line-height:1.5!important;font-weight:400!important;white-space:nowrap}
#stage2hApp .gp-clear svg{width:14px;height:14px}
#stage2hApp .gp-clear:disabled,#stage2hApp .gp-remove:disabled{opacity:.45}
#stage2hApp .gp-note{grid-column:1/-1;padding:22px 8px 26px;text-align:center;color:#7e8590;line-height:1.7;font-size:12px}
#stage2hApp .gp-note svg{display:block;width:30px;height:30px;margin:0 auto 10px;color:#616873}
#stage2hApp .gp-more{margin:14px auto 0;justify-content:center;padding:7px 18px!important;color:#d8bd7c!important}
#stage2hApp .gp-more[hidden]{display:none!important}
#stage2hApp .gp-retry{grid-column:1/-1;min-height:90px;padding:20px;border:1px dashed #ffffff18;background:transparent;color:#b4bac4;border-radius:12px}
#stage2hApp[data-d27-view="actors"][data-k-ranking-active="1"] #kRankingPage.gr-v2{padding:0 0 22px!important;background:#fff!important;color:#20232b!important}
#stage2hApp #kRankingPage.gr-v2 .kr-head{position:relative;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:185px;box-sizing:border-box;padding:28px 22px 43px;margin:0!important;overflow:hidden;background:linear-gradient(155deg,#c64c41 0%,#ec7665 48%,#bc4034 100%)}
#stage2hApp #kRankingPage.gr-v2 .kr-head:before{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(154deg,transparent 40%,#ffffff0c 40%,#ffffff0c 64%,transparent 64%)}
#stage2hApp #kRankingPage.gr-v2 h1{position:relative;margin:0 0 10px!important;color:#fff!important;font-size:29px!important;line-height:1.35!important;font-style:italic;font-weight:750!important;letter-spacing:1px}
#stage2hApp #kRankingPage.gr-v2 .kr-subtitle{position:relative;color:#ffe4df;font-size:11px;line-height:1.7}
#stage2hApp #kRankingPage.gr-v2 .gr-emblem{display:flex;flex-direction:column;align-items:center;gap:6px;color:#ffe4de;font-size:10px;letter-spacing:1px;padding-right:4px}
#stage2hApp #kRankingPage.gr-v2 .gr-emblem svg{width:29px;height:29px}
#stage2hApp #kRankingPage.gr-v2 .gr-list-panel{position:relative;margin-top:-20px;padding:8px 17px 22px;border-radius:22px 22px 0 0;background:#fff;min-height:calc(100% - 165px)}
#stage2hApp #kRankingPage.gr-v2 .kr-tabs{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:0!important;padding:0!important;margin:0 0 10px!important;border-bottom:1px solid #f1f1f3;overflow:visible;background:#fff}
#stage2hApp #kRankingPage.gr-v2 .kr-tabs button{position:relative;width:100%;min-width:0;min-height:52px;padding:14px 0!important;border:0!important;border-radius:0!important;background:transparent!important;color:#7b7e87!important;font-size:14px!important;line-height:1.4!important;font-weight:500!important}
#stage2hApp #kRankingPage.gr-v2 .kr-tabs button[aria-selected=true]{color:#292a30!important;font-weight:750!important}
#stage2hApp #kRankingPage.gr-v2 .kr-tabs button[aria-selected=true]:after{content:'';position:absolute;width:18px;height:3px;bottom:0;left:calc(50% - 9px);border-radius:3px;background:#e16b5e}
#stage2hApp #kRankingPage.gr-v2 .kr-rank-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 9px;padding:1px 0 3px;flex-wrap:nowrap}
#stage2hApp #kRankingPage.gr-v2 .kr-rank-current{float:none;margin:0!important;color:#979aa1;font-size:11px!important;font-weight:400!important;line-height:1.5}
#stage2hApp #kRankingPage.gr-v2 .kr-periods{display:flex;gap:0;flex:0 0 auto;width:auto;max-width:none;margin:0!important;padding:3px;border:0;background:#f5f5f7;border-radius:7px}
#stage2hApp #kRankingPage.gr-v2 .kr-periods button{min-width:43px;min-height:29px;padding:5px 7px!important;border:0!important;border-radius:5px!important;background:transparent!important;color:#90939b!important;font-size:10px!important;line-height:1.4!important;font-weight:400!important}
#stage2hApp #kRankingPage.gr-v2 .kr-periods button[aria-selected=true]{background:#fff!important;color:#d66357!important;box-shadow:0 1px 4px #0000000b;font-weight:600!important}
#stage2hApp #kRankingPage.gr-v2 .kr-content{clear:both;min-height:180px;padding:0;border:0!important;border-radius:0!important;background:transparent!important;overflow:visible}
#stage2hApp #kRankingPage.gr-v2 .kr-live-row{display:grid!important;grid-template-columns:104px minmax(0,1fr);align-items:start;gap:13px;width:100%;min-height:0;padding:14px 0!important;margin:0!important;border:0!important;border-radius:0!important;background:transparent!important;text-align:left;color:#25262c;cursor:pointer}
#stage2hApp #kRankingPage.gr-v2 .kr-live-cover{display:block;width:104px;height:73px;flex:none;background:#f1f2f4;border-radius:8px;overflow:hidden}
#stage2hApp #kRankingPage.gr-v2 .kr-live-cover img{display:block;width:100%;height:100%;object-fit:cover}
#stage2hApp #kRankingPage.gr-v2 .kr-live-cover.is-portrait{width:76px;height:108px;margin-left:14px}
#stage2hApp #kRankingPage.gr-v2 .kr-live-meta{display:block;min-width:0;padding:1px 0}
#stage2hApp #kRankingPage.gr-v2 .kr-live-meta strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:normal;max-height:3.2em;color:#292a30;font-size:14px;line-height:1.6;font-weight:500;overflow-wrap:anywhere}
#stage2hApp #kRankingPage.gr-v2 .kr-inline-rank{display:inline-grid;place-items:center;min-width:17px;height:20px;box-sizing:border-box;padding:0 3px;margin-right:5px;border-radius:4px;background:#a4a6aa;color:#fff;font-size:13px;font-weight:600;font-style:normal;line-height:20px;vertical-align:1px}
#stage2hApp #kRankingPage.gr-v2 .kr-live-row:nth-child(1) .kr-inline-rank{background:#e75c77}
#stage2hApp #kRankingPage.gr-v2 .kr-live-row:nth-child(2) .kr-inline-rank{background:#e48b5b}
#stage2hApp #kRankingPage.gr-v2 .kr-live-row:nth-child(3) .kr-inline-rank{background:#e7b744}
#stage2hApp #kRankingPage.gr-v2 .kr-live-meta small{display:flex;align-items:center;gap:4px;margin-top:8px;color:#d96d51;font-size:11px;line-height:1.5;font-weight:400}
#stage2hApp #kRankingPage.gr-v2 .kr-live-meta small svg{width:12px;height:14px;flex:0 0 auto;color:#e16b75}
#stage2hApp #kRankingPage.gr-v2 .kr-live-msg{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:200px;padding:25px 12px;border:0;border-radius:12px;background:transparent;color:#888e98;text-align:center;font-size:13px;line-height:1.7}
#stage2hApp #kRankingPage.gr-v2 .kr-live-msg small{color:#a8adb5;font-size:11px}
#stage2hApp #kRankingPage.gr-v2 .kr-retry{margin-top:10px;min-height:36px;padding:6px 18px;border:1px solid #d6a49a55;border-radius:8px;background:#fff5f2;color:#c96d5c}
#stage2hApp button:focus-visible{outline:2px solid #dfa78c;outline-offset:3px}
@media(max-width:350px){#stage2hApp #kRankingPage.gr-v2 .kr-live-row{grid-template-columns:88px minmax(0,1fr);gap:10px}#stage2hApp #kRankingPage.gr-v2 .kr-live-cover{width:88px;height:64px}#stage2hApp #kRankingPage.gr-v2 .kr-live-cover.is-portrait{width:68px;height:98px;margin-left:10px}}
#stage2hApp #kRankingPage.gr-v2 .kr-head{display:block!important;text-align:left!important}
#stage2hApp #kRankingPage.gr-v2 .gr-emblem{position:absolute;right:22px;top:36px;width:auto!important}
#stage2hApp #kRankingPage.gr-v2 .kr-periods{background:#f5f5f7!important}
#stage2hApp .gp-collection-entry{display:grid!important;grid-template-columns:36px minmax(0,1fr) 16px;align-items:center;gap:12px;width:100%;min-height:76px;box-sizing:border-box;padding:15px 18px!important;margin:0 0 16px!important;border:1px solid #ffffff0d!important;border-radius:16px!important;background:#131519!important;color:#eee!important;text-align:left;cursor:pointer}
#stage2hApp .gp-entry-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:#ddbb5c12;color:#dec477}
#stage2hApp .gp-entry-icon svg{width:20px;height:20px}
#stage2hApp .gp-collection-entry b{display:block;font-size:15px!important;line-height:1.5;font-weight:600}
#stage2hApp .gp-collection-entry small{display:block;margin-top:3px;font-size:11px!important;line-height:1.6;color:#858c97}
#stage2hApp .gp-collection-entry em{font-size:24px;font-style:normal;color:#747c89;text-align:right}
#stage2hApp .gp-favorites-page{position:absolute!important;inset:0 0 64px!important;z-index:170!important;width:100%!important;height:auto!important;min-height:0!important;max-width:none!important;box-sizing:border-box;overflow:auto;overscroll-behavior:contain;transform:none!important;margin:0!important;padding:0 0 max(22px,env(safe-area-inset-bottom))!important;background:#fff!important;color:#25262c!important;border-radius:inherit}
#stage2hApp .gp-favorites-page[hidden]{display:none!important}

#stage2hApp .gp-favorites-hero{position:relative;box-sizing:border-box;min-height:194px;padding:65px 23px 40px;background:linear-gradient(155deg,#c64c41,#ec7665 50%,#bc4034);color:#fff}
#stage2hApp .gp-favorites-hero h1{margin:0 0 8px;font-size:28px;line-height:1.4;font-weight:700;letter-spacing:1px}
#stage2hApp .gp-favorites-hero p{margin:0;color:#ffe4de;font-size:11px;line-height:1.7}
#stage2hApp #gFavoriteBack{position:absolute;left:13px;top:12px;display:grid;place-items:center;width:38px;height:38px;padding:0;border:0;border-radius:50%;background:transparent;color:white;font-size:33px;line-height:1}
#stage2hApp .gp-favorites-body{position:relative;margin-top:-20px;padding:8px 18px 24px;border-radius:22px 22px 0 0;background:#fff;min-height:calc(100% - 174px);box-sizing:border-box}
#stage2hApp .gp-favorites-page .gp-tabs{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin:0 0 10px;padding:0;border-radius:0;background:white;border-bottom:1px solid #f1f1f3}
#stage2hApp .gp-favorites-page .gp-tabs button{position:relative;min-height:50px;height:auto;padding:12px 0!important;border:0!important;border-radius:0!important;background:transparent!important;color:#8c9099!important;font-size:15px!important;line-height:1.5;box-shadow:none}
#stage2hApp .gp-favorites-page .gp-tabs [aria-pressed=true]{color:#25272d!important;font-weight:700!important;background:transparent!important;box-shadow:none}
#stage2hApp .gp-favorites-page .gp-tabs [aria-pressed=true]:after{content:'';position:absolute;bottom:0;left:calc(50% - 9px);width:18px;height:3px;border-radius:3px;background:#e16b5e}
#stage2hApp .gp-favorites-page .gp-grid{display:block}
#stage2hApp .gp-favorites-page .gp-card{display:grid;grid-template-columns:minmax(0,1fr) 30px;gap:10px;align-items:center;padding:13px 0;border-bottom:1px solid #f3f3f5}
#stage2hApp .gp-favorites-page .gp-work{display:grid!important;grid-template-columns:104px minmax(0,1fr);gap:13px;align-items:start;padding:0!important;border:0;background:transparent;color:#272930!important}
#stage2hApp .gp-favorites-page .gp-poster{display:block;width:104px;height:73px;aspect-ratio:auto;background:#f1f2f4;border-radius:8px;overflow:hidden}
#stage2hApp .gp-favorites-page .gp-poster.is-portrait{width:76px;height:108px;margin-left:14px}
#stage2hApp .gp-favorites-page .gp-work-meta{min-width:0}
#stage2hApp .gp-favorites-page .gp-card strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:normal;margin:2px 0 9px;color:#292a30;font-size:14px;line-height:1.6;font-weight:500;overflow-wrap:anywhere}
#stage2hApp .gp-favorites-page .gp-work-meta small{display:block;color:#a2a6af;font-size:11px;line-height:1.5}
#stage2hApp .gp-favorites-page .gp-remove{display:grid;place-items:center;width:30px;min-height:38px;padding:0!important;border:0!important;background:transparent!important;color:#a0a4ad!important}
#stage2hApp .gp-favorites-page .gp-remove svg{width:17px;height:17px}
#stage2hApp .gp-favorites-page .gp-note{padding-top:65px;color:#9aa0aa}
#stage2hApp .gp-favorites-page .gp-more{color:#cf7b6b!important;min-height:40px;font-size:12px!important}
#stage2hApp .gp-favorites-page .gp-retry{width:100%;border-color:#e5e7eb;color:#9299a4}
@media(max-width:350px){#stage2hApp .gp-favorites-page .gp-work{grid-template-columns:88px minmax(0,1fr);gap:10px}#stage2hApp .gp-favorites-page .gp-poster{width:88px;height:64px}#stage2hApp .gp-favorites-page .gp-poster.is-portrait{width:68px;height:98px;margin-left:10px}}


/* Keep one work per row; cover width is one of three equal content columns. */
#stage2hApp #kRankingPage.gr-v2 .kr-head{min-height:142px;padding:24px 22px 34px}
#stage2hApp #kRankingPage.gr-v2 .gr-emblem{top:29px}
#stage2hApp #kRankingPage.gr-v2 .kr-live-row{grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:13px}
#stage2hApp #kRankingPage.gr-v2 .kr-live-cover{width:100%;height:auto;aspect-ratio:3/2}
#stage2hApp #kRankingPage.gr-v2 .kr-live-cover.is-portrait{width:100%;height:auto;aspect-ratio:2/3;margin-left:0}
#stage2hApp .gp-favorites-hero{min-height:150px;padding:52px 23px 28px}
#stage2hApp .gp-favorites-body{min-height:calc(100% - 130px)}
#stage2hApp .gp-favorites-page .gp-card{display:block;position:relative}
#stage2hApp .gp-favorites-page .gp-work{grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:13px}
#stage2hApp .gp-favorites-page .gp-poster{width:100%;height:auto;aspect-ratio:3/2}
#stage2hApp .gp-favorites-page .gp-poster.is-portrait{width:100%;height:auto;aspect-ratio:2/3;margin-left:0}
#stage2hApp .gp-favorites-page .gp-work-meta{padding-right:27px}
#stage2hApp .gp-favorites-page .gp-remove{position:absolute;right:0;top:50%;transform:translateY(-50%);width:24px}
#stage2hApp #kRankingPage.gr-v2 .kr-head,#stage2hApp .gp-favorites-hero{background:#090a0d!important;color:#f0f1f4!important}
#stage2hApp #kRankingPage.gr-v2 .kr-head:before{display:none}
#stage2hApp #kRankingPage.gr-v2 .kr-subtitle,#stage2hApp .gp-favorites-hero p{color:#9096a1!important}
#stage2hApp #kRankingPage.gr-v2 .gr-emblem{color:#d7bf83}
#stage2hApp #kRankingPage.gr-v2,#stage2hApp #kRankingPage.gr-v2 .gr-list-panel,#stage2hApp .gp-favorites-page,#stage2hApp .gp-favorites-body{background:#1c1e24!important;color:#dfe2e9!important}
#stage2hApp #kRankingPage.gr-v2 .kr-tabs,#stage2hApp .gp-favorites-page .gp-tabs{background:#1c1e24!important;border-bottom-color:#ffffff0b}
#stage2hApp #kRankingPage.gr-v2 .kr-tabs button,#stage2hApp .gp-favorites-page .gp-tabs button{color:#989eaa!important}
#stage2hApp #kRankingPage.gr-v2 .kr-tabs button[aria-selected=true],#stage2hApp .gp-favorites-page .gp-tabs button[aria-pressed=true]{color:#f2d38b!important}
#stage2hApp #kRankingPage.gr-v2 .kr-tabs button[aria-selected=true]:after,#stage2hApp .gp-favorites-page .gp-tabs button[aria-pressed=true]:after{background:#dabb73}
#stage2hApp #kRankingPage.gr-v2 .kr-periods{background:#111318!important;border-color:#ffffff0b}
#stage2hApp #kRankingPage.gr-v2 .kr-periods button[aria-selected=true]{background:#34343a!important;color:#eed394!important}
#stage2hApp #kRankingPage.gr-v2 .kr-live-meta strong,#stage2hApp .gp-favorites-page .gp-card strong{color:#e3e6ed!important}
#stage2hApp .gp-favorites-page .gp-card{border-bottom-color:#ffffff0a}
#stage2hApp #kRankingPage.gr-v2 .kr-live-cover,#stage2hApp .gp-favorites-page .gp-poster{background:#282b33}
#stage2hApp #kRankingPage.gr-v2 .kr-retry{background:#262831;color:#e0c78f;border-color:#d6bd7c33}
#stage2hApp .gp-favorites-page[hidden]{display:none!important;pointer-events:none!important}
#stage2hApp[data-d27-view="my"]>#gFavoritesPage:not([hidden]){display:block!important;pointer-events:auto!important}
#stage2hApp:not([data-d27-view="my"])>#gFavoritesPage{display:none!important;pointer-events:none!important}
