
/* v3.3: single branding + native MasterStudy scroll regions; no plugin changes */
body.if-player-v33{--if-navy:#092a49;--if-peach:#ffebe0;--if-blue:#e3f2ff;--if-mint:#e4f6ed;--if-pink:#fce8f0}
body.if-player-v33 .masterstudy-course-player-header{background:#fffaf6!important;border-bottom:2px solid #ff813a!important;display:flex!important;align-items:center!important;min-height:70px!important}
body.if-player-v33 .if-v33-brand{display:flex;flex:0 0 auto;align-items:center;justify-content:center;max-width:140px;margin:0 16px;text-decoration:none!important;color:var(--if-navy);font-weight:700}
body.if-player-v33 .if-v33-brand img{width:auto;height:auto;max-width:135px;max-height:49px;object-fit:contain}
body.if-player-v33 .masterstudy-course-player-header__course{min-width:0;flex:1}
body.if-player-v33 .if-v33-scroll-left,body.if-player-v33 .if-v33-scroll-right{scrollbar-width:auto!important;scrollbar-color:#7199b2 #e9f2f8!important;overscroll-behavior-y:contain}
body.if-player-v33 .if-v33-scroll-left::-webkit-scrollbar,body.if-player-v33 .if-v33-scroll-right::-webkit-scrollbar{width:14px!important}
body.if-player-v33 .if-v33-scroll-left::-webkit-scrollbar-track,body.if-player-v33 .if-v33-scroll-right::-webkit-scrollbar-track{background:#e9f2f8!important}
body.if-player-v33 .if-v33-scroll-left::-webkit-scrollbar-thumb,body.if-player-v33 .if-v33-scroll-right::-webkit-scrollbar-thumb{background:#7199b2!important;border:3px solid #e9f2f8!important;border-radius:12px!important}
body.if-player-v33 .if-v33-curriculum{background:#fffaf6!important}
body.if-player-v33 .if-v33-section{background:#e3f2ff!important;border-radius:13px!important;margin:6px 9px!important;overflow:hidden}
body.if-player-v33 .if-v33-section:nth-of-type(3n+1){background:#ffebe0!important}
body.if-player-v33 .if-v33-section:nth-of-type(3n+2){background:#e4f6ed!important}
body.if-player-v33 .if-v33-lesson{border-radius:12px!important;margin:3px 8px!important;background:#fff!important}
body.if-player-v33 .if-v33-lesson:nth-of-type(3n+1){background:#fce8f0!important}
body.if-player-v33 .if-v33-lesson:nth-of-type(3n+2){background:#e3f2ff!important}
body.if-player-v33 .if-v33-lesson:nth-of-type(3n){background:#e4f6ed!important}
/* Additional structural fallbacks for MasterStudy native curriculum rows */
body.if-player-v33 [class*="masterstudy-course-player-curriculum"] [class*="section"][class*="header"]{background:#e3f2ff!important;border-radius:12px!important}
body.if-player-v33 [class*="masterstudy-course-player-curriculum"] [class*="lesson"][class*="item"]{border-radius:12px!important}
body.if-player-v33 [class*="masterstudy-course-player-curriculum"] [class*="lesson"][class*="item"]:nth-child(3n+1){background:#fff0e8!important}
body.if-player-v33 [class*="masterstudy-course-player-curriculum"] [class*="lesson"][class*="item"]:nth-child(3n+2){background:#e6f4ff!important}
body.if-player-v33 [class*="masterstudy-course-player-curriculum"] [class*="lesson"][class*="item"]:nth-child(3n){background:#e8f7ed!important}
@media(max-width:850px){body.if-player-v33 .if-v33-brand{max-width:80px;margin:0 6px}body.if-player-v33 .if-v33-brand img{max-width:80px;max-height:35px}}

/* v3.4 readability: prevent pale pill backgrounds behind white text in dark section headers.
   Keep section header dark, lesson cards pastel, native scrollbars unchanged. */
body.if-player-v33 .if-v33-section,
body.if-player-v33 .if-v33-section:nth-of-type(n),
body.if-player-v33 [class*="masterstudy-course-player-curriculum"] [class*="section"][class*="header"] {
 background:#465c72!important;
 color:#fff!important;
 border-radius:0!important;
 margin:0!important;
}
body.if-player-v33 .if-v33-section :is(span,a,strong,b,p,div),
body.if-player-v33 [class*="masterstudy-course-player-curriculum"] [class*="section"][class*="header"] :is(span,a,strong,b,p) {
 background-color:transparent!important;
 background-image:none!important;
 color:#fff!important;
 -webkit-text-fill-color:#fff!important;
 text-shadow:none!important;
}
body.if-player-v33 .if-v33-section :is(span,a,strong,b,p),
body.if-player-v33 [class*="masterstudy-course-player-curriculum"] [class*="section"][class*="header"] :is(span,a,strong,b,p){opacity:1!important}
/* Preserve clear navy text on the pale lesson cards. */
body.if-player-v33 .if-v33-lesson,
body.if-player-v33 .if-v33-lesson :is(a,span,strong,p){color:#092a49!important;-webkit-text-fill-color:#092a49!important}
