/* Compact course detail on mobile only. Keep the full title, actions and original playback. */
@media(max-width:850px){
 body .at-shell .at-content:has(.ala-learning)>h1{display:none!important}
 body .at-shell .at-content:has(.ala-learning){padding:4px!important;border-radius:10px!important}
 body .at-shell .at-main:has(.ala-learning){padding:5px!important}
 body .at-shell .at-main:has(.ala-learning)>.at-top{margin-bottom:4px!important}
 body .ala.ala-page-courses:has(.ala-learning)>main,
 body .ala.ala-page-student_dashboard:has(.ala-learning)>main{padding:3px!important;min-width:0}
 body .ala .ala-detailpage.ala-learning{gap:6px!important;min-width:0;margin:0!important}
 body .ala .ala-learning .ala-learning-top{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 6px;align-items:center;padding:8px!important;margin:0!important;border-radius:10px!important;box-shadow:none}
 body .ala .ala-learning-top>.ala-detailcrumb{grid-column:1/-1;font-size:11px!important;line-height:1.3;margin:0!important;padding:1px 0!important;min-height:0!important}
 body .ala .ala-learning-top>.ala-learning-tags{grid-column:1/-1;gap:3px!important;margin:0!important;align-items:center}
 body .ala .ala-learning-top .ala-learning-tags span{font-size:10px!important;line-height:1.2;padding:3px 5px!important;white-space:nowrap;margin:0!important}
 body .ala .ala-learning-top>h2{grid-column:1/-1;font-size:clamp(15px,4.2vw,19px)!important;line-height:1.22!important;margin:1px 0 2px!important;padding:0!important;overflow-wrap:anywhere}
 body .ala .ala-learning-top>.ala-learning-by{display:grid;grid-template-columns:32px minmax(0,1fr);gap:2px 6px!important;align-items:center;margin:0!important;padding:0!important;min-width:0}
 body .ala .ala-learning-top .ala-learning-by>img{width:32px!important;height:32px!important;max-width:32px!important;max-height:32px!important;border-radius:7px;margin:0!important}
 body .ala .ala-learning-top .ala-learning-by>div{min-width:0;gap:1px!important}
 body .ala .ala-learning-top .ala-learning-by small{font-size:8px!important;line-height:1.2;letter-spacing:.02em}
 body .ala .ala-learning-top .ala-learning-by strong{font-size:12px!important;line-height:1.25;overflow-wrap:anywhere}
 body .ala .ala-learning-top .ala-learning-by>.ala-learning-more{grid-column:2;max-width:100%;margin:0!important;font-size:10px!important;line-height:1.25}
 body .ala .ala-learning-top .ala-learning-by>.ala-learning-more summary{padding:2px 0!important;margin:0!important;font-size:10px!important;line-height:1.3}
 body .ala .ala-learning-top:has(.ala-learning-by details[open])>.ala-learning-by{grid-column:1/-1}
 body .ala .ala-learning-top:has(.ala-learning-by details[open])>.ala-learning-enrollment{grid-column:1/-1;justify-self:end}
 body .ala .ala-learning-top>.ala-learning-enrollment{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:3px!important;margin:0!important;padding:0!important;max-width:140px;min-width:0}
 body .ala .ala-learning-top .ala-learning-enrollment .ala-join-form{width:auto!important;margin:0!important;padding:0!important}
 body .ala .ala-learning-top .ala-learning-enrollment .ala-btn{display:inline-flex!important;align-items:center;justify-content:center;font-size:11px!important;line-height:1.25!important;min-height:36px!important;min-width:0!important;height:auto!important;width:auto!important;max-width:100%;margin:0!important;padding:6px 8px!important;border-radius:7px!important;box-shadow:none!important;white-space:normal;text-align:center;box-sizing:border-box}
 body .ala .ala-learning-top .ala-enrolled-label{font-size:10px!important;padding:2px 4px!important}
 body .ala .ala-learning .ala-learning-grid{gap:6px!important}
 body .ala .ala-learning-grid .ala-learning-head{min-height:28px!important;padding:5px 8px!important;font-size:12px!important;line-height:1.25!important}
 body .ala .ala-learning-grid .ala-learning-head span{font-size:11px!important;line-height:1.25!important}
 /* Normal player only: do not affect native fullscreen, theater or rotation. */
 body .ala .ala-player-brand-shell:not(:fullscreen):not(:-webkit-full-screen):not(.ala-player-brand-expanded) .ala-player-brand-bar{min-height:34px!important;padding:2px 5px!important;gap:4px!important}
 body .ala .ala-player-brand-shell:not(:fullscreen):not(:-webkit-full-screen):not(.ala-player-brand-expanded) .ala-player-brand-actions{gap:4px!important}
 body .ala .ala-player-brand-shell:not(:fullscreen):not(:-webkit-full-screen):not(.ala-player-brand-expanded) .ala-player-brand-fullscreen{height:32px!important;min-height:32px!important;padding:3px 6px!important;font-size:10px!important;margin:0!important}
 body .ala .ala-player-brand-shell:not(:fullscreen):not(:-webkit-full-screen):not(.ala-player-brand-expanded) .ala-player-brand-rotate{height:32px!important;width:34px!important;min-height:32px!important;margin:0!important}
 body .ala .ala-player-brand-shell:not(:fullscreen):not(:-webkit-full-screen):not(.ala-player-brand-expanded) .ala-player-brand-logo{width:49px!important;height:25px!important;max-width:49px!important;max-height:25px!important}
 body .ala .ala-player-brand-shell:not(:fullscreen):not(:-webkit-full-screen):not(.ala-player-brand-expanded) .ala-player-brand-identity{font-size:10px!important;gap:4px!important}
}
@media(max-width:350px){
 body .ala .ala-learning-top>.ala-learning-enrollment{max-width:110px}
 body .ala .ala-learning-top .ala-learning-enrollment .ala-btn{font-size:10px!important;padding:5px 6px!important}
 body .ala .ala-learning-top .ala-learning-tags span{font-size:9px!important;padding:3px 4px!important}
}


