/* H5 worksheet 23: layout and interaction refinements. */
#md-feature-layer .md-public-author>.md-layer-close{position:absolute;left:16px;right:auto;top:12px;width:36px;height:36px;padding:0;display:grid;place-items:center;border-radius:50%;font-size:28px}
.md-search-results{padding:10px 24px 30px;overflow:auto;height:100%;box-sizing:border-box}
.md-search-results>header{display:flex;align-items:center;gap:16px}.md-search-results h1{font-size:20px}.md-search-results header>button{width:36px;height:36px;border-radius:50%;font-size:28px;background:#292a34;color:white;border:0}.md-search-results header>span{color:#a5a6b0}
.md-search-results>nav{display:flex;gap:28px;border-bottom:1px solid #ffffff15;margin:12px 0 20px}.md-search-results nav button{background:none;border:0;color:#9294a0;padding:12px 2px;font-size:16px;font-weight:700}.md-search-results nav button.active{color:white;border-bottom:3px solid #ff315e}
.md-search-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:22px 16px}.md-search-grid button{text-align:left;background:none;border:0;padding:0;color:inherit;min-width:0;cursor:pointer}.md-search-video img{width:100%;aspect-ratio:3/4;object-fit:cover;border-radius:8px}.md-search-grid strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;margin-top:7px}.md-search-grid.is-users{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(min-width:1200px){#md-shell .md-search-grid:not(.is-users){grid-template-columns:repeat(6,minmax(0,240px))}}
.md-search-user{display:flex;gap:12px;align-items:center}.md-search-user img{width:64px;height:64px;border-radius:50%;object-fit:cover}
.md-comment-manage{padding:10px;background:#ffffff08;border-radius:8px;margin-top:8px}.md-comment-manage textarea{width:100%;box-sizing:border-box;background:#15161d;color:white;border:1px solid #ffffff30;border-radius:6px;padding:8px}.md-comment-manage button{margin:6px 12px 0 0;background:#363843;color:white;border:0;border-radius:5px;padding:6px 10px}.md-comment-manage p{font-size:12px}
.md-im-delete{display:block;margin-top:5px;border:0;background:none;color:#a7a9b5;font-size:11px;padding:3px 0;cursor:pointer}.md-im-delete-confirm{max-width:230px;background:#30323d;border-radius:8px;padding:10px;font-size:12px}.md-im-delete-confirm span{display:block}.md-im-delete-confirm button{border:0;padding:6px 9px;border-radius:4px;margin:8px 6px 0 0;cursor:pointer}
.md-history-header{display:flex;align-items:center;position:relative;justify-content:center;height:48px}.md-history-header h1{font-size:17px;margin:0}.md-history-header button{position:absolute;left:4px;top:4px;width:40px;height:40px;background:none;color:inherit;border:0;font-size:28px}.md-history-progress{display:block;color:#a6a7af;text-align:left;font-size:11px;margin-top:3px}.md-history-view .md-profile-heading,.md-history-view .md-tools,.md-history-view .md-mobile-download,.md-history-view .md-profile-tabs,.md-history-view .md-profile-history-heading{display:none!important}.md-history-view .md-profile-content{padding-top:0!important}
.md-playback-locked .video-player{filter:blur(28px);pointer-events:none}.md-playback-locked #md-native-toolbar{pointer-events:none;opacity:0!important}#md-locked-shield{position:fixed;inset:45% 15% auto;z-index:120;pointer-events:none;text-align:center;color:#fff;text-shadow:0 2px 8px #000;font-size:16px}#md-locked-shield[hidden]{display:none}
.md-progress-compact:not(.md-progress-dragging){background:transparent!important}.md-progress-compact:not(.md-progress-dragging)>:is(output,.md-player-time,.md-native-time){display:none!important}.md-progress-compact input[type=range]{height:18px!important;cursor:ew-resize}.md-progress-compact:not(.md-progress-dragging) input[type=range]::-webkit-slider-thumb{opacity:0}.md-progress-compact:not(.md-progress-dragging) input[type=range]::-moz-range-thumb{opacity:0}
body.md-watch-hidden #md-native-toolbar.md-progress-compact{opacity:1!important;visibility:visible!important;pointer-events:auto!important;transform:none!important;height:18px;bottom:4px}body.md-watch-hidden #md-native-toolbar.md-progress-compact:not(.md-progress-dragging){display:block;padding:0 12px;height:18px}body.md-watch-hidden #md-native-toolbar.md-progress-compact:not(.md-progress-dragging)>:not(input){display:none}#md-native-toolbar.md-progress-compact input{flex:1;min-width:0}
@media(min-width:1200px){
 #md-shell[data-view=series] .md-mixed-grid:has(.md-home-hot){grid-template-rows:28px minmax(0,1fr) minmax(0,1fr);grid-auto-rows:auto}
 #md-shell[data-view=series] .md-mixed-grid:has(.md-home-hot)>article.md-card.md-card--lead{grid-area:1/1/4/16;height:var(--md-home-lead-height);min-height:0;align-self:stretch}
 #md-shell[data-view=series] .md-mixed-grid:has(.md-home-hot)>.md-home-picks{grid-area:4/1/5/-1}
 #md-shell[data-view=series] .md-mixed-grid:has(.md-home-hot)>button.md-card:nth-child(n+2):nth-child(-n+7){display:flex;flex-direction:column;justify-content:start;width:100%;height:100%;min-height:0;aspect-ratio:auto;padding:0}
 #md-shell[data-view=series] .md-mixed-grid:has(.md-home-hot)>button.md-card:nth-child(n+2):nth-child(-n+7) .md-card-image{aspect-ratio:3/4;width:auto;max-width:100%;height:calc((var(--md-home-lead-height) - 92px)/2);align-self:center}
 #md-shell[data-view=series] .md-mixed-grid:has(.md-home-hot)>button.md-card:nth-child(n+2):nth-child(-n+7) .md-card-title{white-space:nowrap;display:block;overflow:hidden;text-overflow:ellipsis;font-size:13px;line-height:18px;margin-top:6px;width:100%}
 #md-shell[data-view=series] .md-mixed-grid:has(.md-home-hot)>button.md-card:nth-child(2){grid-area:2/16/3/19}#md-shell[data-view=series] .md-mixed-grid:has(.md-home-hot)>button.md-card:nth-child(3){grid-area:2/19/3/22}#md-shell[data-view=series] .md-mixed-grid:has(.md-home-hot)>button.md-card:nth-child(4){grid-area:2/22/3/25}
 #md-shell[data-view=series] .md-mixed-grid:has(.md-home-hot)>button.md-card:nth-child(5){grid-area:3/16/4/19}#md-shell[data-view=series] .md-mixed-grid:has(.md-home-hot)>button.md-card:nth-child(6){grid-area:3/19/4/22}#md-shell[data-view=series] .md-mixed-grid:has(.md-home-hot)>button.md-card:nth-child(7){grid-area:3/22/4/25}
}
@media(min-width:768px){#md-drama-comments .md-drama-comment-sheet{align-self:stretch;margin:0 0 0 auto;width:380px;max-width:40vw;height:100dvh;border-radius:0;background:#202129}#md-feature-layer .md-public-author-header{padding-left:70px}}
@media(max-width:767px){
 #md-shell .md-profile-top p,#md-shell .md-profile-top small{font-weight:700}#md-shell .md-profile-stats strong,#md-shell .md-profile-stats span,#md-shell .md-bio,#md-shell .md-profile-tabs button,#md-shell .md-profile-filter button,#md-shell .md-tools button{font-weight:700!important}
 .md-history-view{background:#080809!important;color:white!important}.md-history-view .md-profile,.md-history-view .md-profile-content{background:#080809!important;color:white!important}.md-history-view .md-profile-filter{background:transparent!important}.md-history-view .md-profile-filter button{color:#999!important;background:none!important;border:0!important}.md-history-view .md-profile-filter button[aria-pressed=true]{color:#fff!important}.md-history-view .md-card-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:white!important;font-weight:700!important}.md-history-view .md-desktop-card-meta,.md-history-view .md-badge{display:none!important}
 .md-search-results{padding:4px 12px 22px}.md-search-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 6px}.md-search-grid.is-users{grid-template-columns:1fr}.md-search-grid strong{font-size:12px}
 #md-feature-layer .md-public-author-header .md-author-big{z-index:2;object-fit:cover;background:#353743}#md-feature-layer .md-public-author-info{padding-top:25px}#md-feature-layer .md-public-author-info h2{margin:0 0 8px;font-size:19px;font-weight:700}#md-feature-layer .md-public-author-info p{margin:0 0 10px;font-weight:500}#md-feature-layer .md-author-stats{font-weight:700}
}



.md-creator-search-form{display:none}.md-mobile-search-open{display:none}
@media(max-width:767px){.md-creator-search-form{display:flex;gap:8px;margin-top:6px}.md-creator-search-form input{min-width:0;flex:1;background:#292a33;border:1px solid #ffffff20;color:white;border-radius:7px;padding:8px}.md-creator-search-form button{background:#333541;color:white;border:0;border-radius:7px;padding:7px 12px}.md-mobile-feed-header .md-mobile-search-open{display:grid;place-items:center;position:absolute;right:12px;top:50%;transform:translateY(-50%);width:44px;height:44px;padding:0;border:0;background:#0004;border-radius:50%;color:white;font-size:0}.md-mobile-feed-header .md-mobile-search-open svg{display:block;width:26px;height:26px;pointer-events:none}#md-watch-header button svg{display:block;width:22px;height:22px;pointer-events:none}}

#md-native-toolbar.md-progress-dragging{height:44px!important;display:flex!important;background:#15151ddd!important;padding:0 12px!important}
@media(max-width:767px){#md-feature-layer .md-public-author-info .md-author-stats{justify-content:flex-start;gap:22px}#md-feature-layer .md-public-author-info .md-author-stats strong{color:#18191f;font-size:20px}#md-feature-layer .md-public-author-info .md-author-stats>div{font-size:12px;text-align:center} .md-history-progress{font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}}

@media(max-width:767px){#md-shell,.md-public-author,.md-inbox{font-weight:600}.md-feed-caption .md-feed-byline,.md-feed-caption h2{font-weight:700}}

/* Search playback stays above its retained result list and never selects the creator center. */
#md-shell:has(>.md-search-playback){overflow:hidden!important}
#md-shell .md-search-playback{position:fixed;inset:var(--md-topbar,56px) 0 0 var(--md-sidebar,160px);z-index:21900;display:flex;align-items:center;justify-content:center;padding:20px 32px;box-sizing:border-box;background:#08090bd9}
#md-shell .md-search-playback>.md-feed-workspace{display:flex!important;position:relative;flex:0 1 1280px;max-width:1280px;width:100%;height:100%;min-height:0;box-sizing:border-box}
#md-shell .md-search-playback .md-author-play-back{z-index:10}
@media(max-width:767px){
 #md-shell .md-search-playback{inset:0;padding:0;background:#08090b}
 body:has(#md-shell>.md-search-playback) #md-nav{visibility:hidden}
 #md-shell .md-search-playback>.md-feed-workspace{flex:1;flex-direction:column;max-width:none;height:100dvh;padding:0!important}
 #md-shell .md-search-playback .md-feed-stage{flex:1!important;min-height:0;height:auto!important}
 #md-shell .md-search-playback .md-author-play-back{top:max(12px,env(safe-area-inset-top))}
}
