/* Spacing adapter: measured against the user's rendered HTML, 2026-10-18.
   Data-driven text/counts and conditional business content keep their natural size. */
html body.site91 .home-content .category-normal{row-gap:28px;column-gap:18px;grid-template-columns:repeat(6,minmax(0,1fr))}
html body.site91 .home-content .category-normal .drama-data-card h3{margin:14px 0 9px}
html body.site91 .home-content .drama-description{margin-bottom:9px}
html body.site91 .home-content .drama-meta{gap:10px}
/* The input wrapper and input may distribute padding differently; text inset stays 14px. */
html body.site91 :is(.login-dialog-card,.register-dialog-card){gap:0}
html body.site91 :is(.login-dialog-head,.register-dialog-head){margin:0 0 24px;gap:10px}
html body.site91 :is(.login-dialog-form,.register-dialog-form){display:block;margin:0;gap:0}
html body.site91 .login-dialog-field-group{display:grid;gap:10px;margin:0 0 20px}
html body.site91 .register-dialog-field-group{display:grid;gap:8px;margin:0 0 18px}
html body.site91 :is(.login-dialog-label,.register-dialog-label){margin:0}
html body.site91 :is(.login-dialog-field,.register-dialog-field){gap:10px}
html body.site91 :is(.login-dialog-submit,.register-dialog-submit){display:block;width:100%}
html body.site91 :is(.login-dialog-register,.register-dialog-login){margin:18px 0 0}
html body.site91 :is(.login-dialog-legal,.register-dialog-legal){margin:16px 0 0}
/* Avoid a legacy breadcrumb bottom margin being counted again by the page heading. */
html body.site91 .feedback-page{margin-bottom:0!important}
html body.site91 .feedback-breadcrumb{margin:0;padding:0;gap:12px}
html body.site91 #feedback-form .feedback-section{display:block;gap:0;margin:0;padding:0;min-width:0}
html body.site91 #feedback-form .feedback-section>h2{font-size:18px;line-height:27px;margin:0 0 16px}
html body.site91 #feedback-form .feedback-panel.feedback-stack{padding:22px;gap:16px}
html body.site91 #feedback-form .feedback-description-box{position:relative}
html body.site91 #feedback-form .feedback-description-box textarea{height:180px;min-height:180px;padding:14px 16px 40px;line-height:25.2px}
html body.site91 #feedback-form .feedback-counter{position:absolute;bottom:14px;right:16px;margin:0;width:auto;line-height:18px}
html body.site91 #feedback-form .feedback-upload{width:360px;height:auto;max-width:100%;aspect-ratio:1;padding:28px 16px;gap:10px}
html body.site91 #feedback-form .feedback-upload .feedback-reference-plus{box-sizing:content-box;width:25px;height:25px;padding:11.5px;margin:0 0 18px;flex:none}
html body.site91 #feedback-form .feedback-file-limit{margin:18px 0 0;font-size:14px;line-height:22.4px}
html body.site91 #feedback-form .feedback-upload>span{font-size:18px;line-height:27px}
html body.site91 #feedback-form .feedback-upload>small{font-size:14px;line-height:22.4px}
/* Let the title use the available column instead of shrinking to its contents. */
html body.is-detail-page .detail-hero-info{display:block;width:100%;padding-top:4px;align-self:stretch}
html body.is-detail-page .detail-title-row{width:100%}
html body.is-detail-page .detail-hero-main{gap:0}
html body.is-detail-page .detail-tags{margin-top:18px}
html body.is-detail-page .detail-genres{margin-top:18px}
html body.is-detail-page .detail-intro-block{margin:18px 0 26px}
html body.is-detail-page .detail-intro{margin:0;line-height:26.6px;-webkit-line-clamp:3}
html body.is-detail-page .detail-primary{gap:0}
html body.is-detail-page .detail-episodes{display:block;padding-top:26px;gap:0}
html body.is-detail-page .detail-episodes-head{margin:0 0 18px}
html body.is-detail-page .detail-episode-tabs{margin:0 0 22px}
html body.site91 :is(.detail-comments,.play-main>.detail-comments){display:block;padding:0;margin-top:28px;gap:0}
html body.site91 .detail-comment-list{margin-top:12px}
html body.site91 .detail-aside .poster-card{margin-bottom:24px}
@media(min-width:761px){
 html body.is-detail-page .detail-page{padding-top:30px!important}
 html body.is-detail-page .site-breadcrumb{margin-bottom:26px}
 html body.site91 .home-content .category-normal{grid-template-columns:repeat(6,minmax(0,1fr))}
}
@media(min-width:761px) and (max-width:1180px){html body.site91 .home-content .category-normal{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){
 html body.site91 .home-content .category-normal{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:22px;column-gap:12px}
 html body.site91 :is(.login-dialog-card,.register-dialog-card){width:440px;max-width:calc(100vw - 48px)}
 html body.site91 #feedback-form .feedback-panel.feedback-stack{padding:16px}
 html body.site91 #feedback-form .feedback-upload{width:100%;max-width:360px;border-radius:24px}
 html body.is-detail-page .detail-page{padding-top:18px!important}
 html body.is-detail-page .detail-hero{gap:16px}
 html body.is-detail-page .detail-intro-block{margin:14px 0 18px}
 html body.is-detail-page .detail-tags{margin-top:12px}
}

html body.site91 #global-site-header .header-actions{gap:0!important}
@media(min-width:761px){html body.site91 #global-site-header .header-actions{height:40px}}
html body.site91 .site-breadcrumb,html body.site91 .feedback-breadcrumb{font-size:12px;line-height:18px}
html body.site91.is-home-91 .home-content .hero-grid{grid-template-columns:minmax(220px,.68fr) minmax(0,2fr);gap:36px}
html body.site91.is-home-91 .hero-stage-91{min-width:0}
html body.site91.is-home-91 .v2-poster-stage{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;height:auto;align-items:start}
html body.site91.is-home-91 .v2-poster-stage[data-count="1"]{grid-template-columns:minmax(0,1fr)}
html body.site91.is-home-91 .hero-feature-card-91{height:auto;aspect-ratio:16/9;min-width:0;order:1}
html body.site91.is-home-91 .hero-feature-card-91.v2-next-poster{order:2}
html body.site91.is-home-91 .hero-feature-card-91 .feature-copy-91{gap:8px;max-width:none;left:18px;right:18px;bottom:17px}
html body.site91.is-home-91 .hero-feature-card-91 .feature-copy-91>strong{font-size:18px;line-height:25.2px}
html body.site91.is-home-91 .feature-badge-91{display:none}
html body.site91.is-home-91 .discovery-91{padding:16px 0 30px}
html body.site91.is-home-91 .discovery-browse-91{margin-top:0}
html body.site91 .home-content .category-normal{column-gap:22px}
html body.site91 .home-content .drama-meta{gap:7px}
html body.site91 .topic-gallery-91{gap:22px!important}
html body.site91 .topic-caption-91{padding:24px;gap:12px}
html body.site91 .playlist-grid-91 .editorial-copy-91{padding-top:0}
html body.site91 .playlist-grid-91 .editorial-card-91:first-child{gap:12px!important}
html body.site91 .wallet-usage-item{margin-top:16px;gap:12px}

@media(min-width:761px) and (max-width:1180px){
 html body.site91.is-home-91 .home-content .hero-grid{grid-template-columns:minmax(190px,.6fr) minmax(0,2fr);gap:24px}
 html body.site91 .home-content .category-normal{column-gap:18px}
 html body.site91 .topic-gallery-91{gap:14px!important}
}
@media(max-width:760px){
 html body.site91>main.shell,html.sidebar-collapsed body.site91>main.shell{padding-left:16px!important;padding-right:16px!important}
 html body.site91 .home-content .category-normal{column-gap:12px}
 html body.site91.is-home-91 .home-content .hero-grid{grid-template-columns:minmax(0,1fr);gap:20px}
 html body.site91.is-home-91 .v2-poster-stage{grid-template-columns:minmax(0,1fr);gap:14px}
 html body.site91.is-home-91 .hero-feature-card-91 .feature-copy-91{left:12px;right:12px;bottom:10px;gap:6px}
 html body.site91.is-home-91 .hero-feature-card-91 .feature-copy-91>strong{font-size:15px;line-height:21px}
 html body.site91.is-home-91 .feature-cta-slot-91{display:none}
 html body.site91.is-home-91 .discovery-91{padding:0}
 html body.site91 .topic-gallery-91{gap:14px!important}
 html body.site91 .topic-caption-91{padding:16px;gap:12px}
 html body.site91 .site-breadcrumb,html body.site91 .feedback-breadcrumb{font-size:11px;line-height:17.6px}
 html body.site91.is-detail-page .detail-hero{display:grid;grid-template-columns:88px minmax(0,1fr);gap:16px}
 html body.site91.is-detail-page .detail-cover{grid-column:1;grid-row:1;align-self:start;width:88px;max-width:100%;height:auto;aspect-ratio:640/914;margin:0}
 html body.site91.is-detail-page .detail-hero-main{display:contents}
 html body.site91.is-detail-page .detail-hero-info{grid-column:2;grid-row:1;min-width:0;padding-top:0}
 html body.site91.is-detail-page .detail-title-row{display:block}
 html body.site91.is-detail-page .detail-title{font-size:19px;line-height:28.5px}
 html body.site91.is-detail-page .detail-title-heat{display:flex;margin-top:7px;font-size:11px}
 html body.site91.is-detail-page .detail-tags{gap:5px;margin-top:10px}
 html body.site91.is-detail-page .detail-intro-block{grid-column:1/-1;margin:12px 0 16px}
 html body.site91.is-detail-page .detail-actions{grid-column:1/-1;margin:0}
 html body.site91.is-detail-page .detail-primary-actions{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:9px}
 html body.site91.is-detail-page .detail-action-group{gap:7px}
}

/* ID-scoped inherited dialog adapters otherwise restore their 18px flex gap. */
html body #loginDialog .login-dialog-form,html body #registerDialog .register-dialog-form{display:block!important;gap:0!important}
html body #loginDialog .login-dialog-card,html body #registerDialog .register-dialog-card{gap:0}
html body.is-detail-page .detail-hero{align-items:start}
html body.is-detail-page .detail-hero-main{align-self:start}
@media(max-width:760px){html body #loginDialog .login-dialog-card,html body #registerDialog .register-dialog-card{max-width:calc(100vw - 48px)!important}}

html body.site91 .feedback-breadcrumb{font-size:12px!important;line-height:18px!important}
html body.site91.is-home-91 .home-content .hero-feature-card-91 .feature-copy-91>strong{font-size:18px;line-height:25.2px}
html body.site91.is-home-91 .home-content .hero-feature-card-91 .feature-copy-91>p{order:-1;font-size:10px;line-height:14px;margin:0}
html body.site91.is-home-91 .home-content .hero-feature-card-91 .feature-watch-91{opacity:0;transform:translateY(4px);min-height:32px;padding:8px 13px;font-size:11px}
html body.site91.is-home-91 .home-content .hero-feature-card-91:is(:hover,:focus-visible) .feature-watch-91{opacity:1;transform:none}
html body.site91.is-home-91 .discovery-browse-91{display:none}
@media(max-width:760px){html body.site91.is-home-91 .home-content .hero-feature-card-91 .feature-copy-91>strong{font-size:15px;line-height:21px}}

html body .site-breadcrumb{gap:12px}
html body .poster-card-subtitle{margin-bottom:9px}
html body .poster-card-meta{display:flex;gap:10px;margin-top:0!important}
html body.is-detail-page .detail-page{padding-bottom:0!important}
html body.is-play-page:not(.swipe-mode) .play-page{padding-top:30px!important;padding-bottom:0!important}
@media(max-width:760px){
 html body .site-breadcrumb{gap:8px}
 html body .info-heading{padding-top:24px;padding-bottom:24px}
 html body .poster-card-subtitle{margin-bottom:7px}
 html body .home-content .drama-description{margin-bottom:7px}
 html body .poster-card-meta,html body .home-content .drama-meta{gap:6px}
 html body.is-play-page:not(.swipe-mode) .play-page{padding-top:16px!important;padding-left:16px!important;padding-right:16px!important;padding-bottom:0!important}
 html body.site51 .play-ep-grid{gap:10px}
}

html body.site91 .info-heading{padding-top:28px;padding-bottom:32px}
html body.site91 .poster-card-meta{gap:7px}
html body.site91.is-detail-page .detail-tags{gap:6px}
@media(max-width:760px){
 html body.site91 .site-breadcrumb{gap:9px}
 html body.site91 .info-heading{padding-top:20px;padding-bottom:24px}
 html body.site91 .topic-caption-91{padding:18px;gap:12px}
 html body.site91 .poster-card-meta,html body.site91 .home-content .drama-meta{gap:7px}
 html body.site91 .home-content .drama-description{margin-bottom:6px}
 html body.site91 .member-library-tabs{gap:12px}
 html body.site91 .member-settings-action{gap:12px}
 html body.site91.is-detail-page .detail-episode-list,html body.site91 .play-ep-grid{gap:8px}
 html body.site91.is-play-page:not(.swipe-mode) .play-page{padding-top:18px!important}
}

html body.site91 .home-content .category-normal .drama-data-card h3{margin:13px 0 9px}
@media(max-width:760px){html body.site91 .home-content .category-normal .drama-data-card h3{margin-bottom:5px}}

/* Content columns remain centered at the reference maximum on wide displays. */
html body.site91>main.shell,html.sidebar-collapsed body.site91>main.shell,html body.site91>.page-shell{max-width:1600px!important;margin-left:auto!important;margin-right:auto!important}
@media(min-width:761px) and (max-width:1180px){
 html body.site91>main.shell,html.sidebar-collapsed body.site91>main.shell,html body.site91>.page-shell{padding-left:32px!important;padding-right:32px!important}
 html body.site91 #global-site-header{padding-left:32px!important;padding-right:32px!important}
}

html body.site91 #info-page .info-heading{padding:28px 0 32px}
html body.site91 #topic-recommendation-grid .topic-tile-91:first-child .topic-caption-91{padding:24px;gap:12px}
@media(max-width:760px){
 html body.site91 #info-page .info-heading{padding:20px 0 24px}
 html body.site91 #topic-recommendation-grid .topic-tile-91:first-child .topic-caption-91{padding:18px;gap:12px}
}

@media(min-width:761px) and (max-width:1180px){html body.is-detail-page .detail-hero{padding:24px;gap:24px}}
html body.is-detail-page .detail-tags{margin-top:20px}
html body #profile-popover>.profile-switch{padding-top:14px;margin-top:6px}
@media(min-width:521px) and (max-width:760px){html body #registerDialog .register-dialog-card{padding-top:32px;padding-bottom:32px}}

html body.site91 .poster-card .poster-card-meta{gap:7px!important}
@media(max-width:1180px){html body.site91 #topic-recommendation-grid .topic-tile-91:first-child .topic-caption-91{padding:18px}}
@media(min-width:761px) and (max-width:1180px){
 html body.site91 #global-site-header>.top{grid-template-columns:125px minmax(0,1fr) 140px auto!important;gap:10px!important}
 html body.site91 #global-site-header .hg-desktop-nav{min-width:0;overflow-x:auto;scrollbar-width:none}
 html body.site91 #global-site-header .top .search{width:140px!important}
 html body.site91 #global-site-header .search input{display:block!important}
}
@media(max-width:760px){
 html body.site91 .poster-card-subtitle{margin-bottom:6px}
 html body.site91 #info-page .member-library-tabs{gap:12px}
 html body.site91 #info-page .page-breadcrumb{gap:9px}
 html body.site91 #loginDialog .login-dialog-card{width:calc(100vw - 48px);padding-top:26px;padding-bottom:26px}
 html body.site91.is-detail-page .detail-tags{margin-top:10px}
 html body.site91 #global-site-header>.top{grid-template-columns:28px minmax(0,1fr) 85px!important;gap:10px!important;height:62px!important;min-height:62px!important;grid-template-rows:62px!important}
 html body.site91.is-home-91 #global-site-header>.top{gap:20px!important;height:64px!important;min-height:64px!important;grid-template-rows:64px!important}
 html body.site91 #global-site-header .mobile-menu-trigger{width:44px!important;margin-left:-8px}
 html body.site91 #global-site-header .header-actions{width:85px;height:36px;gap:17px!important}
 html body.site91 #global-site-header .header-actions .coin-entry{margin-left:-6px!important;margin-right:-6px!important}
 html body.site91 #global-site-header .account-entry{width:36px;height:36px;padding:2px}
 html body.site91 #global-site-header .top .search{height:34px!important;overflow:visible}
 html body.site91.is-home-91 #global-site-header .top .search{height:38px!important}
 html body.site91 #global-site-header .search input{min-height:44px;margin-top:-5px;margin-bottom:-5px;align-self:center}
 html body.site91 #global-site-header .search button{height:44px!important;min-height:44px!important;align-self:center}
}

@media(min-width:761px){html body.site91 .site-breadcrumb{gap:12px!important}}

@media(max-width:760px){
 html body.site91 .poster-card .poster-card-subtitle{margin-bottom:6px!important}
 html body.site91 .site-breadcrumb,html body.site91 #channel-page .page-breadcrumb{gap:9px!important}
 html body.site91 #global-site-header .search input{margin-top:0;margin-bottom:0}
}
@media(max-width:359px){html body.site91:not(.is-home-91) #global-site-header>.top{gap:7px!important}}
@media(min-width:981px) and (max-width:1180px){html body.site91 #global-site-header>.top{gap:12px!important}}

@media(min-width:761px) and (max-width:1180px){html body.is-detail-page .detail-cover{width:180px;max-width:180px;flex-basis:180px}}

@media(max-width:760px){html body.site91 .page-breadcrumb{gap:9px!important}}

@media(min-width:981px) and (max-width:1180px){
 html body.is-detail-page .detail-page{grid-template-columns:minmax(0,1fr) 222px}
 html body.is-detail-page .detail-aside{width:auto;min-width:0;max-width:none}
}