/* v0.6.64 — compact discussion and related courses on mobile */
@media(max-width:850px){
 body .ala .ala-learning-comments{padding:10px!important}
 body .ala .ala-learning-comments h3{font-size:15px!important;line-height:1.25!important;margin:0 0 4px!important}
 body .ala .ala-learning-comments>p{font-size:12px!important;line-height:1.45!important;margin:0 0 6px!important}
 body .ala .ala-learning-comment-form{gap:5px!important;margin:6px 0 8px!important;max-width:none!important}
 body .ala .ala-learning-comment-form label{font-size:12px!important;line-height:1.25!important;margin:0!important}
 body .ala .ala-learning-comment-form textarea{min-height:84px!important;padding:9px 10px!important;border-radius:10px!important;line-height:1.45!important}
 body .ala .ala-comment-actions{gap:8px!important;align-items:center!important}
 body .ala .ala-comment-actions .ala-btn,
 body .ala .ala-learning-comment-form button{min-height:40px!important;padding:8px 16px!important;border-radius:10px!important;font-size:12px!important;line-height:1.2!important}
 body .ala .ala-comment-actions small{font-size:11px!important;line-height:1.35!important}
 body .ala .ala-comment-list .ala-learning-empty{font-size:12px!important;line-height:1.4!important;margin:4px 0 0!important}
 body .ala .ala-learning-card:has(.ala-learning-related){padding:10px!important}
 body .ala .ala-learning-card:has(.ala-learning-related)>h3{font-size:15px!important;line-height:1.25!important;margin:0 0 8px!important}
 body .ala .ala-learning-related{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
 body .ala .ala-learning-related>a{padding:6px!important;gap:5px!important;border-radius:12px!important}
 body .ala .ala-learning-related img{border-radius:8px!important}
 body .ala .ala-learning-related strong{font-size:12px!important;line-height:1.3!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important;min-height:calc(1.3em * 2)}
 body .ala .ala-learning-related small{font-size:11px!important;line-height:1.25!important}
}
@media(max-width:420px){
 body .ala .ala-learning-comments{padding:9px!important}
 body .ala .ala-learning-comment-form textarea{min-height:76px!important}
 body .ala .ala-comment-actions{align-items:flex-start!important}
}
