.ax-drama{padding:28px 0 48px}.ax-drama-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:24px}.ax-drama-heading h1{font-size:clamp(28px,4vw,42px);margin:4px 0 8px}.ax-drama-heading p{opacity:.8;margin:4px 0}.ax-drama-eyebrow{font-size:11px;font-weight:800;letter-spacing:.18em;color:#8ebd3c}.ax-drama select,.ax-drama input{font:inherit;color:inherit;border:1px solid color-mix(in srgb,currentColor 20%,transparent);background:var(--ax-bg,#121912);border-radius:10px;padding:12px;min-height:44px}.ax-drama select option{background:#142014;color:#edf7e8}html[data-theme=light] .ax-drama select,html[data-theme=light] .ax-drama input{background:#fff;color:#182319}html[data-theme=light] .ax-drama select option{background:#fff;color:#182319}.ax-drama-language{display:grid;gap:6px;font-size:12px;min-width:150px}.ax-drama-search{display:flex;gap:10px;flex-wrap:wrap}.ax-drama-search input{flex:1;min-width:180px}.ax-drama-platforms{display:flex;gap:8px;overflow:auto;padding:18px 0 12px;scrollbar-width:thin}.ax-drama-platforms button{white-space:nowrap;min-height:40px;border:1px solid color-mix(in srgb,currentColor 18%,transparent);border-radius:999px;background:transparent;color:inherit;padding:9px 16px;font:inherit;cursor:pointer}.ax-drama-platforms button[aria-current=true]{background:#a9d84d;color:#142009;border-color:#a9d84d;font-weight:700}.ax-drama-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:20px 16px}.ax-drama-group{margin:24px 0}.ax-drama-group h2{font-size:19px;margin:0 0 16px}.ax-drama-card a{text-decoration:none;color:inherit}.ax-drama-card h3{font-size:14px;line-height:1.5;margin:9px 0}.ax-drama-poster{position:relative;aspect-ratio:2/3;border-radius:12px;overflow:hidden;background:color-mix(in srgb,currentColor 8%,transparent);display:grid;place-items:center}.ax-drama-poster img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .2s}.ax-drama-card a:hover img{transform:scale(1.04)}.ax-drama-tag{position:absolute;bottom:8px;left:8px;right:8px;display:flex;justify-content:space-between;gap:4px}.ax-drama-tag span{background:rgba(0,0,0,.78);color:#fff;border-radius:5px;padding:3px 6px;font-size:10px}.ax-drama-detail-head{display:grid;grid-template-columns:150px 1fr;gap:24px;margin:24px 0}.ax-drama-detail-head img{width:150px;aspect-ratio:2/3;object-fit:cover;border-radius:12px}.ax-drama-detail-head p{line-height:1.8;max-width:800px;white-space:pre-line}.ax-drama-video{width:100%;height:min(72vh,720px);background:#000;border-radius:14px}.ax-drama-player{margin:24px 0}.ax-drama-controls{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:12px 0}.ax-drama-controls label{font-size:13px;display:flex;align-items:center;gap:7px}.ax-drama-episodes{display:grid;grid-template-columns:repeat(auto-fill,minmax(65px,1fr));gap:8px;max-height:300px;overflow:auto;margin:16px 0}.ax-drama-episodes button{font:inherit;background:transparent;color:inherit;border:1px solid color-mix(in srgb,currentColor 20%,transparent);border-radius:8px;padding:12px;cursor:pointer}.ax-drama-episodes button[aria-current=true]{background:#a9d84d;color:#142009}.ax-drama-actions{display:flex;justify-content:center;gap:12px;margin:24px 0}.ax-drama-footnote{font-size:12px;opacity:.65;margin-top:32px}.ax-drama [hidden]{display:none!important}.ax-drama-empty{padding:24px;border:1px dashed color-mix(in srgb,currentColor 25%,transparent);border-radius:12px;font-size:14px}.ax-drama-back{font:inherit;color:inherit;cursor:pointer;background:transparent;border:0;padding:8px 0;text-decoration:underline}@media(max-width:1000px){.ax-drama-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:600px){.ax-drama-heading{align-items:flex-start;gap:12px}.ax-drama-language{min-width:120px;max-width:130px}.ax-drama-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px 10px}.ax-drama-card h3{font-size:12px}.ax-drama-search select{flex:1}.ax-drama-detail-head{grid-template-columns:100px 1fr;gap:15px}.ax-drama-detail-head img{width:100px}.ax-drama-detail-head h2{font-size:20px}.ax-drama-detail-head p{grid-column:1/-1}.ax-drama-tag span{font-size:9px;padding:2px 3px}}@media(prefers-reduced-motion:reduce){.ax-drama-poster img{transition:none}}
.ax-drama-platforms button:disabled{opacity:.45;cursor:not-allowed}

.ax-drama-browse-tools{display:flex;flex-wrap:wrap;gap:12px;margin-top:14px}.ax-drama-browse-tools label{display:grid;gap:5px;font-size:12px;min-width:170px}.ax-drama-browse-tools select{max-width:100%}

#drama-catalog-sentinel{height:1px}

.ax-drama-player-top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;background:#101710;color:#f1f7ee}
.ax-drama-player-top button{flex-shrink:0}.ax-drama-stage{position:relative;background:#000;display:flex;align-items:center;justify-content:center;min-height:240px;color:#fff}
.ax-drama-player-error{position:absolute;left:16px;right:16px;bottom:36px;background:#172017;padding:12px;border-radius:8px;text-align:center}
.ax-drama-player:is(.is-immersive,:fullscreen){position:fixed;inset:0;width:100%;height:100dvh;max-height:100dvh;margin:0;padding:max(0px,env(safe-area-inset-top)) max(0px,env(safe-area-inset-right)) max(0px,env(safe-area-inset-bottom)) max(0px,env(safe-area-inset-left));z-index:10000;background:#000;color:#f1f7ee;display:grid;grid-template-rows:auto minmax(0,1fr) auto;box-sizing:border-box}
.ax-drama-player:is(.is-immersive,:fullscreen) .ax-drama-stage{height:100%;min-height:0;overflow:hidden;touch-action:pan-x}
.ax-drama-player:is(.is-immersive,:fullscreen) .ax-drama-video{width:100%;height:100%;max-height:100%;object-fit:contain;border-radius:0}
.ax-drama-player:is(.is-immersive,:fullscreen) .ax-drama-controls{margin:0;padding:8px 12px;background:#101710;color:#f1f7ee;max-height:32dvh;overflow:auto}
.ax-drama-player:is(.is-immersive,:fullscreen) .ax-drama-controls select{background:#172017;color:#fff}
body.ax-drama-immersive{overflow:hidden}.ax-drama-swipe-hint{font-size:12px;opacity:.75}
@media(max-width:600px){.ax-drama-player-top{font-size:12px}.ax-drama-player-top strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ax-drama-player .ax-drama-controls{gap:6px}.ax-drama-player .ax-drama-controls button,.ax-drama-player .ax-drama-controls select{font-size:12px;padding:8px;min-height:40px}}

/* Immersive player lives directly under body, outside the site's stacking context. */
body.ax-drama-immersive>.ax-header,body.ax-drama-immersive>.ax-skip-link{visibility:hidden;pointer-events:none}
body>.ax-drama-player:is(.is-immersive,:fullscreen){z-index:2147483000;isolation:isolate}
.ax-drama-player-top{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:6px 12px;min-height:40px;box-sizing:border-box}
.ax-drama-player-top strong{min-width:0;font-size:13px;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ax-drama-player-top .ax-btn{min-height:32px;padding:5px 12px;font-size:12px}
.ax-drama-player:is(.is-immersive,:fullscreen) .ax-drama-controls{gap:8px;padding:6px 12px;max-height:25dvh;border-top:1px solid #243024}
.ax-drama-player .ax-drama-controls label{font-size:11px;gap:6px;white-space:nowrap}
.ax-drama-player .ax-drama-controls select{font:inherit;font-size:12px;min-height:34px;max-width:150px;padding:6px 9px;border:1px solid #3b4838;border-radius:8px;background:#172017;color:#f1f7ee}
.ax-drama-player .ax-drama-controls .ax-btn{font-size:12px;min-height:34px;padding:6px 12px;white-space:nowrap}
.ax-drama-player .ax-drama-controls input[type=checkbox]{width:15px;height:15px;min-height:0;margin:0;padding:0;accent-color:#a9d84d}
.ax-drama-player:is(.is-immersive,:fullscreen) .ax-drama-fullscreen{display:none}
.ax-drama-player .ax-drama-swipe-hint{font-size:11px;line-height:1.4}
@media(max-width:600px){
 .ax-drama-player-top{padding:6px 8px;gap:8px}
 .ax-drama-player-top strong{font-size:12px}
 .ax-drama-player-top .ax-btn{min-height:30px;font-size:11px;padding:5px 9px}
 .ax-drama-player:is(.is-immersive,:fullscreen) .ax-drama-controls{padding:6px 8px;gap:6px;max-height:28dvh}
 .ax-drama-player .ax-drama-controls label:has(select){flex:1}
 .ax-drama-player .ax-drama-controls select{min-width:0;max-width:100%;flex:1}
 .ax-drama-player .ax-drama-controls button:not(.ax-drama-fullscreen){flex:1}
 .ax-drama-player .ax-drama-swipe-hint{display:none}
}
@media(max-height:500px){.ax-drama-player .ax-drama-swipe-hint{display:none}.ax-drama-player:is(.is-immersive,:fullscreen) .ax-drama-controls{max-height:30dvh}}


.ax-drama-player:not(.is-immersive):not(:fullscreen) .ax-drama-player-top button{display:none}

/* Leave video touch gestures to the browser native player. */
.ax-drama-stage .ax-drama-video{touch-action:auto}

/* Stable player controls: equal episode buttons, separate preferences on phones. */
.ax-drama-player .ax-drama-controls{display:grid;grid-template-columns:minmax(160px,1fr) repeat(2,minmax(150px,1fr)) auto;align-items:center;gap:10px}
.ax-drama-player .ax-drama-controls .ax-drama-quality{grid-column:1;grid-row:1;min-width:0;display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px}
.ax-drama-player .ax-drama-controls .ax-drama-quality select{width:100%;max-width:100%;min-width:0;box-sizing:border-box}
.ax-drama-player .ax-drama-controls .ax-drama-autoplay{grid-column:4;grid-row:1;justify-self:end;min-height:40px;margin:0}
.ax-drama-player .ax-drama-controls .ax-drama-episode-prev,.ax-drama-player .ax-drama-controls .ax-drama-episode-next{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;min-width:0;min-height:44px;box-sizing:border-box;white-space:normal;line-height:1.3;text-align:center;align-self:stretch}
.ax-drama-player .ax-drama-controls .ax-drama-episode-prev{grid-column:2;grid-row:1}
.ax-drama-player .ax-drama-controls .ax-drama-episode-next{grid-column:3;grid-row:1}
.ax-drama-episode-prev::before{content:'←';flex-shrink:0}.ax-drama-episode-next::after{content:'→';flex-shrink:0}
html[dir=rtl] .ax-drama-episode-prev::before{content:'→'}html[dir=rtl] .ax-drama-episode-next::after{content:'←'}
@media(max-width:760px){
 .ax-drama-player .ax-drama-controls{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0 20px}
 .ax-drama-player .ax-drama-controls .ax-drama-quality{grid-column:1;grid-row:1;font-size:12px}
 .ax-drama-player .ax-drama-controls .ax-drama-autoplay{grid-column:2;grid-row:1;font-size:12px;justify-self:end}
 .ax-drama-player .ax-drama-controls .ax-drama-episode-prev{grid-column:1;grid-row:2}
 .ax-drama-player .ax-drama-controls .ax-drama-episode-next{grid-column:2;grid-row:2}
 .ax-drama-player .ax-drama-controls .ax-drama-episode-prev,.ax-drama-player .ax-drama-controls .ax-drama-episode-next{padding:9px 7px;font-size:12px}
 .ax-drama-player:is(.is-immersive,:fullscreen) .ax-drama-controls{margin:0}
}

/* Episode navigation preferences remain below the equal-width episode buttons. */
.ax-drama-player .ax-drama-controls{grid-template-columns:minmax(160px,1fr) repeat(2,minmax(150px,1fr))}
.ax-drama-navigation-preferences,.ax-drama-next-status{grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px;min-width:0}
.ax-drama-player .ax-drama-navigation-preferences label{display:flex;align-items:center;gap:7px;min-height:36px;margin:0}

.ax-drama-next-status{padding:8px 10px;background:#172017;color:#f1f7ee;border-radius:8px;font-size:12px;justify-content:space-between}

@media(max-width:760px){.ax-drama-player .ax-drama-controls{grid-template-columns:repeat(2,minmax(0,1fr))}.ax-drama-player .ax-drama-controls .ax-drama-quality{grid-column:1/-1}.ax-drama-player .ax-drama-navigation-preferences{gap:5px 14px}}


/* Native video gestures and fullscreen controls. */
.ax-drama-stage,.ax-drama-stage .ax-drama-video{touch-action:auto;overscroll-behavior:auto}

/* Episode watch layout and accessible HTML5 controls. */
.ax-drama-watch{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,370px);gap:20px;align-items:start;margin-top:12px}
.ax-drama-watch .ax-drama-player{min-width:0;margin:0;border:1px solid var(--ax-border,#34402b);border-radius:20px;overflow:hidden;background:#0c100c}
.ax-drama-watch .ax-drama-player-top{background:transparent;padding:12px 16px;color:#eef5e8}
.ax-drama-watch-sidebar{min-width:0;max-height:calc(85svh + 90px);overflow:auto;padding:20px;border:1px solid var(--ax-border,#34402b);border-radius:20px;background:var(--ax-bg-card);scrollbar-width:thin}
.ax-drama-watch-sidebar .ax-drama-detail-head{display:block;margin:0}
.ax-drama-watch-sidebar .ax-drama-detail-head>img{display:none}
.ax-drama-watch-sidebar h1,.ax-drama-watch-sidebar h2{font-size:21px;line-height:1.45;margin:0 0 10px}
.ax-drama-watch-sidebar h3{font-size:16px;margin:20px 0 12px}
.ax-drama-watch-sidebar p{font-size:14px;line-height:1.7;margin:8px 0}
.ax-drama-synopsis{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.ax-drama-synopsis.is-expanded{display:block;overflow:visible}
.ax-drama-synopsis-toggle{border:0;background:transparent;color:var(--ax-accent-text);font:inherit;font-size:13px;cursor:pointer;padding:5px 0}
.ax-drama-episode-pages{display:flex;gap:8px;overflow:auto;padding:0 0 10px}
.ax-drama-episode-pages button{flex-shrink:0;background:transparent;color:inherit;border:1px solid var(--ax-border,#34402b);border-radius:8px;padding:8px 12px;min-height:40px;font:inherit;cursor:pointer}
.ax-drama-episode-pages button[aria-pressed=true]{color:#111b07;background:#a5e82e;border-color:#a5e82e}
.ax-drama-watch-sidebar .ax-drama-episodes{grid-template-columns:repeat(5,minmax(0,1fr));max-height:none;overflow:visible;margin:6px 0}
.ax-drama-watch-sidebar .ax-drama-episodes button{min-height:48px;min-width:0;padding:8px 4px;border-radius:12px}
.ax-drama-watch .ax-drama-controls{grid-template-columns:repeat(2,minmax(0,1fr));padding:10px 14px;margin:0;background:#0c100c;color:#eef5e8}
.ax-drama-watch .ax-drama-controls .ax-drama-episode-prev{grid-column:1;grid-row:auto}
.ax-drama-watch .ax-drama-controls .ax-drama-episode-next{grid-column:2;grid-row:auto}
.ax-drama-watch .ax-drama-controls>.ax-btn:not(.ax-drama-episode-prev):not(.ax-drama-episode-next){grid-column:1/-1}
.ax-drama-stage--controls{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;overflow:hidden;background:#000}
.ax-drama-stage--controls>.ax-drama-video{display:block;object-fit:contain;width:100%;height:min(65svh,660px);min-height:240px;border-radius:0;grid-column:1;grid-row:1}
.ax-video-toolbar{background:#111710;color:#f2f7ef;padding:8px 12px;grid-column:1;grid-row:2;min-width:0}
.ax-video-toolbar-row{display:flex;align-items:center;gap:9px;min-width:0;flex-wrap:wrap}
.ax-video-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 38px;width:38px;height:38px;padding:8px;color:#b0ec40;border:0;border-radius:8px;background:transparent;cursor:pointer}
.ax-video-icon svg{width:22px;height:22px}
.ax-video-icon:hover,.ax-video-icon:focus-visible{background:#a5e82e20;outline:2px solid #a5e82e;outline-offset:1px}
.ax-video-time{font-size:12px;white-space:nowrap;font-variant-numeric:tabular-nums;margin-inline-end:auto}
.ax-video-toolbar input[type=range]{padding:0;min-height:24px;border:0;accent-color:#a5e82e;cursor:pointer;background:transparent}
.ax-video-toolbar .ax-video-seek{display:block;width:100%;margin:0 0 5px}
.ax-video-toolbar .ax-video-volume{width:65px}
.ax-video-toolbar select{font:inherit;font-size:12px;min-height:36px;padding:5px 7px;background:#172017;color:#f2f7ef;border:1px solid #46523f;max-width:115px}
.ax-video-quality{min-width:0}
.ax-video-captions{display:flex;align-items:center;gap:5px;font-size:12px}
.ax-drama-stage--controls:has(.ax-preroll-layer)>.ax-video-toolbar{visibility:hidden;pointer-events:none}
.ax-drama-stage--controls:fullscreen{height:100dvh;width:100%;background:#000}
.ax-drama-stage--controls:fullscreen>.ax-drama-video{height:100%;max-height:100%;min-height:0}
.ax-preroll-layer .ax-preroll-label{max-width:calc(100% - 24px);font-size:12px}
html[data-theme=light] .ax-drama-watch-sidebar{background:#f5f8f1;color:#192416;border-color:#cbd5c0}
html[data-theme=light] .ax-drama-synopsis-toggle{color:#426818}
@media(max-width:1000px){
 .ax-drama-watch{grid-template-columns:minmax(0,1fr)}
 .ax-drama-watch-sidebar{max-height:none}
 .ax-drama-watch-sidebar .ax-drama-episodes{grid-template-columns:repeat(auto-fill,minmax(52px,1fr))}
}
@media(max-width:600px){
 .ax-drama-watch{gap:14px}
 .ax-drama-watch .ax-drama-player,.ax-drama-watch-sidebar{border-radius:14px}
 .ax-drama-watch-sidebar{padding:16px}
 .ax-drama-stage--controls>.ax-drama-video{height:min(62svh,620px)}
 .ax-video-toolbar{padding:7px 8px}
 .ax-video-toolbar-row{gap:4px}
 .ax-video-icon{flex-basis:34px;width:34px;height:36px;padding:7px}
 .ax-video-time{font-size:10px}
 .ax-video-toolbar select{max-width:85px;font-size:11px;padding:4px;min-height:34px}
 .ax-video-toolbar .ax-video-volume{display:none}
 .ax-drama-watch .ax-drama-controls{padding:8px;margin:0}
}

.ax-drama--detail{display:flex;flex-direction:column}.ax-drama--detail>#drama-detail{order:1}.ax-drama--detail>.ax-drama-history{order:2;margin-top:32px}.ax-drama--detail>.ax-drama-footnote{order:3}.ax-drama--detail>.ax-drama-actions{display:none}

.ax-drama-scroll-hint{font-size:11px;line-height:1.5;opacity:.72}.ax-drama-navigation-preferences .ax-drama-scroll-hint{flex:1 1 220px;white-space:normal}

/* Compact, responsive catalog layout. Scoped away from episode pages. */
#ax-drama:not(.ax-drama--detail){padding-top:12px}
#ax-drama:not(.ax-drama--detail) .ax-drama-heading{margin-bottom:20px}
#ax-drama:not(.ax-drama--detail) .ax-drama-eyebrow{margin:0 0 8px;font-size:10px;line-height:1.5}
#ax-drama:not(.ax-drama--detail) .ax-drama-heading-line{gap:12px}
#ax-drama:not(.ax-drama--detail) .ax-platform-shortcut--heading{flex-direction:row;width:auto;min-height:44px;padding:7px 11px;gap:7px;border-radius:12px;box-shadow:none;font-size:11px}
#ax-drama:not(.ax-drama--detail) .ax-platform-shortcut--heading .ax-platform-slide{width:28px;height:28px;border-radius:8px}
.ax-drama-catalog-tools{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px;padding:16px;border:1px solid var(--ax-border,#35442a);border-radius:16px;background:var(--ax-surface,var(--ax-bg-secondary,#10180e));margin:18px 0 12px}
#ax-drama .ax-drama-catalog-tools .ax-drama-source{display:grid!important;gap:6px!important;flex:0 1 180px;margin:0!important;min-width:0}
#ax-drama .ax-drama-catalog-tools label{font-size:12px;line-height:1.4;min-width:0}
#ax-drama .ax-drama-catalog-tools .ax-drama-browse-tools{flex:1;gap:12px;margin:0;min-width:0}
#ax-drama .ax-drama-catalog-tools .ax-drama-browse-tools label{flex:1;min-width:0;display:grid;gap:6px}
#ax-drama .ax-drama-catalog-tools select{width:100%;min-width:0;max-width:100%;box-sizing:border-box;font-size:13px;min-height:44px;padding:10px 12px!important;border-radius:10px!important}
#ax-drama.ax-drama--detail>.ax-drama-catalog-tools{display:none}
#ax-drama:not(.ax-drama--detail) #drama-message{font-size:13px;line-height:1.65;opacity:.75;margin:12px 0 20px}
#ax-drama:not(.ax-drama--detail) #drama-message:empty{display:none}
#ax-drama:not(.ax-drama--detail) .ax-drama-group{margin:22px 0}
#ax-drama:not(.ax-drama--detail) .ax-drama-group h2{font-size:20px;line-height:1.4;margin:0 0 14px}
#ax-drama:not(.ax-drama--detail) .ax-drama-card{min-width:0}
#ax-drama:not(.ax-drama--detail) .ax-drama-card h3{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere;line-height:1.5;min-height:3em;margin:8px 0 0}
#ax-drama:not(.ax-drama--detail) .ax-drama-tag span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#ax-drama:not(.ax-drama--detail) .ax-drama-tag span:last-child{flex-shrink:0}
@media(max-width:600px){
 #ax-drama:not(.ax-drama--detail){padding-top:8px}
 #ax-drama:not(.ax-drama--detail) .ax-drama-heading h1{font-size:28px;line-height:1.2}
 #ax-drama:not(.ax-drama--detail) .ax-drama-heading{margin-bottom:16px}
 .ax-drama-catalog-tools{padding:12px;gap:10px;border-radius:14px;margin:14px 0 10px}
 #ax-drama .ax-drama-catalog-tools .ax-drama-source{flex:0 1 calc(42% - 5px)}
 #ax-drama .ax-drama-catalog-tools .ax-drama-browse-tools{flex:1 1 calc(58% - 5px)}
 #ax-drama .ax-drama-catalog-tools .ax-drama-browse-tools:has(#drama-category-label:not([hidden])){flex-basis:100%}
 #ax-drama .ax-drama-catalog-tools select{font-size:12px;padding:10px 7px!important}
 #ax-drama:not(.ax-drama--detail) #drama-message{font-size:12px;margin:10px 0 18px}
 #ax-drama:not(.ax-drama--detail) .ax-drama-group h2{font-size:18px;margin-bottom:12px}
 #ax-drama:not(.ax-drama--detail) .ax-drama-grid{gap:18px 10px}
 #ax-drama:not(.ax-drama--detail) .ax-drama-poster{border-radius:10px}
 #ax-drama:not(.ax-drama--detail) .ax-drama-card h3{font-size:12px}
}
@media(max-width:359px){
 .ax-drama-catalog-tools{flex-direction:column;align-items:stretch}
 #ax-drama .ax-drama-catalog-tools .ax-drama-source,#ax-drama .ax-drama-catalog-tools .ax-drama-browse-tools{flex-basis:auto}
 #ax-drama:not(.ax-drama--detail) .ax-drama-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(min-width:601px){#ax-drama .ax-drama-catalog-tools .ax-drama-browse-tools label{flex:0 1 300px}}
@media(max-width:600px){#ax-drama:not(.ax-drama--detail) .ax-drama-history h2{font-size:18px;line-height:1.4}}
@media(max-width:359px){#ax-drama:not(.ax-drama--detail) .ax-drama-heading h1{font-size:24px}#ax-drama:not(.ax-drama--detail) .ax-platform-shortcut--heading{padding:6px 8px;font-size:10px;gap:5px}}


/* Keep inline player chrome in the site theme; the video canvas remains black. */
.ax-drama-player{
 --ax-player-bg:var(--ax-bg-secondary);
 --ax-player-field:var(--ax-bg-card);
 --ax-player-text:var(--ax-text-primary);
 --ax-player-muted:var(--ax-text-secondary);
 --ax-player-border:var(--ax-border-strong);
 --ax-player-accent:var(--ax-accent-text,var(--ax-primary));
 --ax-player-tint:var(--ax-tint);
}
.ax-drama-player:is(.is-immersive,:fullscreen),.ax-drama-stage:fullscreen{
 --ax-player-bg:#101710;--ax-player-field:#172017;--ax-player-text:#f2f8ed;
 --ax-player-muted:#a6b79b;--ax-player-border:#678752;--ax-player-accent:#a3e635;
 --ax-player-tint:rgba(255,255,255,.04);color-scheme:dark;
}
.ax-drama-watch .ax-drama-player{background:var(--ax-player-bg);color:var(--ax-player-text)}
.ax-drama-player .ax-drama-player-top,
.ax-drama-player .ax-drama-controls,
.ax-drama-player .ax-video-toolbar{background:var(--ax-player-bg);color:var(--ax-player-text)}
.ax-drama-player .ax-btn--ghost{
 background:var(--ax-player-tint);color:var(--ax-player-text);border-color:var(--ax-player-border);
}
.ax-drama-player .ax-btn--ghost:hover{background:var(--ax-player-field);border-color:var(--ax-player-accent)}
.ax-drama-player .ax-btn:disabled{opacity:.55;cursor:not-allowed}
html .ax-drama-player .ax-video-toolbar select,
html .ax-drama-player .ax-drama-controls select,
html .ax-drama-player .ax-video-toolbar select option,
html .ax-drama-player .ax-drama-controls select option{
 background:var(--ax-player-field);color:var(--ax-player-text);border-color:var(--ax-player-border);
}
.ax-drama-player .ax-video-icon{color:var(--ax-player-accent)}
.ax-drama-player .ax-video-icon:hover,.ax-drama-player .ax-video-icon:focus-visible{background:var(--ax-player-tint);outline-color:var(--ax-player-accent)}
.ax-drama-player .ax-video-toolbar input[type=range]{accent-color:var(--ax-player-accent)}
.ax-drama-player .ax-drama-scroll-hint,.ax-drama-player .ax-drama-swipe-hint{color:var(--ax-player-muted);opacity:1}
.ax-drama-player .ax-drama-next-status{background:var(--ax-player-field);color:var(--ax-player-text)}
.ax-drama-player .ax-drama-player-error{background:var(--ax-player-field);color:var(--ax-player-text)}
.ax-drama-player .ax-drama-controls :focus-visible{outline-color:var(--ax-player-accent)}

/* Comments belong to the page theme rather than the video canvas. */
#ax-drama .ax-comments{border-color:var(--ax-border)}
#ax-drama .ax-comments textarea{background:var(--ax-bg-card);color:var(--ax-text-primary);border-color:var(--ax-border-strong);font:inherit}
#ax-drama .ax-comments textarea::placeholder{color:var(--ax-text-muted-strong);opacity:1}
#ax-drama .ax-comments__item,#ax-drama .ax-comments__replies{border-color:var(--ax-border)}
#ax-drama .ax-comments__admin{color:var(--ax-accent-text)}

/* Comfortable controls across touch screens and both fullscreen implementations. */
.ax-drama-watch,.ax-drama-watch-sidebar,.ax-drama-detail-head>div{min-width:0}
.ax-drama-watch-sidebar h1,.ax-drama-watch-sidebar p,.ax-drama-next-status{overflow-wrap:anywhere}
.ax-video-icon{min-width:44px;min-height:44px;width:44px;height:44px;flex-basis:44px}
.ax-video-toolbar input.ax-video-seek{min-height:32px;touch-action:pan-y}
.ax-video-toolbar select{min-height:44px}
.ax-video-captions{min-width:0;max-width:100%}
.ax-drama-stage:-webkit-full-screen{height:100dvh;width:100%;background:#000;--ax-player-bg:#101710;--ax-player-field:#172017;--ax-player-text:#f2f8ed;--ax-player-accent:#a3e635;color-scheme:dark}
.ax-drama-stage--controls:-webkit-full-screen>.ax-drama-video{height:100%;max-height:100%;min-height:0}
@media(max-width:600px){
 .ax-video-toolbar-row{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px}
 .ax-video-play{grid-column:1;grid-row:1}
 .ax-video-time{grid-column:2/5;grid-row:1;font-size:11px;margin:0;min-width:0}
 .ax-video-mute{grid-column:5;grid-row:1;justify-self:center}
 .ax-video-fullscreen{grid-column:6;grid-row:1;justify-self:end}
 .ax-video-quality{grid-column:1/3;grid-row:2}
 .ax-video-speed{grid-column:3;grid-row:2}
 .ax-video-captions{grid-column:4/7;grid-row:2;display:flex;flex-wrap:wrap;gap:2px 4px;font-size:11px}
 .ax-video-captions select{flex:1 1 60px;min-width:0}
 .ax-video-toolbar select,.ax-video-quality select{width:100%;max-width:100%;box-sizing:border-box;min-height:44px}
 .ax-video-toolbar .ax-video-icon{width:44px;height:44px;padding:9px}
 .ax-drama-navigation-preferences label{min-height:44px!important;white-space:normal!important}
}
@media(max-height:500px) and (orientation:landscape){
 .ax-drama-stage--controls:fullscreen .ax-video-toolbar,.ax-drama-stage--controls:-webkit-full-screen .ax-video-toolbar{padding-block:2px;padding-bottom:max(2px,env(safe-area-inset-bottom))}
}

/* Size inline video from its content rather than reserving a tall black canvas. */
.ax-drama-stage--controls>.ax-drama-video{height:auto;min-height:0;max-height:min(65svh,660px);aspect-ratio:16/9}
.ax-drama-stage.ax-is-immersive{position:fixed!important;inset:0!important;width:100%!important;height:100vh!important;height:100dvh!important;max-height:none!important;min-height:0!important;margin:0!important;z-index:2147483100;box-sizing:border-box;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);background:#000;overscroll-behavior:none;touch-action:none;color-scheme:dark}
.ax-drama-stage.ax-is-immersive>.ax-drama-video{width:100%;height:100%!important;max-height:100%!important;min-height:0!important;object-fit:contain;touch-action:none}
.ax-drama-stage.ax-is-immersive>.ax-video-toolbar{position:relative;z-index:2;background:#101710;color:#f2f8ed}
.ax-drama-stage.ax-is-immersive [hidden]{display:none!important}
.ax-drama-stage.ax-is-immersive select{font:inherit;color:var(--ax-player-text);background:var(--ax-player-field);border:1px solid var(--ax-player-border);border-radius:8px;min-height:38px;padding:6px}
.ax-drama-stage.ax-is-immersive{--ax-player-bg:#101710;--ax-player-field:#172017;--ax-player-text:#f2f8ed;--ax-player-muted:#a6b79b;--ax-player-border:#678752;--ax-player-accent:#a3e635;--ax-player-tint:rgba(255,255,255,.04)}
.ax-drama-stage:is(.ax-is-immersive,:fullscreen)>.ax-drama-video{touch-action:none}
