.gg-page-hero{display:flex;align-items:center;min-height:170px;padding:28px;border:1px solid var(--gg-border);border-radius:calc(var(--gg-radius) + 8px);background:linear-gradient(135deg,var(--gg-surface),var(--gg-surface-2))}
.gg-page-hero--compact{min-height:120px}
.gg-page-hero h1{margin:0;font-size:34px;line-height:1.2}
.gg-page-hero p{margin:8px 0 0;color:var(--gg-muted)}
.gg-detail{display:grid;grid-template-columns:280px minmax(0,1fr);gap:28px;padding:24px;border-radius:calc(var(--gg-radius) + 8px);background:var(--gg-surface);border:1px solid var(--gg-border);box-shadow:var(--gg-runtime-shadow)}
.gg-detail__poster{aspect-ratio:2/3;border-radius:var(--gg-radius);overflow:hidden;background:var(--gg-surface-2)}
.gg-detail__poster img{width:100%;height:100%;object-fit:cover}
.gg-detail__body h1{margin:0;font-size:36px;line-height:1.18}
.gg-detail__meta{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}
.gg-detail__meta span{padding:4px 10px;border-radius:999px;background:var(--gg-surface-2);color:var(--gg-muted)}
.gg-detail__line{margin:8px 0;color:var(--gg-muted)}
.gg-detail__line strong{margin-right:10px;color:var(--gg-text)}
.gg-detail__desc{max-height:170px;overflow:auto;color:var(--gg-muted)}
.gg-detail__actions{display:flex;gap:10px;margin-top:18px}
.gg-episode-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:10px}
.gg-line-picker{padding:14px;border:1px solid var(--gg-border);border-radius:calc(var(--gg-radius) + 4px);background:var(--gg-surface)}
.gg-episode{min-height:34px;display:flex;align-items:center;justify-content:center;padding:4px 8px;border-radius:9px;background:var(--gg-surface-2);color:var(--gg-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}
.gg-episode:hover,.gg-episode.is-active{background:var(--gg-accent);color:var(--gg-on-accent)}
.gg-episode-tools{display:flex;gap:8px;margin:10px 0 12px;overflow:auto;padding-bottom:2px;scrollbar-width:none}
.gg-episode-tools::-webkit-scrollbar{display:none}
.gg-episode-tools button{flex:0 0 auto;min-height:32px;padding:0 12px;border:0;border-radius:999px;background:var(--gg-surface-2);color:var(--gg-muted);font-size:13px;font-weight:900}
.gg-episode-tools button.is-active{background:var(--gg-accent);color:var(--gg-on-accent)}
.gg-episode-grid--compact,.gg-episode-grid--play{display:flex;gap:8px;overflow-x:auto;overflow-y:hidden;padding-bottom:4px;scroll-snap-type:x proximity;scrollbar-width:thin}
.gg-episode-grid--compact .gg-episode,.gg-episode-grid--play .gg-episode{flex:0 0 78px;min-height:34px;scroll-snap-align:start}
.gg-episode-grid--compact.is-expanded,.gg-episode-grid--play.is-expanded{display:grid;grid-template-columns:repeat(auto-fill,minmax(76px,1fr));overflow:visible;padding-bottom:0}
.gg-episode-grid--compact.is-expanded .gg-episode,.gg-episode-grid--play.is-expanded .gg-episode{flex:none}
.gg-player{border:1px solid var(--gg-border);border-radius:calc(var(--gg-radius) + 6px);background:var(--gg-surface);overflow:hidden}
.gg-player__screen{position:relative;background:var(--gg-player);aspect-ratio:16/9;min-height:220px;overflow:hidden}
.gg-player__screen .MacPlayer{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:0!important;margin:0!important;padding:0!important;background:#000!important;overflow:hidden!important}
.gg-player__screen .MacPlayer table,.gg-player__screen .MacPlayer tbody,.gg-player__screen .MacPlayer tr,.gg-player__screen .MacPlayer td,#playleft{width:100%!important;height:100%!important}
.gg-player__screen iframe,.gg-player__screen video,.gg-player__screen embed,.gg-player__screen object{position:absolute;inset:0;width:100%!important;height:100%!important;display:block;border:0}
.gg-play-detail{margin-top:14px;padding:16px;border:1px solid var(--gg-border);border-radius:calc(var(--gg-radius) + 6px);background:var(--gg-surface);box-shadow:var(--gg-runtime-shadow)}
.gg-play-detail__tabs{display:flex;gap:24px;margin-bottom:12px;color:var(--gg-muted);font-weight:900}
.gg-play-detail__tabs span{position:relative;padding-bottom:6px}
.gg-play-detail__tabs .is-active{color:var(--gg-accent)}
.gg-play-detail__tabs .is-active:after{content:"";position:absolute;left:0;right:0;bottom:0;height:3px;border-radius:999px;background:var(--gg-accent)}
.gg-play-detail__head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.gg-play-detail__head h1{margin:0;font-size:24px;line-height:1.24}
.gg-play-detail__head p{display:flex;flex-wrap:wrap;gap:8px;margin:6px 0 0;color:var(--gg-muted)}
.gg-play-detail__head p span:not(:last-child):after{content:"/";margin-left:8px;color:var(--gg-soft)}
.gg-play-detail__head>a{flex:0 0 auto;color:var(--gg-accent);font-weight:900}
.gg-play-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:10px;margin:14px 0}
.gg-play-actions a,.gg-play-actions button{min-height:54px;display:grid;place-items:center;align-content:center;gap:4px;border:0;border-radius:var(--gg-radius);background:var(--gg-surface-2);color:var(--gg-text);font-weight:900}
.gg-play-actions em{font-style:normal}
.gg-play-action-icon{width:20px;height:20px;position:relative;display:block}
.gg-play-action-icon--star{clip-path:polygon(50% 0,61% 34%,98% 35%,68% 56%,79% 91%,50% 70%,21% 91%,32% 56%,2% 35%,39% 34%);background:currentColor}
.gg-play-action-icon--heart:before,.gg-play-action-icon--heart:after{content:"";position:absolute;width:15px;height:22px;border-radius:15px 15px 0 0;background:currentColor;transform:rotate(-45deg);transform-origin:0 100%;left:12px;top:2px}
.gg-play-action-icon--heart:after{left:0;transform:rotate(45deg);transform-origin:100% 100%}
.gg-play-action-icon--share{border:3px solid currentColor;border-radius:6px}
.gg-play-action-icon--share:before{content:"";position:absolute;right:-5px;top:-8px;width:16px;height:14px;border-top:3px solid currentColor;border-right:3px solid currentColor;transform:rotate(-18deg)}
.gg-play-lines{margin-top:6px}
.gg-play-lines__head{display:block;margin-bottom:12px}
.gg-play-lines__head h2,.gg-play-summary h2{margin:0;font-size:22px;line-height:1.25}
.gg-play-line-tabs{display:flex;gap:8px;width:100%;margin-top:10px;overflow:auto;padding-bottom:2px;scrollbar-width:none}
.gg-play-line-tabs::-webkit-scrollbar{display:none}
.gg-play-line-tabs button{flex:0 0 auto;min-height:34px;padding:0 14px;border:0;border-radius:10px;background:var(--gg-surface-2);color:var(--gg-muted);font-size:14px;font-weight:900}
.gg-play-line-tabs button.is-active{background:var(--gg-accent);color:var(--gg-on-accent)}
.gg-episode-grid--play .gg-episode{border-radius:10px;font-size:15px;font-weight:900}
.gg-play-summary{margin-top:16px}
.gg-play-summary p{max-height:92px;margin:8px 0 0;overflow:auto;color:var(--gg-muted);line-height:1.75}
.gg-search-page-form{height:54px;max-width:680px;border-radius:999px}
.gg-search-page-form .gg-search__input{font-size:16px}
.gg-search-page-form .gg-button{height:42px;margin-right:6px;border-radius:999px}
.gg-keywords{display:flex;flex-wrap:wrap;gap:10px}
.gg-keywords a{padding:8px 14px;border:1px solid var(--gg-border);border-radius:999px;background:var(--gg-surface);color:var(--gg-muted)}
.gg-keywords a:hover{border-color:var(--gg-accent);color:var(--gg-accent)}
.gg-type-tabs{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 18px}
.gg-type-tabs--strong{padding:12px;border:1px solid var(--gg-border);border-radius:calc(var(--gg-radius) + 2px);background:var(--gg-surface)}
.gg-section--first{margin-top:0}
.gg-type-tabs__item{display:inline-flex;align-items:center;min-height:38px;padding:0 14px;border:1px solid var(--gg-border);border-radius:999px;background:var(--gg-surface);color:var(--gg-muted);font-weight:700}
.gg-type-tabs__item:hover,.gg-type-tabs__item.is-active{border-color:var(--gg-accent);background:var(--gg-accent);color:var(--gg-on-accent)}
.gg-filter-board{display:grid;gap:14px;padding:18px;border:1px solid var(--gg-border);border-radius:calc(var(--gg-radius) + 4px);background:var(--gg-surface);box-shadow:var(--gg-runtime-shadow)}
.gg-filter-row{display:grid;grid-template-columns:62px minmax(0,1fr);gap:12px;align-items:center}
.gg-filter-row>span{color:var(--gg-text);font-weight:900}
.gg-filter-row>div{display:flex;gap:10px;overflow:auto;padding-bottom:2px;scrollbar-width:none}
.gg-filter-row>div::-webkit-scrollbar{display:none}
.gg-filter-row a{flex:0 0 auto;min-height:40px;display:inline-flex;align-items:center;padding:0 16px;border-radius:12px;background:var(--gg-surface-2);color:var(--gg-muted);font-weight:800}
.gg-filter-row a.is-active{background:var(--gg-accent);color:var(--gg-on-accent)}
.gg-filter-sort{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;width:min(520px,100%);margin:18px 0 0;padding:6px;border-radius:999px;background:var(--gg-surface);border:1px solid var(--gg-border)}
.gg-filter-sort button{min-height:42px;display:grid;place-items:center;border:0;border-radius:999px;background:transparent;color:var(--gg-muted);font:inherit;font-weight:900;cursor:pointer}
.gg-filter-sort button.is-active{background:var(--gg-accent);color:var(--gg-on-accent)}
.gg-section--tight{margin-top:18px}
.gg-rank-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px}
.gg-rank-head h1{margin:0;font-size:32px;line-height:1.2}
.gg-rank-head .gg-type-tabs{justify-content:flex-end;margin:0;max-width:820px}
.gg-rank-layout{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.gg-rank-column{padding:18px;border:1px solid var(--gg-border);border-radius:calc(var(--gg-radius) + 4px);background:var(--gg-surface);box-shadow:var(--gg-runtime-shadow)}
.gg-rank-column h2{margin:0 0 14px;font-size:20px}
.gg-rank-list{margin:0;padding:0;list-style:none;counter-reset:gg-rank}
.gg-rank-list li{counter-increment:gg-rank;border-top:1px solid var(--gg-border)}
.gg-rank-list li:first-child{border-top:0}
.gg-rank-list a{position:relative;display:grid;grid-template-columns:44px 52px minmax(0,1fr);gap:10px;align-items:center;padding:10px 0}
.gg-rank-list a:before{content:counter(gg-rank);width:32px;height:32px;display:grid;place-items:center;border-radius:50%;background:var(--gg-surface-2);color:var(--gg-muted);font-weight:900}
.gg-rank-list li:nth-child(-n+3) a:before{background:var(--gg-accent);color:var(--gg-on-accent)}
.gg-rank-list img{width:52px;aspect-ratio:2/3;object-fit:cover;border-radius:8px;background:var(--gg-surface-2)}
.gg-rank-list strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--gg-text)}
.gg-rank-list em{display:block;margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--gg-muted);font-style:normal;font-size:13px}
.gg-download-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:28px}
.gg-download-card{padding:22px;border:1px solid var(--gg-border);border-radius:calc(var(--gg-radius) + 4px);background:var(--gg-surface);box-shadow:var(--gg-runtime-shadow)}
.gg-download-card__icon{width:48px;height:48px;display:grid;place-items:center;border-radius:50%;background:var(--gg-accent);color:var(--gg-on-accent);font-weight:900}
.gg-download-card h2{margin:16px 0 8px;font-size:22px}
.gg-download-card p{min-height:44px;margin:0 0 16px;color:var(--gg-muted);line-height:1.6}
.gg-button.is-disabled{opacity:.55;pointer-events:none}
.gg-empty{margin-top:24px;padding:28px;border:1px solid var(--gg-border);border-radius:var(--gg-radius);background:var(--gg-surface);color:var(--gg-muted)}
.gg-jump{max-width:560px;margin:48px auto;padding:28px;border:1px solid var(--gg-border);border-radius:calc(var(--gg-radius) + 8px);background:var(--gg-surface);box-shadow:var(--gg-runtime-shadow);text-align:center}
.gg-jump h1{margin:0 0 10px;font-size:28px}
.gg-jump p{margin:0 0 20px;color:var(--gg-muted)}
.gg-jump__actions{display:flex;align-items:center;justify-content:center;gap:14px;flex-wrap:wrap;color:var(--gg-muted)}
.gg-auth{min-height:calc(100vh - 210px);display:grid;place-items:center;padding:22px}
.gg-auth__panel{width:min(420px,100%);padding:28px;border:1px solid var(--gg-border);border-radius:calc(var(--gg-radius) + 8px);background:var(--gg-surface);box-shadow:var(--gg-runtime-shadow)}
.gg-auth__panel h1{margin:0 0 20px;font-size:28px}
.gg-auth-form{display:grid;gap:12px}
.gg-auth-input{height:46px;width:100%;padding:0 14px;border:1px solid var(--gg-border);border-radius:12px;background:var(--gg-surface-2);color:var(--gg-text);outline:0}
.gg-auth-input:focus{border-color:var(--gg-accent)}
.gg-auth-verify{display:grid;grid-template-columns:minmax(0,1fr) 112px;gap:10px}
.gg-auth-verify img{width:112px;height:46px;object-fit:cover;border-radius:12px;border:1px solid var(--gg-border);background:var(--gg-surface-2)}
.gg-auth__link{margin:16px 0 0;color:var(--gg-muted)}
.gg-auth__link a{color:var(--gg-accent);font-weight:800}
.gg-user-card{display:flex;align-items:center;gap:16px;padding:24px;border:1px solid var(--gg-border);border-radius:calc(var(--gg-radius) + 6px);background:var(--gg-surface);box-shadow:var(--gg-runtime-shadow)}
.gg-user-card__avatar{width:62px;height:62px;display:grid;place-items:center;border-radius:50%;background:var(--gg-accent);color:var(--gg-on-accent);font-size:24px;font-weight:900}
.gg-user-card h1{margin:0;font-size:26px}
.gg-user-card p{margin:6px 0 0;color:var(--gg-muted)}
.gg-user-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:18px}
.gg-user-action{padding:18px;border:1px solid var(--gg-border);border-radius:var(--gg-radius);background:var(--gg-surface)}
.gg-user-action strong{display:block;margin-bottom:6px;color:var(--gg-text)}
.gg-user-action span{color:var(--gg-muted);font-size:13px;line-height:1.5}
.gg-user-info-panel{margin-top:18px}
@media (max-width:960px){
    .gg-detail{grid-template-columns:200px minmax(0,1fr)}
}
@media (max-width:620px){
    .gg-page-hero{min-height:120px;padding:20px}
    .gg-page-hero h1{font-size:28px}
    .gg-detail{grid-template-columns:1fr;padding:16px}
    .gg-detail__poster{width:min(220px,70vw);margin:0 auto}
    .gg-detail__body h1{font-size:28px}
    .gg-episode-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
    .gg-main--play{padding-top:0}
    .gg-main--play .gg-shell{width:100%;margin:0}
    .gg-main--play .gg-player{border-left:0;border-right:0;border-radius:0}
    .gg-main--play .gg-player__screen{width:100vw;left:50%;transform:translateX(-50%);min-height:0;border-radius:0}
    .gg-main--play .gg-player__screen .MacPlayer,.gg-main--play .gg-player__screen iframe,.gg-main--play .gg-player__screen video{left:0!important;right:0!important;margin:0!important;transform:none!important}
    .gg-main--play .gg-player__screen .MacPlayer table,.gg-main--play .gg-player__screen .MacPlayer td{padding:0!important;border:0!important}
    .gg-play-detail{margin:0;padding:12px 12px 16px;border-left:0;border-right:0;border-radius:0;background:var(--gg-bg);box-shadow:none}
    .gg-play-detail__tabs{gap:22px;margin-bottom:10px;font-size:16px}
    .gg-play-detail__head h1{font-size:20px}
    .gg-play-detail__head p{gap:4px;font-size:13px}
    .gg-play-actions{grid-template-columns:repeat(auto-fit,minmax(82px,1fr));gap:8px;margin:12px 0}
    .gg-play-actions a,.gg-play-actions button{min-height:50px;border-radius:14px;font-size:13px}
    .gg-play-action-icon{width:18px;height:18px}
    .gg-play-lines__head h2,.gg-play-summary h2{font-size:22px}
    .gg-play-line-tabs{max-width:none;margin-top:8px}
    .gg-line-picker{padding:10px}
    .gg-play-line-tabs button{min-height:32px;padding:0 12px;border-radius:10px;font-size:13px}
    .gg-episode-tools{margin:8px 0 10px}
    .gg-episode-tools button{min-height:30px;padding:0 10px;font-size:12px}
    .gg-episode-grid--compact .gg-episode,.gg-episode-grid--play .gg-episode{flex-basis:62px;min-height:32px;border-radius:8px;font-size:13px}
    .gg-episode-grid--compact.is-expanded,.gg-episode-grid--play.is-expanded{grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
    .gg-play-summary{margin-top:14px}
    .gg-play-summary p{max-height:88px;font-size:14px;line-height:1.6}
    .gg-download-grid,.gg-user-grid,.gg-rank-layout{grid-template-columns:1fr}
    .gg-filter-board{gap:12px;padding:14px}
    .gg-filter-row{grid-template-columns:48px minmax(0,1fr);gap:10px}
    .gg-filter-row a{min-height:38px;padding:0 14px}
    .gg-filter-sort{margin-top:14px}
    .gg-rank-head h1{font-size:28px}
    .gg-rank-head{display:block}
    .gg-rank-head .gg-type-tabs{justify-content:flex-start;margin-top:12px}
    .gg-type-tabs{flex-wrap:nowrap;overflow:auto;padding-bottom:4px;scrollbar-width:none}
    .gg-type-tabs::-webkit-scrollbar{display:none}
    .gg-type-tabs__item{white-space:nowrap}
}
