/* Home learning previews and the channel carousel. Shared header/app styles remain untouched. */
.home-channel-section{padding-block:68px 50px}
.home-channel-section .section-top{margin-bottom:25px;gap:24px}
.home-channel-section h2{font-size:clamp(29px,3.1vw,43px);line-height:1.5}
.home-channel-section .section-top>p{font-size:13px;line-height:1.9;color:#a8bad5;max-width:460px}
.home-channel-shell{position:relative;min-width:0}
.home-channel-track{display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 40px)/3);gap:20px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-width:thin;scrollbar-color:#496384 transparent;padding:6px 3px 19px;direction:rtl}
.home-channel-track:focus-visible{outline:2px solid #a8d6ff;outline-offset:6px;border-radius:24px}
.home-channel-card{min-width:0;overflow:hidden;scroll-snap-align:start;border:1px solid #d1e5ff24;border-radius:25px;background:linear-gradient(140deg,#20324bba,#142038a6);box-shadow:inset 0 1px 1px #ffffff0c,0 10px 28px #0002}
.home-channel-preview{position:relative;display:grid;place-items:center;width:100%;aspect-ratio:16/9;padding:0;border:0;border-bottom:1px solid #d0e5ff20;background:#0a192c;color:#fff;overflow:hidden;cursor:pointer}
.home-channel-preview img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.home-channel-preview::after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,#0000 30%,#0311234d);pointer-events:none}
.home-channel-play{position:relative;z-index:1;display:grid;place-items:center;width:52px;height:52px;border:1px solid #e6f1ff99;border-radius:50%;background:#102a50b8;box-shadow:0 7px 25px #0005;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);transition:transform .2s,background .2s}
.home-channel-play svg{width:23px;height:23px;margin-inline-start:3px}
.home-channel-preview:hover .home-channel-play{transform:scale(1.07);background:#174276dd}
.home-channel-preview:focus-visible{outline:3px solid #bbdfff;outline-offset:-6px}
.home-channel-copy{padding:18px 20px 21px}
.home-channel-title{margin:0;color:#e5eefc;font-size:17px;line-height:1.8;font-weight:500;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;min-height:3.6em}
.home-channel-date{display:block;margin-top:9px;color:#96afce;font-size:10px;line-height:1.7}
.home-channel-controls{display:flex;justify-content:flex-end;gap:8px;margin-block:13px 0}
.home-channel-controls[hidden],.home-channel-track[hidden],.home-channel-empty[hidden]{display:none!important}
.home-channel-controls button{display:grid;place-items:center;width:42px;height:42px;border:1px solid #d1e4ff30;border-radius:50%;background:#b7d5ff0b;color:#c3dcfa;cursor:pointer}
.home-channel-controls button svg{width:19px;height:19px}
.home-channel-controls button:hover{background:#b7d5ff1b}
.home-channel-controls button:disabled{opacity:.35;cursor:default}
.home-channel-controls button:focus-visible{outline:2px solid #add9ff;outline-offset:3px}
.home-channel-empty{padding:31px 24px;border:1px solid #c9dfff21;border-radius:25px;background:#bfd8ff05;text-align:center;color:#9eb2d0;font-size:13px;line-height:1.9}
.home-fixed-courses{display:grid;gap:12px}
.home-course-row{display:grid;grid-template-columns:32px minmax(0,1fr) 112px;align-items:center;gap:25px;min-width:0;padding:18px 24px;border:1px solid #c9dfff25;border-radius:26px;background:linear-gradient(140deg,#20314a99,#17243b66);box-shadow:inset 0 1px 1px #fff1;transition:background .2s,border-color .2s}
.home-course-row:hover{background:linear-gradient(140deg,#294262a6,#1d304b8c);border-color:#c9dfff45}
.home-course-row:focus-visible{outline:2px solid #b4ddff;outline-offset:4px}
.home-course-number{align-self:start;margin-top:7px;color:#8fa8ca;font:500 11px/1.8 var(--latin)}
.home-course-copy{min-width:0}
.home-course-copy>small{display:block;color:#9bb1d2;font-size:10px;line-height:1.8;margin-bottom:4px}
.home-course-copy>strong{display:block;color:#e4edfc;font-size:clamp(19px,2.2vw,28px);line-height:1.75;font-weight:500}
.home-course-action{display:flex;align-items:center;gap:8px;color:#99c8ff;font-size:11px;line-height:1.8;margin-top:9px}
.home-course-action svg{width:15px;height:15px;flex:none}
.home-course-image-frame{display:block;width:112px;aspect-ratio:1231/1277;overflow:hidden;border:1px solid #cde1ff2b;border-radius:17px;background:#08172a}
.home-course-image-frame img{display:block;width:100%;height:100%;object-fit:contain}
.home-course-more{display:flex;justify-content:center;margin-top:24px}
.home-course-more .btn{min-height:46px;font-size:12px;gap:13px}
.home-course-more svg{width:17px;height:17px;flex:none}
@media(max-width:1000px){.home-channel-track{grid-auto-columns:calc((100% - 20px)/2)}.home-course-row{gap:18px;padding:18px 20px}.home-course-copy>strong{font-size:23px}}
@media(max-width:700px){.home-channel-section{padding-block:43px 28px}.home-channel-section .section-top{margin-bottom:21px}.home-channel-section h2{font-size:29px}.home-channel-section .section-top>p{font-size:12px;margin-top:10px}.home-channel-track{grid-auto-columns:84%;gap:13px;padding-inline:1px}.home-channel-card{border-radius:22px}.home-channel-copy{padding:15px 17px 18px}.home-channel-title{font-size:16px}.home-channel-controls{margin-top:9px}.home-course-row{grid-template-columns:20px minmax(0,1fr) 82px;gap:11px;padding:16px 13px;border-radius:22px}.home-course-number{font-size:10px}.home-course-copy>small{font-size:9px}.home-course-copy>strong{font-size:18px;line-height:1.8}.home-course-action{font-size:9px;gap:6px;margin-top:6px}.home-course-image-frame{width:82px;border-radius:12px}.home-course-more .btn{font-size:11px}}
@media(max-width:360px){.home-course-row{grid-template-columns:18px minmax(0,1fr) 72px;gap:9px}.home-course-image-frame{width:72px}.home-course-copy>strong{font-size:16px}.home-course-action{font-size:8px}}
@media(prefers-reduced-motion:reduce){.home-course-row,.home-channel-play{transition:none}.home-channel-preview:hover .home-channel-play{transform:none}}

/* Live playlist: YouTube supplies its current entries in the owner's playlist order. */
.home-playlist-shell{width:100%;max-width:1000px;margin-inline:auto;min-width:0}
.home-playlist-frame{position:relative;aspect-ratio:16/9;min-height:220px;overflow:hidden;border:1px solid #d1e5ff30;border-radius:25px;background:#091323;box-shadow:inset 0 1px 1px #ffffff0c,0 10px 28px #0002}
.home-playlist-frame iframe{display:block;width:100%;height:100%;position:absolute;inset:0;border:0}
.home-playlist-link{display:flex;width:fit-content;align-items:center;gap:9px;margin-block-start:18px;line-height:1.9}
.home-playlist-link:focus-visible{outline:2px solid #add9ff;outline-offset:5px;border-radius:4px}
.home-section-anchor{display:block;height:0;scroll-margin-top:120px}
@media(max-width:700px){.home-playlist-frame{border-radius:20px}.home-playlist-link{font-size:12px;margin-block-start:14px}}

/* Current playlist video scroller; the first visible player remains the fallback. */
.home-playlist-track{grid-auto-columns:100%;padding-block:6px 16px}
.home-playlist-track.home-playlist-ready{grid-auto-columns:calc((100% - 40px)/3)}
.home-playlist-card{min-width:200px;align-self:start}
.home-playlist-card-frame{position:relative;width:100%;aspect-ratio:16/9;min-height:200px;overflow:hidden;background:#091323}
.home-playlist-card-frame iframe{display:block;position:absolute;inset:0;width:100%;height:100%;min-height:200px;border:0}
.home-playlist-track:not(.home-playlist-ready) .home-playlist-card{width:100%;max-width:1000px;margin-inline:auto}
.home-playlist-scroller .home-channel-controls{position:relative;margin-block:10px 0}
.home-playlist-scroller>.home-playlist-link{margin-block-start:14px}
@media(max-width:1000px){.home-playlist-track.home-playlist-ready{grid-auto-columns:calc((100% - 20px)/2)}}
@media(max-width:700px){.home-playlist-track.home-playlist-ready{grid-auto-columns:88%}.home-playlist-track{gap:13px;padding-inline:1px}.home-playlist-card{border-radius:20px}.home-playlist-card-frame{min-height:200px}}

/* Owner biography and free indicator rows, using the established glass/course style. */
.hero-profile .hero-profile-copy{max-width:1000px;text-align:start}
.hero-profile .hero-profile-copy h1{font-size:clamp(35px,4.8vw,64px);line-height:1.5;margin:0 0 15px;letter-spacing:-.035em}
.profile-role{margin:0 0 22px;color:var(--muted,#a8b5cd);font-size:21px;line-height:1.8}
.profile-bio{display:grid;gap:15px;color:var(--muted,#a8b5cd);font-size:16px;line-height:2}
.profile-bio p{margin:0}
.profile-vip-actions{display:flex;align-items:center;flex-wrap:wrap;gap:15px;margin-block:25px 0}
.profile-vip-actions>span{font-size:12px;line-height:1.8;color:var(--muted,#a8b5cd)}
.hero-profile-copy .about-social-grid{max-width:none;margin-block-start:24px}
.home-indicator-row .home-course-copy>strong{font-size:clamp(18px,2.05vw,27px);overflow-wrap:anywhere;text-align:start}
.home-indicator-image{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:10px;background:linear-gradient(145deg,#1e3351,#0c182a)}
.home-indicator-image img{height:auto;max-height:60%;object-fit:contain}
.home-indicator-image bdi{font:500 10px/1.6 var(--latin,sans-serif);color:#bad6fa;text-align:center}
@media(max-width:700px){.hero-profile .hero-profile-copy{max-width:540px}.hero-profile .hero-profile-copy h1{font-size:clamp(31px,7.4vw,43px)}.profile-role{font-size:17px;margin-bottom:17px}.profile-bio{font-size:14px;line-height:2;gap:13px}.profile-vip-actions{gap:12px;margin-top:21px}.profile-vip-actions>span{font-size:11px}.hero-profile-copy .about-social-grid{margin-top:20px}.home-indicator-row .home-course-copy>strong{font-size:17px;line-height:1.75}.home-indicator-image{padding:7px;gap:7px}.home-indicator-image bdi{font-size:9px}}
