@import url("https://fonts.googleapis.com/css2?family=Alexandria:wght@400;500;600;700;800&display=swap");

:root {
    --color-primary: #8b6f47;
    --color-primary-dark: #6f5736;
    --color-text: #262626;
    --color-muted: #6d6d6d;
    --color-border: #e7e2da;
    --color-surface: #ffffff;
    --color-page: #f8f7f4;
    --color-olive: #7f9055;
    --color-footer: #3f4e63;
    --container: 1240px;
    --radius-lg: 22px;
}

/* =========================================================
   Reset / global
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body,
button,
input,
select,
textarea,
option {
    font-family: "Alexandria", Tahoma, Arial, sans-serif;
}

body {
    margin: 0;
    background: var(--color-page);
    color: var(--color-text);
    line-height: 1.8;
}

button,
input,
select,
textarea {
    font: inherit;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-container {
    width: min(calc(100% - 40px), var(--container));
    margin-inline: auto;
}

/* =========================================================
   Header
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--color-border);
    backdrop-filter: blur(12px);
}

.site-header__inner {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 38px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.site-logo img {
    width: 195px;
    height: auto;
    object-fit: contain;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.site-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    padding: 12px 14px;
    border-radius: 12px;
    color: #3d3d3d;
    font-size: 15px;
    font-weight: 700;
    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.site-nav__link svg {
    width: 21px;
    height: 21px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.site-nav__link:hover {
    color: var(--color-primary-dark);
    background: #f7f7f2;
}

.site-nav__link.is-active {
    color: #647540;
    background: #f5f6ef;
}

.mobile-menu-button {
    display: none;
    width: 46px;
    height: 46px;
    margin-inline-start: auto;
    border: 0;
    border-radius: 12px;
    background: #f2efe9;
    color: #2d2d2d;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.mobile-menu-button svg {
    width: 24px;
    height: 24px;
}

/* =========================================================
   Mobile drawer
   ========================================================= */

.mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1090;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: 0.25s ease;
}

.mobile-nav-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1100;
    width: min(86vw, 340px);
    height: 100dvh;
    padding: 0;
    background: #fff;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    box-shadow: -15px 0 45px rgba(0, 0, 0, 0.15);
}

.mobile-nav.is-open {
    transform: translateX(0);
}

.mobile-nav__top {
    min-height: 128px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 18px 18px 16px;
    border-bottom: 1px solid var(--color-border);
    position: relative;
}

.mobile-nav__logo {
    display: block;
    width: 205px;
    max-width: calc(100% - 30px);
    height: auto;
    flex: 0 0 auto;
    object-fit: contain;
    object-position: center;
}

.mobile-nav__close {
    display: none;
}

.mobile-nav__links {
    display: grid;
    gap: 4px;
    margin: 0;
    padding: 14px 18px;
}

.mobile-nav__links a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 10px 14px;
    border: 0;
    border-radius: 10px;
    color: #39465a;
    font-weight: 700;
}

.mobile-nav__links a + a {
    margin-top: 4px;
}

.mobile-nav__links a svg {
    width: 21px;
    height: 21px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mobile-nav__links a:hover,
.mobile-nav__links a.is-active {
    color: #657640;
    background: #f5f6ef;
}

/* =========================================================
   Home hero
   ========================================================= */

.home-hero {
    width: 100%;
    max-width: 100%;
    padding: 0;
}

.hero-card {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 430px;
    min-height: 430px;
    overflow: hidden;
    border-radius: 0;
    background: #222;
    box-shadow: none;
}

.hero-card picture {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.hero-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            0deg,
            rgba(17, 27, 39, 0.55) 0%,
            rgba(17, 27, 39, 0.18) 42%,
            rgba(17, 27, 39, 0.04) 75%
        );
    pointer-events: none;
}

/* =========================================================
   Hero search
   ========================================================= */

.hero-search {
    position: absolute;
    z-index: 3;
    right: 50%;
    bottom: 26px;
    transform: translateX(50%);
    width: min(850px, calc(100% - 48px));
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr) 190px;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 26px;
    background: rgba(74, 86, 101, 0.68);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.hero-search__button,
.hero-search__field,
.hero-search__filter {
    min-height: 58px;
}

.hero-search__button {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 16px;
    background: #7c8e52;
    color: #fff;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.hero-search__button:hover {
    background: #6e7f48;
    transform: translateY(-1px);
}

.hero-search__button svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.hero-search__field {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.10);
}

.hero-search__field svg {
    flex: 0 0 auto;
    width: 21px;
    height: 21px;
    fill: none;
    stroke: rgba(255, 255, 255, 0.62);
    stroke-width: 1.8;
    stroke-linecap: round;
}

.hero-search__field input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    font-size: 17px;
}

.hero-search__field input::placeholder {
    color: rgba(255, 255, 255, 0.70);
}

.hero-search__field input::-webkit-search-cancel-button {
    filter: invert(1);
}

.hero-search__filter {
    position: relative;
}

.hero-search__filter select {
    width: 100%;
    height: 100%;
    padding: 0 18px 0 42px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    outline: 0;
    appearance: none;
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.hero-search__filter select option {
    color: #222;
    background: #fff;
}

.hero-search__filter::after {
    content: "";
    position: absolute;
    left: 18px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-right: 2px solid rgba(255, 255, 255, 0.82);
    border-bottom: 2px solid rgba(255, 255, 255, 0.82);
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
}

/* =========================================================
   Home content
   ========================================================= */

.home-content {
    padding: 66px 0 82px;
    background: #ffffff;
}

.home-content__section + .home-content__section {
    margin-top: 70px;
}

.home-section__heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 26px;
}

.home-section__eyebrow {
    display: inline-block;
    margin-bottom: 7px;
    color: #788751;
    font-size: 12px;
    font-weight: 800;
}

.home-section__heading h2 {
    margin: 0;
    color: #354257;
    font-size: clamp(24px, 3vw, 31px);
    line-height: 1.4;
}

.home-section__heading p {
    max-width: 620px;
    margin: 7px 0 0;
    color: #828891;
    font-size: 13px;
    line-height: 1.9;
}

.home-section__more {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 10px 16px;
    color: #697849;
    background: #f5f6ef;
    border: 1px solid #e3e6d9;
    border-radius: 11px;
    font-size: 12px;
    font-weight: 800;
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        transform 0.2s ease;
}

.home-section__more:hover {
    color: #ffffff;
    background: #71804d;
    border-color: #71804d;
    transform: translateY(-1px);
}

.home-section__more i {
    font-size: 10px;
}


/* Recent lessons */

.home-lessons-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px 18px;
}

.home-lesson-card {
    display: block;
    min-width: 0;
    color: inherit;
}

.home-lesson-card__media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #e8eae4;
    border-radius: 15px;
}

.home-lesson-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition:
        transform 0.3s ease,
        filter 0.3s ease;
}

.home-lesson-card:hover .home-lesson-card__media img {
    transform: scale(1.025);
    filter: brightness(0.88);
}

.home-lesson-card__duration {
    position: absolute;
    right: 8px;
    bottom: 8px;
    z-index: 2;
    min-width: 42px;
    min-height: 22px;
    padding: 3px 6px;
    color: #ffffff;
    background: rgba(27, 32, 39, 0.92);
    border-radius: 5px;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
}

.home-lesson-card__play {
    position: absolute;
    top: 50%;
    right: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    color: #ffffff;
    background: rgba(33, 38, 44, 0.76);
    border-radius: 50%;
    opacity: 0;
    transform: translate(50%, -42%);
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
    backdrop-filter: blur(5px);
}

.home-lesson-card:hover .home-lesson-card__play {
    opacity: 1;
    transform: translate(50%, -50%);
}

.home-lesson-card__play i {
    margin-right: -2px;
    font-size: 15px;
}

.home-lesson-card__body {
    padding: 13px 3px 0;
}

.home-lesson-card h3 {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #354257;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.75;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.home-lesson-card__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    min-height: 20px;
    margin-top: 7px;
    color: #8a9098;
    font-size: 11px;
}

.home-lesson-card__meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.home-lesson-card__meta i {
    color: #89965f;
}

.home-lesson-card__open {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 9px;
    color: #71804d;
    font-size: 12px;
    font-weight: 700;
}

.home-lesson-card__open i {
    font-size: 10px;
    transition: transform 0.2s ease;
}

.home-lesson-card:hover .home-lesson-card__open i {
    transform: translateX(-3px);
}

.home-series-grid {
    margin-top: 0;
}


@media (max-width: 1100px) {
    .home-lessons-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 26px 18px;
    }
}


@media (max-width: 700px) {
    .home-content {
        padding: 44px 0 58px;
    }

    .home-content__section + .home-content__section {
        margin-top: 52px;
    }

    .home-section__heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
        margin-bottom: 20px;
    }

    .home-section__more {
        min-height: 40px;
        padding: 8px 14px;
    }

    .home-lesson-card h3 {
        font-size: 14px;
    }
}



/* =========================================================
   Home horizontal mobile browsing
   ========================================================= */

.home-scroll-more {
    display: none;
}


@media (max-width: 700px) {

    /*
     * Mobile layout:
     *
     * two visible columns
     * two cards vertically in every column
     * horizontal scrolling between columns.
     */

    .home-lessons-grid,
    .home-series-grid {
        display: grid;
        grid-template-columns: none;
        grid-template-rows:
            repeat(2, minmax(0, auto));
        grid-auto-flow: column;
        grid-auto-columns:
            calc((100% - 12px) / 2);
        gap: 18px 12px;

        width: 100%;
        max-width: 100%;

        padding-bottom: 12px;

        overflow-x: auto;
        overflow-y: hidden;

        overscroll-behavior-inline: contain;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 0;

        -webkit-overflow-scrolling: touch;
    }

    .home-lessons-grid > *,
    .home-series-grid > * {
        min-width: 0;
        scroll-snap-align: start;
    }


    /*
     * The desktop action remains in the heading.
     * On mobile the action is shown at the END
     * of the horizontal scroller instead.
     */

    .home-section__heading
    .home-section__more {
        display: none;
    }


    /*
     * Lesson cards
     */

    .home-lesson-card__media {
        border-radius: 11px;
    }

    .home-lesson-card__body {
        padding: 9px 1px 0;
    }

    .home-lesson-card h3 {
        font-size: 12px;
        line-height: 1.65;
    }

    .home-lesson-card__meta {
        margin-top: 4px;
        font-size: 10px;
    }

    .home-lesson-card__open {
        margin-top: 6px;
        font-size: 10px;
    }

    .home-lesson-card__duration {
        right: 5px;
        bottom: 5px;
        min-width: 36px;
        min-height: 19px;
        padding: 2px 5px;
        font-size: 9px;
        line-height: 15px;
    }

    .home-lesson-card__play {
        display: none;
    }


    /*
     * Series cards need slightly tighter typography
     * because two columns are visible at once.
     */

    .home-series-grid .series-card__media {
        border-radius: 11px;
    }

    .home-series-grid .series-card__body {
        padding: 9px 1px 0;
    }

    .home-series-grid .series-card h2 {
        font-size: 12px;
        line-height: 1.65;
    }

    .home-series-grid .series-card__meta {
        gap: 4px;
        margin-top: 4px;
        font-size: 9px;
    }

    .home-series-grid .series-card__open {
        margin-top: 6px;
        font-size: 10px;
    }

    .home-series-grid .series-card__count {
        right: 5px;
        bottom: 5px;
        gap: 4px;
        padding: 4px 6px;
        font-size: 9px;
    }

    .home-series-grid .series-card__play {
        display: none;
    }


    /*
     * Final horizontal item.
     * It occupies both vertical rows so it clearly
     * marks the end of the content rail.
     */

    .home-scroll-more {
        grid-row: 1 / span 2;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        min-height: 100%;
        padding: 22px 10px;

        color: #657541;
        background: #f5f6ef;
        border: 1px solid #e0e4d5;
        border-radius: 14px;

        text-align: center;

        scroll-snap-align: end;
    }

    .home-scroll-more__icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;

        width: 42px;
        height: 42px;
        margin-bottom: 10px;

        color: #ffffff;
        background: #71804d;
        border-radius: 50%;
    }

    .home-scroll-more__icon i {
        font-size: 14px;
    }

    .home-scroll-more strong {
        color: #4c5934;
        font-size: 13px;
        font-weight: 800;
    }

    .home-scroll-more small {
        margin-top: 4px;
        color: #8b927c;
        font-size: 9px;
        line-height: 1.6;
    }


    /*
     * Subtle native scrollbar.
     */

    .home-lessons-grid,
    .home-series-grid {
        scrollbar-width: thin;
        scrollbar-color:
            rgba(113, 128, 77, 0.34)
            transparent;
    }

    .home-lessons-grid::-webkit-scrollbar,
    .home-series-grid::-webkit-scrollbar {
        height: 4px;
    }

    .home-lessons-grid::-webkit-scrollbar-thumb,
    .home-series-grid::-webkit-scrollbar-thumb {
        background:
            rgba(113, 128, 77, 0.34);
        border-radius: 10px;
    }
}


/* =========================================================
   Generic pages / search results
   ========================================================= */

.page-section {
    padding: 55px 0 80px;
}

.page-heading {
    margin-bottom: 32px;
}

.page-heading h1 {
    margin: 0;
    font-size: clamp(30px, 4vw, 44px);
}

.page-heading p {
    margin: 8px 0 0;
    color: var(--color-muted);
}

.empty-state {
    padding: 50px 30px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    color: var(--color-muted);
}

.search-results-section + .search-results-section {
    margin-top: 38px;
}

.search-results-section h2 {
    margin: 0 0 16px;
}

.search-results-list {
    display: grid;
    gap: 10px;
}

.search-result-item {
    padding: 18px 20px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
    width: 100%;
    max-width: 100%;
    margin-top: 0;
    background: var(--color-footer);
    color: #fff;
    border-top: 6px solid var(--color-olive);
}

.footer-main {
    padding-top: 52px;
    padding-bottom: 38px;
    text-align: center;
}

.footer-brand {
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.footer-brand img {
    display: block;
    width: 260px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.footer-site-name {
    margin: 18px 0 20px;
    color: #f4f5f7;
    font-size: 18px;
    font-weight: 500;
}

.footer-social {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-social__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    outline: 0;
    box-shadow: none;
    color: #fff;
    background: rgba(255, 255, 255, 0.10);
    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.footer-social__item i {
    display: block;
    color: #fff;
    font-size: 20px;
    line-height: 1;
}

.footer-social__item:hover,
.footer-social__item:focus-visible {
    color: #fff;
    transform: translateY(-2px);
}

.footer-social__item--telegram:hover,
.footer-social__item--telegram:focus-visible {
    background: #229ed9;
}

.footer-social__item--whatsapp:hover,
.footer-social__item--whatsapp:focus-visible {
    background: #25d366;
}

.footer-social__item--youtube:hover,
.footer-social__item--youtube:focus-visible {
    background: #ff0000;
}

.footer-social__item--email:hover,
.footer-social__item--email:focus-visible {
    background: var(--color-olive);
}

.footer-social__item:active {
    transform: scale(0.95);
}

.footer-live {
    margin-top: 32px;
}

.footer-live h2 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

.footer-live__links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-live__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 42px;
    padding: 8px 17px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    outline: 0;
    box-shadow: none;
    color: #f2f4f6;
    background: rgba(255, 255, 255, 0.08);
    font-size: 13px;
    font-weight: 500;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.footer-live__link i {
    color: #fff;
    font-size: 17px;
    line-height: 1;
}

.footer-live__link:hover,
.footer-live__link:focus-visible {
    color: #fff;
    transform: translateY(-2px);
}

.footer-live__link--youtube:hover,
.footer-live__link--youtube:focus-visible {
    background: #ff0000;
    border-color: #ff0000;
}

.footer-live__link--audio:hover,
.footer-live__link--audio:focus-visible {
    background: var(--color-olive);
    border-color: var(--color-olive);
}

.footer-live__link:active {
    transform: scale(0.97);
}

.site-footer__bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.68);
    font-size: 12px;
    text-align: center;
}

/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 1100px) {
    .hero-card {
        height: 400px;
        min-height: 400px;
    }

    .hero-search {
        bottom: 22px;
        grid-template-columns: 58px minmax(0, 1fr) 170px;
        width: min(760px, calc(100% - 40px));
    }
}

@media (max-width: 900px) {
    body {
        overflow-x: hidden;
    }

    .site-header__inner {
        min-height: 72px;
        justify-content: space-between;
        gap: 12px;
    }

    .site-logo {
        min-width: 0;
    }

    .site-logo img {
        width: 150px;
        max-width: 100%;
    }

    .site-nav {
        display: none;
    }

    .mobile-menu-button {
        display: inline-flex;
        margin-inline-start: 0;
    }
}

/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 600px) {
    .site-container {
        width: min(calc(100% - 28px), var(--container));
    }

    .site-header__inner {
        min-height: 64px;
    }

    .site-logo img {
        width: 135px;
    }

    .mobile-menu-button {
        width: 42px;
        height: 42px;
        flex: 0 0 42px;
    }

    .mobile-nav {
        width: min(88vw, 340px);
        max-width: 340px;
    }

    .mobile-nav__top {
        min-height: 122px;
    }

    .mobile-nav__logo {
        width: 190px;
        max-width: calc(100% - 24px);
    }

    .hero-card {
        height: 320px;
        min-height: 320px;
    }

    .hero-search {
        bottom: 12px;
        width: calc(100% - 24px);
        grid-template-columns: 48px minmax(0, 1fr) 110px;
        gap: 7px;
        padding: 8px;
        border-radius: 18px;
    }

    .hero-search__button,
    .hero-search__field,
    .hero-search__filter {
        min-height: 48px;
    }

    .hero-search__button {
        border-radius: 12px;
    }

    .hero-search__button svg {
        width: 20px;
        height: 20px;
    }

    .hero-search__field {
        gap: 6px;
        padding: 0 11px;
        border-radius: 12px;
    }

    .hero-search__field svg {
        display: none;
    }

    .hero-search__field input {
        font-size: 13px;
    }

    .hero-search__filter select {
        padding: 0 10px 0 24px;
        border-radius: 12px;
        font-size: 12px;
    }

    .hero-search__filter::after {
        left: 10px;
        width: 6px;
        height: 6px;
        border-right-width: 1.7px;
        border-bottom-width: 1.7px;
    }

    .footer-main {
        padding-top: 38px;
        padding-bottom: 30px;
    }

    .footer-brand img {
        width: 210px;
    }

    .footer-site-name {
        margin-top: 14px;
        font-size: 14px;
        line-height: 1.9;
    }

    .footer-social {
        gap: 10px;
    }

    .footer-social__item {
        width: 44px;
        height: 44px;
    }

    .footer-social__item i {
        font-size: 19px;
    }

    .footer-live {
        margin-top: 28px;
    }

    .footer-live__links {
        gap: 8px;
    }

    .footer-live__link {
        min-height: 40px;
        padding: 7px 13px;
        font-size: 12px;
    }

    .footer-live__link i {
        font-size: 16px;
    }

    .site-footer__bottom {
        padding: 17px 0;
        font-size: 11px;
        line-height: 1.8;
    }
}


/* =========================================================
   About page
   ========================================================= */

.about-page {
    padding: 56px 0 84px;
}

.about-hero {
    max-width: 900px;
    margin-bottom: 46px;
}

.about-hero__eyebrow {
    margin: 0 0 8px;
    color: #7f9055;
    font-size: 14px;
    font-weight: 700;
}

.about-hero h1 {
    margin: 0;
    color: #334156;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.55;
}

.about-hero__intro {
    max-width: 760px;
    margin: 16px 0 0;
    color: #6c7480;
    font-size: 17px;
    line-height: 2;
}

.about-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 42px;
    align-items: start;
}

.about-toc {
    position: sticky;
    top: 120px;
    display: grid;
    gap: 5px;
    padding: 18px;
    background: #ffffff;
    border: 1px solid #ebe8e2;
    border-radius: 16px;
}

.about-toc__title {
    margin: 0 0 8px;
    color: #334156;
    font-size: 14px;
    font-weight: 700;
}

.about-toc a {
    padding: 8px 10px;
    border-radius: 8px;
    color: #69727e;
    font-size: 13px;
    line-height: 1.7;
    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.about-toc a:hover {
    color: #677844;
    background: #f5f6ef;
}

.about-content {
    display: grid;
    gap: 22px;
}

.about-section {
    scroll-margin-top: 125px;
    padding: 30px 32px;
    background: #ffffff;
    border: 1px solid #ebe8e2;
    border-radius: 18px;
}

.about-section__heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}

.about-section__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 12px;
    color: #718046;
    background: #f2f4eb;
}

.about-section__icon i {
    font-size: 17px;
}

.about-section h2 {
    margin: 0;
    color: #354257;
    font-size: 22px;
}

.about-section h3 {
    margin: 0 0 7px;
    color: #435167;
    font-size: 16px;
}

.about-section p {
    margin: 0;
    color: #646d78;
    line-height: 2.05;
}

.about-timeline {
    display: grid;
    gap: 14px;
}

.about-timeline__item {
    position: relative;
    padding: 18px 20px;
    background: #fafaf8;
    border-radius: 12px;
    border-right: 3px solid #87965c;
}

.about-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.about-list li {
    position: relative;
    padding-right: 22px;
    color: #646d78;
    line-height: 2.05;
}

.about-list li::before {
    content: "";
    position: absolute;
    top: 0.95em;
    right: 2px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #87965c;
}

.about-list--research li {
    padding-bottom: 12px;
    border-bottom: 1px solid #f0eee9;
}

.about-list--research li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.about-note {
    margin-top: 22px;
    padding: 18px 20px;
    color: #5f6874;
    line-height: 2;
    background: #f7f8f3;
    border-radius: 12px;
    border-right: 3px solid #87965c;
}

.about-note strong {
    color: #435167;
}


@media (max-width: 900px) {
    .about-page {
        padding-top: 42px;
    }

    .about-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .about-toc {
        position: static;
        display: flex;
        overflow-x: auto;
        gap: 6px;
        padding: 10px;
        scrollbar-width: thin;
    }

    .about-toc__title {
        display: none;
    }

    .about-toc a {
        flex: 0 0 auto;
        white-space: nowrap;
        background: #f7f7f4;
    }
}


@media (max-width: 600px) {
    .about-page {
        padding: 32px 0 58px;
    }

    .about-hero {
        margin-bottom: 28px;
    }

    .about-hero h1 {
        font-size: 27px;
    }

    .about-hero__intro {
        font-size: 15px;
    }

    .about-section {
        padding: 22px 18px;
        border-radius: 14px;
    }

    .about-section__heading {
        align-items: flex-start;
        margin-bottom: 18px;
    }

    .about-section__icon {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .about-section h2 {
        font-size: 19px;
        line-height: 1.7;
    }

    .about-timeline__item {
        padding: 16px;
    }

    .about-list li,
    .about-section p,
    .about-note {
        font-size: 14px;
    }
}

.site-nav__link i,
.mobile-nav__links a i {
    width: 21px;
    text-align: center;
    font-size: 17px;
    flex: 0 0 21px;
}


/* =========================================================
   About page final refinements
   ========================================================= */

.about-hero h1 {
    max-width: 820px;
    font-size: clamp(30px, 3.2vw, 42px);
    line-height: 1.55;
}

@media (max-width: 900px) {
    .about-toc {
        -ms-overflow-style: none;
        scrollbar-width: none;
        scroll-snap-type: x proximity;
    }

    .about-toc::-webkit-scrollbar {
        display: none;
    }

    .about-toc a {
        scroll-snap-align: start;
    }
}

@media (max-width: 600px) {
    .about-hero h1 {
        font-size: 25px;
        line-height: 1.55;
    }

    .about-toc {
        margin-inline: -4px;
        padding: 8px;
    }

    .about-toc a {
        padding: 8px 11px;
        font-size: 12px;
    }
}


/* =========================================================
   Series listing
   ========================================================= */

.series-page {
    padding: 50px 0 86px;
}

.series-page__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 28px;
}

.series-page__header > div {
    max-width: 760px;
}

.series-page__eyebrow {
    margin: 0 0 5px;
    color: #7f9055;
    font-size: 13px;
    font-weight: 700;
}

.series-page__header h1 {
    margin: 0;
    color: #334156;
    font-size: clamp(31px, 4vw, 44px);
    line-height: 1.45;
}

.series-page__intro {
    margin: 8px 0 0;
    color: #747b85;
    font-size: 15px;
    line-height: 1.9;
}

.series-tools {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) 200px;
    gap: 10px;
    margin-bottom: 22px;
    padding: 10px;
    background: #ffffff;
    border: 1px solid #e6e7e2;
    border-radius: 20px;
    box-shadow: 0 8px 28px rgba(48, 58, 70, 0.04);
}

.series-tools__button,
.series-tools__field,
.series-tools__filter {
    min-height: 52px;
}

.series-tools__button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #ffffff;
    background: #7c8e52;
    border: 0;
    border-radius: 14px;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.series-tools__button:hover {
    background: #6e7f48;
    transform: translateY(-1px);
}

.series-tools__button svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.series-tools__field {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 0 17px;
    background: #f7f8f5;
    border: 1px solid #e8e9e4;
    border-radius: 14px;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.series-tools__field:focus-within {
    background: #ffffff;
    border-color: #9ba87a;
    box-shadow: 0 0 0 3px rgba(127, 144, 85, 0.08);
}

.series-tools__field svg {
    flex: 0 0 auto;
    width: 19px;
    height: 19px;
    fill: none;
    stroke: #9299a1;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.series-tools__field input {
    width: 100%;
    min-width: 0;
    height: 100%;
    padding: 0;
    color: #344155;
    background: transparent;
    border: 0;
    outline: 0;
    font: inherit;
    font-size: 14px;
}

.series-tools__field input::placeholder {
    color: #a0a5ab;
}

.series-tools__filter {
    position: relative;
}

.series-tools__filter select {
    width: 100%;
    height: 100%;
    padding: 0 16px 0 38px;
    color: #3d4858;
    background: #f7f8f5;
    border: 1px solid #e8e9e4;
    border-radius: 14px;
    outline: 0;
    appearance: none;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.series-tools__filter select:focus {
    background: #ffffff;
    border-color: #9ba87a;
    box-shadow: 0 0 0 3px rgba(127, 144, 85, 0.08);
}

.series-tools__filter::after {
    content: "";
    position: absolute;
    left: 16px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-right: 2px solid #7a838e;
    border-bottom: 2px solid #7a838e;
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
}

.series-tools__reset {
    grid-column: 1 / -1;
    justify-self: start;
    margin: -2px 3px 0;
    color: #7c838c;
    font-size: 11px;
    font-weight: 600;
}

.series-tools__reset:hover {
    color: #667547;
}

.series-results {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 15px;
    color: #858b93;
    font-size: 12px;
}

.series-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 20px;
}

.series-card {
    display: block;
    min-width: 0;
    color: inherit;
}

.series-card__media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #e9ebe6;
    border-radius: 15px;
    isolation: isolate;
}

.series-card__media::before,
.series-card__media::after {
    content: "";
    position: absolute;
    right: 14px;
    left: 14px;
    height: 10px;
    border-radius: 13px 13px 0 0;
    background: #d9ddd2;
    z-index: -2;
}

.series-card__media::before {
    top: -7px;
}

.series-card__media::after {
    top: -4px;
    right: 8px;
    left: 8px;
    background: #e4e7df;
    z-index: -1;
}

.series-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition:
        transform 0.3s ease,
        filter 0.3s ease;
}

.series-card:hover .series-card__media img {
    transform: scale(1.025);
    filter: brightness(0.88);
}

.series-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #7e8d58;
    background:
        linear-gradient(
            135deg,
            #edf0e7,
            #e0e5d5
        );
}

.series-card__placeholder i {
    font-size: 34px;
}

.series-card__count {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    color: #ffffff;
    background: rgba(25, 29, 34, 0.82);
    border-radius: 7px;
    font-size: 11px;
    font-weight: 600;
    backdrop-filter: blur(5px);
}

.series-card__count i {
    font-size: 10px;
}

.series-card__play {
    position: absolute;
    top: 50%;
    right: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    color: #ffffff;
    background: rgba(33, 38, 44, 0.76);
    border-radius: 50%;
    opacity: 0;
    transform: translate(50%, -42%);
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
    backdrop-filter: blur(5px);
}

.series-card:hover .series-card__play {
    opacity: 1;
    transform: translate(50%, -50%);
}

.series-card__play i {
    margin-right: -2px;
    font-size: 15px;
}

.series-card__body {
    padding: 13px 3px 0;
}

.series-card h2 {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #354257;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.75;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.series-card__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px 13px;
    margin-top: 7px;
    color: #8a9098;
    font-size: 11px;
}

.series-card__meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.series-card__meta i {
    color: #89965f;
}

.series-card__open {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 10px;
    color: #71804d;
    font-size: 12px;
    font-weight: 700;
}

.series-card__open i {
    font-size: 10px;
    transition: transform 0.2s ease;
}

.series-card:hover .series-card__open i {
    transform: translateX(-3px);
}

.series-empty {
    max-width: 680px;
    margin-inline: auto;
    padding: 58px 28px;
    text-align: center;
    background: #ffffff;
    border: 1px solid #ebe8e2;
    border-radius: 18px;
}

.series-empty__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin-bottom: 17px;
    color: #718046;
    background: #f2f4eb;
    border-radius: 17px;
}

.series-empty__icon i {
    font-size: 21px;
}

.series-empty h2 {
    margin: 0;
    color: #354257;
    font-size: 20px;
}

.series-empty p {
    margin: 9px 0 0;
    color: #7b828c;
    font-size: 13px;
    line-height: 1.8;
}

.series-empty__reset {
    display: inline-flex;
    margin-top: 18px;
    padding: 10px 17px;
    color: #ffffff;
    background: #71804d;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 700;
}


@media (max-width: 1000px) {
    .series-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .series-tools {
        flex-wrap: wrap;
    }

    .series-search {
        flex-basis: 100%;
    }

    .series-sort {
        flex: 1;
    }
}


@media (max-width: 600px) {
    .series-page {
        padding: 30px 0 60px;
    }

    .series-page__header {
        margin-bottom: 20px;
    }

    .series-page__header h1 {
        font-size: 27px;
    }

    .series-page__intro {
        margin-top: 6px;
        font-size: 13px;
        line-height: 1.8;
    }

    .series-tools {
        grid-template-columns: 46px minmax(0, 1fr) 112px;
        gap: 7px;
        margin-bottom: 14px;
        padding: 7px;
        border-radius: 16px;
    }

    .series-tools__button,
    .series-tools__field,
    .series-tools__filter {
        min-height: 44px;
    }

    .series-tools__button {
        border-radius: 11px;
    }

    .series-tools__button svg {
        width: 19px;
        height: 19px;
    }

    .series-tools__field {
        gap: 6px;
        padding: 0 11px;
        border-radius: 11px;
    }

    .series-tools__field svg {
        display: none;
    }

    .series-tools__field input {
        font-size: 12px;
    }

    .series-tools__filter select {
        padding: 0 9px 0 23px;
        border-radius: 11px;
        font-size: 10.5px;
    }

    .series-tools__filter::after {
        left: 9px;
        width: 6px;
        height: 6px;
        border-right-width: 1.6px;
        border-bottom-width: 1.6px;
    }

    .series-tools__reset {
        margin: 0 3px;
        font-size: 10px;
    }

    .series-results {
        margin-bottom: 12px;
        font-size: 11px;
    }

    .series-results span:last-child:not(:first-child) {
        display: none;
    }

    .series-grid {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .series-card {
        display: grid;
        grid-template-columns: 142px minmax(0, 1fr);
        align-items: start;
        gap: 12px;
    }

    .series-card__media {
        width: 142px;
        aspect-ratio: 16 / 9;
        border-radius: 11px;
    }

    .series-card__count {
        right: 6px;
        bottom: 6px;
        gap: 4px;
        padding: 4px 6px;
        font-size: 9px;
        border-radius: 5px;
    }

    .series-card__play {
        display: none;
    }

    .series-card__body {
        min-width: 0;
        padding: 1px 0 0;
    }

    .series-card h2 {
        font-size: 13px;
        line-height: 1.65;
        -webkit-line-clamp: 2;
    }

    .series-card__meta {
        margin-top: 5px;
        font-size: 10px;
    }

    .series-card__open {
        margin-top: 6px;
        font-size: 10px;
    }

    .series-empty {
        padding: 42px 18px;
    }
}


@media (max-width: 390px) {
    .series-card {
        grid-template-columns: 126px minmax(0, 1fr);
        gap: 10px;
    }

    .series-card__media {
        width: 126px;
    }

    .series-card h2 {
        font-size: 12px;
    }
}


/* =========================================================
   Series detail
   ========================================================= */

.series-detail {
    padding: 34px 0 84px;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 24px;
    color: #8a9098;
    font-size: 11px;
}

.breadcrumbs a {
    transition: color 0.2s ease;
}

.breadcrumbs a:hover {
    color: #718046;
}

.series-detail__overview {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    align-items: center;
    gap: 30px;
    margin-bottom: 32px;
}

.series-detail__cover {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #e8ebe4;
    border-radius: 17px;
}

.series-detail__cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.series-detail__cover-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #73814f;
    background: #edf0e7;
    font-size: 34px;
}

.series-detail__cover-count {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    color: #ffffff;
    background: rgba(29, 34, 40, 0.84);
    border-radius: 7px;
    font-size: 11px;
    font-weight: 600;
    backdrop-filter: blur(5px);
}

.series-detail__summary {
    min-width: 0;
}

.series-detail__eyebrow {
    margin: 0 0 5px;
    color: #7f9055;
    font-size: 13px;
    font-weight: 700;
}

.series-detail h1 {
    margin: 0;
    color: #334156;
    font-size: clamp(28px, 3.6vw, 42px);
    line-height: 1.5;
}

.series-detail__description {
    max-width: 780px;
    margin: 10px 0 0;
    color: #6f7782;
    font-size: 14px;
    line-height: 1.9;
}

.series-detail__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 15px;
    color: #818892;
    font-size: 12px;
}

.series-detail__meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.series-detail__meta i {
    color: #819057;
}

.series-lessons {
    padding: 24px;
    background: #ffffff;
    border: 1px solid #ebe8e2;
    border-radius: 18px;
}

.series-lessons__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.series-lessons__heading p {
    margin: 0 0 3px;
    color: #87965c;
    font-size: 11px;
    font-weight: 700;
}

.series-lessons__heading h2 {
    margin: 0;
    color: #354257;
    font-size: 22px;
}

.series-lessons__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding-inline: 10px;
    color: #6d7d48;
    background: #f2f4eb;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 700;
}

.series-tools--lessons {
    margin-bottom: 12px;
}

.series-lessons__results {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 3px 2px 12px;
    color: #90959c;
    font-size: 11px;
}

.series-lesson-list {
    display: grid;
}

.series-lesson-row {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr) 34px;
    align-items: center;
    gap: 18px;
    min-width: 0;
    padding: 14px 0;
    border-top: 1px solid #efeee9;
    transition:
        background-color 0.2s ease,
        padding 0.2s ease;
}

.series-lesson-row:first-child {
    border-top: 0;
}

.series-lesson-row:hover {
    padding-inline: 10px;
    background: #fafbf8;
}

.series-lesson-row__media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #e9ebe6;
    border-radius: 11px;
}

.series-lesson-row__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.series-lesson-row:hover .series-lesson-row__media img {
    transform: scale(1.025);
}

.series-lesson-row__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #819058;
    background: #eef1e8;
}

.series-lesson-row__duration {
    position: absolute;
    left: 6px;
    bottom: 6px;
    padding: 3px 6px;
    color: #ffffff;
    background: rgba(22, 26, 31, 0.84);
    border-radius: 5px;
    font-size: 9px;
    font-weight: 600;
    direction: ltr;
}

.series-lesson-row__content {
    min-width: 0;
}

.series-lesson-row__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px 12px;
    margin-bottom: 5px;
    color: #9499a0;
    font-size: 10px;
}

.series-lesson-row__meta span:first-child {
    color: #788750;
    font-weight: 700;
}

.series-lesson-row h3 {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #374458;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.75;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.series-lesson-row__watch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 7px;
    color: #74824f;
    font-size: 10px;
    font-weight: 700;
}

.series-lesson-row__watch i {
    font-size: 8px;
}

.series-lesson-row__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: #90969e;
    background: #f6f6f3;
    border-radius: 50%;
    font-size: 10px;
    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.series-lesson-row:hover .series-lesson-row__arrow {
    color: #ffffff;
    background: #7c8e52;
}

.series-lessons__empty {
    padding: 48px 20px;
    text-align: center;
    color: #7b828c;
}

.series-lessons__empty i {
    margin-bottom: 13px;
    color: #87965c;
    font-size: 28px;
}

.series-lessons__empty h3 {
    margin: 0;
    color: #485569;
    font-size: 17px;
}

.series-lessons__empty p {
    margin: 8px 0 0;
    font-size: 12px;
}

.series-lessons__empty a {
    display: inline-flex;
    margin-top: 16px;
    color: #71804d;
    font-size: 12px;
    font-weight: 700;
}


@media (max-width: 800px) {
    .series-detail__overview {
        grid-template-columns: 240px minmax(0, 1fr);
        gap: 20px;
    }

    .series-lesson-row {
        grid-template-columns: 170px minmax(0, 1fr);
    }

    .series-lesson-row__arrow {
        display: none;
    }
}


@media (max-width: 600px) {
    .series-detail {
        padding: 22px 0 58px;
    }

    .breadcrumbs {
        flex-wrap: nowrap;
        gap: 5px;
        margin-bottom: 16px;
        overflow: hidden;
        white-space: nowrap;
    }

    .breadcrumbs span:last-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .series-detail__overview {
        display: grid;
        grid-template-columns: 118px minmax(0, 1fr);
        align-items: start;
        gap: 12px;
        margin-bottom: 22px;
    }

    .series-detail__cover {
        border-radius: 11px;
    }

    .series-detail__cover-count {
        right: 5px;
        bottom: 5px;
        padding: 4px 6px;
        font-size: 8px;
        border-radius: 5px;
    }

    .series-detail__eyebrow {
        margin-bottom: 3px;
        font-size: 10px;
    }

    .series-detail h1 {
        font-size: 17px;
        line-height: 1.6;
    }

    .series-detail__description {
        display: -webkit-box;
        margin-top: 5px;
        overflow: hidden;
        font-size: 11px;
        line-height: 1.7;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .series-detail__meta {
        display: grid;
        gap: 3px;
        margin-top: 7px;
        font-size: 9px;
    }

    .series-lessons {
        margin-inline: -4px;
        padding: 14px 10px;
        border-radius: 13px;
    }

    .series-lessons__heading {
        margin-bottom: 12px;
    }

    .series-lessons__heading p {
        font-size: 9px;
    }

    .series-lessons__heading h2 {
        font-size: 18px;
    }

    .series-lessons__count {
        min-width: 34px;
        height: 34px;
        font-size: 11px;
        border-radius: 9px;
    }

    .series-tools--lessons {
        margin-bottom: 8px;
    }

    .series-lessons__results {
        padding-bottom: 7px;
        font-size: 9px;
    }

    .series-lesson-row {
        grid-template-columns: 116px minmax(0, 1fr);
        gap: 10px;
        padding: 10px 0;
    }

    .series-lesson-row:hover {
        padding-inline: 0;
        background: transparent;
    }

    .series-lesson-row__media {
        width: 116px;
        border-radius: 8px;
    }

    .series-lesson-row__duration {
        left: 4px;
        bottom: 4px;
        padding: 2px 4px;
        font-size: 7.5px;
    }

    .series-lesson-row__meta {
        gap: 4px 7px;
        margin-bottom: 3px;
        font-size: 8px;
    }

    .series-lesson-row h3 {
        font-size: 11px;
        line-height: 1.6;
    }

    .series-lesson-row__watch {
        margin-top: 4px;
        font-size: 8.5px;
    }
}


@media (max-width: 390px) {
    .series-detail__overview {
        grid-template-columns: 104px minmax(0, 1fr);
        gap: 10px;
    }

    .series-lesson-row {
        grid-template-columns: 104px minmax(0, 1fr);
        gap: 8px;
    }

    .series-lesson-row__media {
        width: 104px;
    }
}


/* =========================================================
   Unified lesson player
   ========================================================= */

.lesson-page {
    padding: 20px 0 70px;
    direction: rtl;
}

.lesson-watch-container {
    width: min(100% - 36px, 1560px);
    max-width: 1560px;
}

.lesson-breadcrumbs {
    margin-bottom: 16px;
    direction: rtl;
}


/* =========================================================
   Watch layout
   ========================================================= */

.lesson-watch-layout {
    display: grid;

    /*
     * Geometry is intentionally LTR so:
     * main = physical left
     * playlist = physical right
     *
     * Content inside both columns remains RTL.
     */
    grid-template-columns:
        minmax(0, 1fr)
        minmax(340px, 390px);

    grid-template-areas:
        "main playlist";

    gap: 16px;
    align-items: start;
    direction: ltr;
}

.lesson-watch-main {
    grid-area: main;
    min-width: 0;
    direction: rtl;
}

.lesson-playlist {
    grid-area: playlist;
    min-width: 0;
    direction: rtl;
}


/* =========================================================
   Video player
   ========================================================= */

.lesson-player {
    position: relative;
    width: 100%;
    min-width: 0;
}

.player-stage {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #000;
    border-radius: 16px;
}


/* Video / audio selector */

.player-mode-switch {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;

    width: max-content;

    margin: 0 auto 9px;
    padding: 4px;

    background: #f1f2ed;
    border: 1px solid #e2e4dc;
    border-radius: 22px;

    direction: rtl;
}

.player-mode-switch__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    min-width: 76px;
    min-height: 31px;
    padding: 4px 11px;

    color: #747c87;
    background: transparent;
    border: 0;
    border-radius: 17px;

    cursor: pointer;
    font: inherit;
    font-size: 9px;
    font-weight: 700;

    transition:
        color 0.18s ease,
        background-color 0.18s ease;
}

.player-mode-switch__button.is-active {
    color: #ffffff;
    background: #82934f;
}

.player-mode-switch__button:disabled {
    cursor: default;
    opacity: 0.35;
}


/* Responsive 16:9 */

.player-stage__video {
    width: 100%;
}

.player-video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
}

.player-video-frame #lesson-youtube-player,
.player-video-frame iframe {
    position: absolute !important;
    inset: 0 !important;

    display: block !important;

    width: 100% !important;
    height: 100% !important;

    min-width: 0 !important;
    min-height: 0 !important;
    max-width: none !important;
    max-height: none !important;

    border: 0 !important;
}


/* Audio mode */

.player-stage__audio {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    aspect-ratio: 16 / 9;

    padding: 34px;

    background:
        radial-gradient(
            circle at 70% 20%,
            rgba(130, 147, 79, 0.16),
            transparent 38%
        ),
        linear-gradient(
            145deg,
            #f0f1eb 0%,
            #e6e8dd 50%,
            #f7f5f0 100%
        );
}

.player-stage__video.is-hidden,
.player-stage__audio.is-hidden {
    display: none;
}

.player-audio-cover {
    display: block;

    width: min(300px, 44%);
    aspect-ratio: 1;

    object-fit: cover;

    border: 1px solid rgba(55, 65, 78, 0.08);
    border-radius: 18px;

    box-shadow:
        0 18px 45px rgba(41, 49, 59, 0.16);
}

.player-audio-cover--empty {
    display: flex;
    align-items: center;
    justify-content: center;

    color: #7c8e4e;
    background: #ffffff;

    font-size: 46px;
}

.player-unavailable {
    display: grid;
    place-items: center;
    align-content: center;

    width: 100%;
    aspect-ratio: 16 / 9;

    gap: 10px;
    padding: 30px;

    color: #717985;
    background: #f4f4f0;

    text-align: center;
}

.player-unavailable i {
    color: #7c8d4d;
    font-size: 30px;
}

.player-unavailable p {
    margin: 0;
}


/* =========================================================
   Custom controls
   ========================================================= */

.player-controls {
    position: relative;

    margin-top: 8px;
    padding: 0 2px 2px;

    direction: rtl;
}


/* Timeline */

.player-progress {
    width: 100%;
}

.player-progress input {
    display: block;

    width: 100%;
    height: 4px;

    margin: 0;

    accent-color: #81924e;
    cursor: pointer;
    direction: ltr;
}

.player-progress__time {
    display: flex;
    justify-content: space-between;

    margin-top: 3px;

    color: #8a919a;
    font-size: 8px;

    direction: ltr;
}


/*
 * Visual order from LEFT to RIGHT:
 * volume + forward | play | rewind + speed
 *
 * Therefore in RTL visual reading:
 * speed, -15, play, +30, volume
 */

.player-controls__row {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 7px;
    margin-top: 6px;

    direction: rtl;
}

.player-controls__side {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 5px;

    flex: 0 0 auto;

    direction: rtl;
}

.player-controls__side--right,
.player-controls__side--left {
    justify-content: center;
}

.player-play-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 60px;
    height: 42px;
    padding: 0;

    color: #ffffff;
    background: #80914e;

    border: 0;
    border-radius: 22px;

    cursor: pointer;
    font-size: 15px;

    box-shadow:
        0 5px 14px rgba(128, 145, 78, 0.18);

    transition:
        background-color 0.18s ease,
        transform 0.18s ease;
}

.player-play-button:hover {
    background: #718244;
    transform: translateY(-1px);
}

.player-control-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 6px;

    min-width: 48px;
    height: 34px;
    padding: 0 7px;

    color: #445165;
    background: transparent;

    border: 0;
    border-radius: 8px;

    cursor: pointer;
    font-size: 11px;

    white-space: nowrap;

    transition:
        color 0.18s ease,
        background-color 0.18s ease;
}

.player-control-button:hover {
    color: #718245;
    background: #f0f2e9;
}

.player-control-button span {
    position: static;
    inset: auto;

    display: inline;

    font-size: 8px;
    font-weight: 800;
    line-height: 1;

    direction: ltr;
}


/* Playback speed */

.player-speed--compact {
    display: inline-flex;
    align-items: center;
}

.player-speed--compact select {
    width: 54px;
    height: 34px;

    padding: 0 6px;

    color: #465267;
    background: #f5f5f1;

    border: 1px solid #e4e5df;
    border-radius: 9px;

    outline: 0;
    cursor: pointer;

    font: inherit;
    font-size: 9px;
    font-weight: 700;

    text-align: center;
    direction: ltr;
}


/* =========================================================
   Compact volume popover
   ========================================================= */

.player-volume-compact {
    position: relative;
    display: inline-flex;
}

.player-volume__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;
    padding: 0;

    color: #657642;
    background: transparent;

    border: 0;
    border-radius: 50%;

    cursor: pointer;
    font-size: 14px;

    transition:
        background-color 0.18s ease;
}

.player-volume__button:hover {
    background: #eef0e8;
}

.player-volume-popover {
    position: absolute;
    z-index: 30;

    bottom: calc(100% + 10px);
    left: 50%;

    transform: translateX(-50%);

    display: flex;
    align-items: center;
    gap: 8px;

    width: 205px;
    padding: 10px 11px;

    color: #465267;
    background: #ffffff;

    border: 1px solid #e1e2dc;
    border-radius: 12px;

    box-shadow:
        0 10px 34px rgba(37, 45, 55, 0.14);

    direction: ltr;
}

.player-volume-popover[hidden] {
    display: none !important;
}

.player-volume-popover::after {
    content: "";

    position: absolute;

    bottom: -6px;
    left: 50%;

    width: 11px;
    height: 11px;

    background: #ffffff;
    border-right: 1px solid #e1e2dc;
    border-bottom: 1px solid #e1e2dc;

    transform:
        translateX(-50%)
        rotate(45deg);
}

.player-volume-popover input {
    flex: 1;
    min-width: 0;

    margin: 0;

    accent-color: #80914e;
    cursor: pointer;
}

.player-volume__value {
    width: 32px;
    flex: 0 0 32px;

    color: #747c86;

    font-size: 8px;
    text-align: center;

    direction: ltr;
}


/* =========================================================
   Lesson title under player
   ========================================================= */

.lesson-watch-info {
    padding: 8px 2px 4px;
    direction: rtl;
}

.lesson-watch-info__series {
    display: inline-block;

    margin-bottom: 4px;

    color: #768648;

    font-size: 9px;
    font-weight: 700;
}

.lesson-watch-info h1 {
    max-width: 1000px;

    margin: 0;

    color: #344156;

    font-size: clamp(17px, 1.55vw, 23px);
    font-weight: 700;
    line-height: 1.6;
}

.lesson-watch-info__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 6px 14px;
    margin-top: 8px;

    color: #8b9199;
    font-size: 9px;
}

.lesson-watch-info__meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.lesson-watch-info__meta i {
    color: #7f9051;
}


/* =========================================================
   YouTube-style playlist
   ========================================================= */

.lesson-playlist {
    overflow: hidden;

    background: #ffffff;

    border: 1px solid #dfdfda;
    border-radius: 14px;

    /*
     * Similar visual height to player area.
     * The lesson list itself scrolls.
     */
    height: min(690px, calc(100vh - 210px));
    min-height: 470px;
}

.lesson-playlist__header {
    padding: 14px 14px 12px;

    border-bottom: 1px solid #e9e8e3;

    background: #ffffff;
}

.lesson-playlist__header > p {
    margin: 0 0 3px;

    color: #879453;

    font-size: 8px;
    font-weight: 700;
}

.lesson-playlist__header > a {
    display: block;

    color: #344156;

    font-size: 15px;
    font-weight: 700;
    line-height: 1.55;
}

.lesson-playlist__position {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;
    margin-top: 7px;

    color: #8e949c;
    font-size: 8px;
}


/* Scrollable list */

.lesson-playlist__items {
    height: calc(100% - 96px);

    overflow-y: auto;
    overscroll-behavior: contain;

    padding: 5px;

    scrollbar-width: thin;
    scrollbar-color: #c4c8ba transparent;
}


/* Playlist item */

.lesson-playlist-item {
    position: relative;

    display: grid;

    grid-template-columns:
        128px
        minmax(0, 1fr)
        18px;

    align-items: center;

    gap: 8px;

    min-width: 0;
    padding: 6px;

    color: inherit;
    border-radius: 9px;

    direction: rtl;

    transition:
        background-color 0.15s ease;
}

.lesson-playlist-item:hover {
    background: #f5f5f2;
}

.lesson-playlist-item.is-active {
    background: #ecefe5;
}


/* Thumbnail */

.lesson-playlist-item__thumb {
    position: relative;

    overflow: hidden;

    width: 128px;
    aspect-ratio: 16 / 9;

    background: #e8e9e4;
    border-radius: 7px;
}

.lesson-playlist-item__thumb img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.lesson-playlist-item__thumb > span {
    position: absolute;

    left: 4px;
    bottom: 4px;

    padding: 2px 4px;

    color: #ffffff;
    background: rgba(20, 24, 29, 0.86);

    border-radius: 4px;

    font-size: 7px;
    font-weight: 700;

    direction: ltr;
}

.lesson-playlist-item__thumb-empty {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    color: #7e8f50;
    background: #ecefe5;
}


/* Item content */

.lesson-playlist-item__content {
    min-width: 0;
}

.lesson-playlist-item__content strong {
    display: -webkit-box;

    overflow: hidden;

    color: #364255;

    font-size: 9.5px;
    font-weight: 700;
    line-height: 1.55;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.lesson-playlist-item.is-active
.lesson-playlist-item__content strong {
    color: #556537;
}

.lesson-playlist-item__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 3px 7px;
    margin-top: 4px;

    color: #949aa1;

    font-size: 7px;
}

.lesson-playlist-item__playing {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 18px;
    height: 18px;

    color: #778a47;

    font-size: 7px;
}


/* =========================================================
   Lesson tabs
   ========================================================= */

.lesson-tabs {
    margin-top: 18px;
    direction: rtl;
}

.lesson-tabs__nav {
    display: flex;
    align-items: center;

    gap: 2px;

    padding: 0;

    background: transparent;

    border-bottom: 1px solid #e5e4de;
    border-radius: 0;
}

.lesson-tabs__nav button {
    position: relative;

    flex: 0 0 auto;

    min-width: 110px;
    min-height: 41px;

    padding: 0 15px;

    color: #747c86;
    background: transparent;

    border: 0;
    border-radius: 0;

    cursor: pointer;

    font: inherit;
    font-size: 10px;
    font-weight: 700;
}

.lesson-tabs__nav button::after {
    content: "";

    position: absolute;

    right: 18px;
    bottom: -1px;
    left: 18px;

    height: 2px;

    background: transparent;
    border-radius: 2px;
}

.lesson-tabs__nav button.is-active {
    color: #667840;
    background: transparent;
    box-shadow: none;
}

.lesson-tabs__nav button.is-active::after {
    background: #80914e;
}

.lesson-tab-panel {
    margin-top: 11px;

    padding: 18px 0;

    background: transparent;

    border: 0;
    border-radius: 0;
}

.lesson-tab-panel h2 {
    margin: 0 0 14px;

    color: #344156;

    font-size: 18px;
}

.lesson-metadata {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 8px;

    margin: 0;
}

.lesson-metadata > div {
    padding: 11px 13px;

    background: #ffffff;

    border: 1px solid #e8e6df;
    border-radius: 10px;
}

.lesson-metadata dt {
    margin-bottom: 3px;

    color: #92979e;

    font-size: 8px;
}

.lesson-metadata dd {
    margin: 0;

    color: #4c586a;

    font-size: 10px;
    line-height: 1.7;
}

.lesson-metadata a {
    color: #687946;
}

.lesson-placeholder {
    padding: 34px 18px;

    color: #838a92;
    background: #ffffff;

    border: 1px solid #e8e6df;
    border-radius: 10px;

    text-align: center;
}


/* =========================================================
   Medium desktop
   ========================================================= */

@media (max-width: 1250px) {
    .lesson-watch-layout {
        grid-template-columns:
            minmax(0, 1fr)
            330px;

        gap: 13px;
    }

    .lesson-playlist-item {
        grid-template-columns:
            110px
            minmax(0, 1fr)
            16px;
    }

    .lesson-playlist-item__thumb {
        width: 110px;
    }

    .lesson-playlist-item__content strong {
        font-size: 9px;
    }
}


/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 900px) {
    .lesson-watch-layout {
        display: flex;
        flex-direction: column;

        gap: 18px;

        direction: rtl;
    }

    .lesson-watch-main,
    .lesson-playlist {
        width: 100%;
    }

    .lesson-watch-main {
        order: 1;
    }

    .lesson-playlist {
        order: 2;

        height: 420px;
        min-height: 0;
    }

    .lesson-playlist-item {
        grid-template-columns:
            128px
            minmax(0, 1fr)
            18px;
    }

    .lesson-playlist-item__thumb {
        width: 128px;
    }
}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 700px) {
    .lesson-page {
        padding: 7px 0 44px;
    }

    .lesson-watch-container {
        width: 100%;
        padding-inline: 8px;
    }

    .lesson-breadcrumbs {
        flex-wrap: nowrap;

        gap: 4px;
        margin: 0 2px 7px;

        overflow: hidden;
        white-space: nowrap;

        font-size: 7px;
    }

    .lesson-breadcrumbs span:last-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }


    /* Video */

    .player-stage {
        border-radius: 10px;
    }

    .player-video-frame {
        aspect-ratio: 16 / 9;
    }

    .player-mode-switch {
        width: max-content;

        margin: 0 auto 6px;

        gap: 2px;
        padding: 2px;
    }

    .player-mode-switch__button {
        min-width: 52px;
        min-height: 25px;

        gap: 4px;
        padding: 3px 7px;

        font-size: 7px;
    }

    .player-stage__audio {
        aspect-ratio: 16 / 9;
        padding: 20px;
    }

    .player-audio-cover {
        width: min(190px, 60%);
        border-radius: 12px;
    }


    /* Progress */

    .player-controls {
        margin-top: 6px;
    }

    .player-progress input {
        height: 3px;
    }

    .player-progress__time {
        margin-top: 2px;
        font-size: 7px;
    }


    /* Single compact control row */

    .player-controls__row {
        gap: 4px;
        margin-top: 3px;
    }

    .player-controls__side {
        gap: 3px;
    }

    .player-control-button {
        min-width: 42px;
        height: 32px;

        gap: 3px;
        padding-inline: 6px;

        font-size: 11px;
    }

    .player-control-button span {
        font-size: 7px;
    }

    .player-play-button {
        width: 53px;
        height: 37px;

        font-size: 13px;
    }

    .player-speed--compact select {
        width: 43px;
        height: 30px;

        padding: 0 3px;

        border-radius: 8px;

        font-size: 7px;
    }

    .player-volume__button {
        width: 34px;
        height: 34px;

        font-size: 12px;
    }

    .player-volume-popover {
        width: 175px;

        bottom: calc(100% + 7px);

        padding: 8px 9px;
    }

    .player-volume__value {
        width: 27px;
        flex-basis: 27px;

        font-size: 7px;
    }


    /* Lesson identity */

    .lesson-watch-info {
        padding: 10px 2px 1px;
    }

    .lesson-watch-info__series {
        margin-bottom: 2px;
        font-size: 7px;
    }

    .lesson-watch-info h1 {
        font-size: 12px;
        line-height: 1.6;
    }

    .lesson-watch-info__meta {
        gap: 4px 8px;
        margin-top: 6px;
        font-size: 7px;
    }


    /* Tabs */

    .lesson-tabs {
        margin-top: 11px;
    }

    .lesson-tabs__nav {
        justify-content: space-between;
    }

    .lesson-tabs__nav button {
        flex: 1;

        min-width: 0;
        min-height: 36px;

        padding: 0 6px;

        font-size: 8px;
    }

    .lesson-tabs__nav button::after {
        right: 10px;
        left: 10px;
    }

    .lesson-tab-panel {
        margin-top: 7px;
        padding-top: 10px;
    }

    .lesson-tab-panel h2 {
        margin-bottom: 10px;
        font-size: 14px;
    }

    .lesson-metadata {
        grid-template-columns: 1fr 1fr;
        gap: 5px;
    }

    .lesson-metadata > div {
        padding: 9px 10px;
        border-radius: 8px;
    }

    .lesson-metadata dt {
        font-size: 7px;
    }

    .lesson-metadata dd {
        font-size: 8px;
    }


    /* Playlist below lesson on mobile */

    .lesson-playlist {
        height: 370px;

        border-radius: 10px;
    }

    .lesson-playlist__header {
        padding: 11px 10px 9px;
    }

    .lesson-playlist__header > p {
        font-size: 7px;
    }

    .lesson-playlist__header > a {
        font-size: 12px;
    }

    .lesson-playlist__position {
        margin-top: 5px;
        font-size: 7px;
    }

    .lesson-playlist__items {
        height: calc(100% - 78px);
    }

    .lesson-playlist-item {
        grid-template-columns:
            105px
            minmax(0, 1fr)
            15px;

        gap: 6px;
        padding: 5px;
    }

    .lesson-playlist-item__thumb {
        width: 105px;
        border-radius: 6px;
    }

    .lesson-playlist-item__thumb > span {
        left: 3px;
        bottom: 3px;

        font-size: 6px;
    }

    .lesson-playlist-item__content strong {
        font-size: 8.5px;
        line-height: 1.5;
    }

    .lesson-playlist-item__meta {
        margin-top: 3px;
        font-size: 6.5px;
    }
}


/* =========================================================
   Small phones
   ========================================================= */

@media (max-width: 390px) {
    .lesson-watch-container {
        padding-inline: 6px;
    }

    .player-controls__row {
        gap: 2px;
    }

    .player-controls__side {
        gap: 0;
    }

    .player-control-button {
        min-width: 39px;
        height: 31px;
        padding-inline: 5px;
    }

    .player-volume__button {
        width: 31px;
        height: 31px;
    }

    .player-play-button {
        width: 48px;
        height: 35px;
    }

    .player-speed--compact select {
        width: 39px;
    }

    .lesson-metadata {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   Lesson workspace
   ========================================================= */

.lesson-workspace {
    display: grid;
    grid-template-columns:
        minmax(300px, 350px)
        minmax(0, 1fr);
    gap: 22px;
    align-items: start;
    direction: rtl;
}

.lesson-main {
    grid-column: 2;
    min-width: 0;
    direction: rtl;
}

.lesson-sidebar {
    grid-column: 1;
    min-width: 0;
    direction: rtl;
}


/* =========================================================
   Main player card
   ========================================================= */

.lesson-player-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e8e6df;
    border-radius: 18px;
    box-shadow: 0 10px 34px rgba(48, 58, 70, 0.07);
}


/* Media switch */

.player-mode-switch {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 10px;
    background: #ffffff;
    border-bottom: 1px solid #ece9e3;
    direction: rtl;
}

.player-mode-switch__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 105px;
    min-height: 38px;
    padding: 6px 15px;
    color: #7c8490;
    background: #f5f5f1;
    border: 1px solid transparent;
    border-radius: 20px;
    cursor: pointer;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.player-mode-switch__button.is-active {
    color: #ffffff;
    background: #7e8f52;
    border-color: #7e8f52;
}

.player-mode-switch__button:disabled {
    color: #a8adb3;
    background: #f3f3f0;
    cursor: not-allowed;
    opacity: 0.55;
}


/* =========================================================
   Video / audio stage
   ========================================================= */

.player-stage {
    position: relative;
    width: 100%;
    background: #000000;
}

.player-stage__video {
    position: relative;
    width: 100%;
    background: #000000;
}

.player-video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000000;
}

.player-video-frame #lesson-youtube-player,
.player-video-frame iframe {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: none !important;
    border: 0;
}

.player-stage__audio {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    background: #000000;
}

.player-stage__video.is-hidden,
.player-stage__audio.is-hidden {
    display: none;
}

.player-audio-cover {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.player-audio-cover--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7d8e53;
    background: #ffffff;
    font-size: 48px;
}

.player-unavailable {
    display: grid;
    place-items: center;
    align-content: center;
    min-height: 300px;
    gap: 10px;
    padding: 30px;
    color: #6f7782;
    background: #f5f5f1;
    text-align: center;
}

.player-unavailable i {
    color: #7e8f52;
    font-size: 30px;
}

.player-unavailable p {
    margin: 0;
}


/* =========================================================
   Player information
   ========================================================= */

.player-content {
    background: #ffffff;
}

.player-info {
    padding: 20px 24px 11px;
    text-align: right;
    direction: rtl;
}

.player-info__series {
    display: inline-block;
    margin-bottom: 5px;
    color: #79894e;
    font-size: 11px;
    font-weight: 700;
}

.player-info__series:hover {
    color: #64733e;
}

.player-info h1 {
    max-width: 900px;
    margin: 0;
    color: #344156;
    font-size: clamp(18px, 2vw, 25px);
    font-weight: 700;
    line-height: 1.65;
}

.player-info__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px 16px;
    margin-top: 10px;
    color: #89909a;
    font-size: 10px;
}

.player-info__meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.player-info__meta i {
    color: #839256;
}


/* =========================================================
   Playback controls
   ========================================================= */

.player-controls {
    padding: 7px 24px 22px;
    border-top: 1px solid #f0eee9;
    direction: rtl;
}

.player-progress {
    width: 100%;
}

.player-progress input {
    display: block;
    width: 100%;
    height: 5px;
    margin: 0;
    accent-color: #7e8f52;
    cursor: pointer;
    direction: ltr;
}

.player-progress__time {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    color: #8a919a;
    font-size: 9px;
    direction: ltr;
}

.player-controls__main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-top: 7px;
}

.player-play-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 48px;
    padding: 0;
    color: #ffffff;
    background: #7e8f52;
    border: 0;
    border-radius: 25px;
    cursor: pointer;
    font-size: 17px;
    box-shadow: 0 6px 16px rgba(126, 143, 82, 0.2);
    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.player-play-button:hover {
    background: #708047;
    transform: translateY(-1px);
}

.player-control-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 43px;
    height: 43px;
    padding: 0;
    color: #435064;
    background: #f4f5f1;
    border: 1px solid #e7e9e1;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
}

.player-control-button span {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 8px;
    font-weight: 800;
}


/* Secondary controls */

.player-controls__secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-top: 14px;
}


/* Volume */

.player-volume {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 245px;
    min-height: 39px;
    padding: 4px 9px;
    color: #485467;
    background: #f7f7f4;
    border: 1px solid #e7e7e1;
    border-radius: 10px;
    direction: rtl;
}

.player-volume__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 29px;
    height: 29px;
    flex: 0 0 29px;
    padding: 0;
    color: #6f7f48;
    background: transparent;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    font-size: 13px;
}

.player-volume__button:hover {
    background: #ecefe5;
}

.player-volume input {
    width: 140px;
    min-width: 80px;
    margin: 0;
    accent-color: #7e8f52;
    cursor: pointer;
    direction: ltr;
}

.player-volume__value {
    width: 34px;
    flex: 0 0 34px;
    color: #7d848d;
    font-size: 9px;
    text-align: center;
    direction: ltr;
}

.player-speed {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #747c87;
    font-size: 10px;
}

.player-speed select {
    min-height: 35px;
    padding: 5px 9px;
    color: #455164;
    background: #f7f7f4;
    border: 1px solid #e5e6df;
    border-radius: 8px;
    outline: 0;
    font: inherit;
    cursor: pointer;
    direction: ltr;
}


/* =========================================================
   Sidebar
   ========================================================= */

.lesson-sidebar__inner {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e8e6df;
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(48, 58, 70, 0.055);
}

@media (min-width: 1001px) {
    .lesson-sidebar__inner {
        position: sticky;
        top: 18px;
        display: flex;
        flex-direction: column;
        max-height: calc(100vh - 36px);
    }
}

.lesson-sidebar__header {
    padding: 18px 18px 14px;
    border-bottom: 1px solid #efede8;
}

.lesson-sidebar__eyebrow {
    margin: 0 0 4px;
    color: #829153;
    font-size: 9px;
    font-weight: 700;
}

.lesson-sidebar__series-title {
    display: block;
    color: #354257;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.65;
}

.lesson-sidebar__series-title:hover {
    color: #6f7f49;
}

.lesson-sidebar__progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
    color: #92979e;
    font-size: 9px;
}

.lesson-sidebar__navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    padding: 10px 12px;
    border-bottom: 1px solid #efede8;
}

.lesson-sidebar__nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    padding: 5px 9px;
    color: #526071;
    background: #f6f6f3;
    border-radius: 8px;
    font-size: 9px;
    font-weight: 700;
    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.lesson-sidebar__nav:hover {
    color: #ffffff;
    background: #7e8f52;
}

.lesson-sidebar__nav.is-disabled {
    color: #adb1b6;
    background: #f7f7f5;
    cursor: default;
}

.lesson-sidebar__section-heading {
    padding: 12px 15px 8px;
}

.lesson-sidebar__section-heading > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.lesson-sidebar__section-heading span {
    color: #4a5668;
    font-size: 11px;
    font-weight: 700;
}

.lesson-sidebar__section-heading strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 27px;
    height: 27px;
    padding-inline: 6px;
    color: #75854b;
    background: #eff2e8;
    border-radius: 8px;
    font-size: 9px;
}

.lesson-sidebar__lessons {
    min-height: 0;
    padding: 0 9px 10px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #c8ccc0 transparent;
}

.lesson-sidebar-item {
    display: grid;
    grid-template-columns:
        30px
        minmax(0, 1fr)
        auto;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 10px 8px;
    color: inherit;
    border-top: 1px solid #f0eee9;
    border-radius: 8px;
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.lesson-sidebar-item:first-child {
    border-top-color: transparent;
}

.lesson-sidebar-item:hover {
    background: #f7f8f4;
}

.lesson-sidebar-item.is-active {
    background: #f0f3e8;
}

.lesson-sidebar-item__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 29px;
    height: 29px;
    color: #778092;
    background: #f3f4f1;
    border-radius: 8px;
    font-size: 9px;
    font-weight: 700;
}

.lesson-sidebar-item.is-active
.lesson-sidebar-item__number {
    color: #ffffff;
    background: #7e8f52;
}

.lesson-sidebar-item__content {
    min-width: 0;
}

.lesson-sidebar-item__content strong {
    display: -webkit-box;
    overflow: hidden;
    color: #445164;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.lesson-sidebar-item.is-active
.lesson-sidebar-item__content strong {
    color: #526236;
}

.lesson-sidebar-item__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 8px;
    margin-top: 4px;
    color: #989da4;
    font-size: 7.5px;
}

.lesson-sidebar-item__meta span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.lesson-sidebar-item__playing {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 23px;
    height: 23px;
    color: #76874a;
    font-size: 8px;
}


/* =========================================================
   Lesson tabs
   ========================================================= */

.lesson-tabs {
    margin-top: 18px;
    direction: rtl;
}

.lesson-tabs__nav {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px;
    background: #eceee8;
    border-radius: 12px;
}

.lesson-tabs__nav button {
    flex: 1;
    min-height: 42px;
    padding: 0 14px;
    color: #68717d;
    background: transparent;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
}

.lesson-tabs__nav button.is-active {
    color: #667741;
    background: #ffffff;
    box-shadow: 0 2px 7px rgba(38, 48, 60, 0.055);
}

.lesson-tab-panel {
    margin-top: 10px;
    padding: 23px;
    background: #ffffff;
    border: 1px solid #e8e6df;
    border-radius: 14px;
}

.lesson-tab-panel h2 {
    margin: 0 0 16px;
    color: #354257;
    font-size: 18px;
}

.lesson-metadata {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    margin: 0;
    background: #eeece7;
    border: 1px solid #eeece7;
    border-radius: 10px;
}

.lesson-metadata > div {
    padding: 13px 15px;
    background: #fafaf8;
}

.lesson-metadata dt {
    margin-bottom: 4px;
    color: #8c929a;
    font-size: 9px;
}

.lesson-metadata dd {
    margin: 0;
    color: #4d596a;
    font-size: 11px;
    line-height: 1.8;
}

.lesson-metadata a {
    color: #667844;
}

.lesson-related-series {
    margin-top: 20px;
}

.lesson-related-series h3 {
    margin: 0 0 10px;
    color: #4d5869;
    font-size: 13px;
}

.lesson-related-series > div {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.lesson-related-series a {
    padding: 6px 10px;
    color: #647440;
    background: #f2f4eb;
    border-radius: 7px;
    font-size: 10px;
}

.lesson-placeholder {
    padding: 38px 18px;
    color: #858b93;
    background: #fafaf8;
    border-radius: 10px;
    text-align: center;
}


/* =========================================================
   Medium screens
   ========================================================= */

@media (max-width: 1180px) {
    .lesson-workspace {
        grid-template-columns:
            minmax(270px, 310px)
            minmax(0, 1fr);
        gap: 16px;
    }

    .player-info {
        padding-inline: 20px;
    }

    .player-controls {
        padding-inline: 20px;
    }
}


/* =========================================================
   Tablet and mobile
   ========================================================= */

@media (max-width: 1000px) {
    .lesson-workspace {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .lesson-main,
    .lesson-sidebar {
        width: 100%;
    }

    .lesson-main {
        order: 1;
    }

    .lesson-sidebar {
        order: 2;
    }

    .lesson-sidebar__inner {
        position: static;
        max-height: none;
    }

    .lesson-sidebar__lessons {
        max-height: 360px;
    }
}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 700px) {
    .lesson-page {
        padding: 10px 0 46px;
    }

    .lesson-page__container {
        padding-inline: 10px;
    }

    .lesson-breadcrumbs {
        flex-wrap: nowrap;
        gap: 5px;
        margin-bottom: 9px;
        overflow: hidden;
        white-space: nowrap;
        font-size: 8px;
    }

    .lesson-breadcrumbs span:last-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .lesson-player-card {
        overflow: hidden;
        border-radius: 12px;
        box-shadow: none;
    }

    .player-mode-switch {
        justify-content: flex-start;
        padding: 7px 8px;
    }

    .player-mode-switch__button {
        min-width: 78px;
        min-height: 32px;
        padding: 4px 10px;
        font-size: 9px;
    }

    .player-video-frame {
        width: 100%;
        aspect-ratio: 16 / 9;
    }

    .player-video-frame #lesson-youtube-player,
    .player-video-frame iframe {
        width: 100% !important;
        height: 100% !important;
    }

    .player-stage__audio {
        min-height: 0;
        padding: 0;
    }

    .player-audio-cover {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }

    .player-info {
        padding: 13px 13px 8px;
    }

    .player-info__series {
        margin-bottom: 3px;
        font-size: 8px;
    }

    .player-info h1 {
        font-size: 13px;
        line-height: 1.6;
    }

    .player-info__meta {
        gap: 5px 10px;
        margin-top: 7px;
        font-size: 7.5px;
    }

    .player-controls {
        padding: 6px 13px 14px;
    }

    .player-progress__time {
        font-size: 8px;
    }

    .player-controls__main {
        gap: 22px;
        margin-top: 5px;
    }

    .player-control-button {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }

    .player-control-button span {
        font-size: 7px;
    }

    .player-play-button {
        width: 66px;
        height: 42px;
        font-size: 15px;
    }

    .player-controls__secondary {
        display: grid;
        grid-template-columns:
            minmax(0, 1fr)
            auto;
        gap: 7px;
        margin-top: 10px;
    }

    .player-volume {
        grid-column: 1 / -1;
        width: 100%;
        min-width: 0;
        min-height: 36px;
        gap: 6px;
        padding: 3px 7px;
    }

    .player-volume__button {
        width: 27px;
        height: 27px;
        flex-basis: 27px;
        font-size: 11px;
    }

    .player-volume input {
        width: auto;
        min-width: 0;
        flex: 1;
    }

    .player-volume__value {
        width: 30px;
        flex-basis: 30px;
        font-size: 8px;
    }

    .player-speed {
        font-size: 8px;
    }

    .player-speed select {
        min-height: 31px;
        padding: 4px 6px;
        font-size: 8px;
    }

    .lesson-tabs {
        margin-top: 12px;
    }

    .lesson-tabs__nav {
        padding: 4px;
    }

    .lesson-tabs__nav button {
        min-height: 36px;
        padding-inline: 8px;
        font-size: 9px;
    }

    .lesson-tab-panel {
        margin-top: 8px;
        padding: 15px 12px;
    }

    .lesson-tab-panel h2 {
        margin-bottom: 12px;
        font-size: 15px;
    }

    .lesson-metadata {
        grid-template-columns: 1fr;
    }

    .lesson-sidebar__inner {
        border-radius: 12px;
    }

    .lesson-sidebar__header {
        padding: 13px 13px 10px;
    }

    .lesson-sidebar__series-title {
        font-size: 12px;
    }

    .lesson-sidebar__progress {
        margin-top: 7px;
        font-size: 8px;
    }

    .lesson-sidebar__navigation {
        padding: 8px 9px;
    }

    .lesson-sidebar__nav {
        min-height: 33px;
        font-size: 8px;
    }

    .lesson-sidebar__section-heading {
        padding: 10px 11px 6px;
    }

    .lesson-sidebar__lessons {
        max-height: 310px;
        padding-inline: 7px;
    }

    .lesson-sidebar-item {
        grid-template-columns:
            27px
            minmax(0, 1fr)
            auto;
        gap: 7px;
        padding: 8px 6px;
    }

    .lesson-sidebar-item__number {
        width: 26px;
        height: 26px;
        font-size: 8px;
    }

    .lesson-sidebar-item__content strong {
        font-size: 9px;
    }

    .lesson-sidebar-item__meta {
        font-size: 7px;
    }
}


/* Extra small phones */

@media (max-width: 390px) {
    .lesson-page__container {
        padding-inline: 7px;
    }

    .player-info h1 {
        font-size: 12px;
    }

    .player-controls__main {
        gap: 17px;
    }

    .lesson-tabs__nav button {
        padding-inline: 6px;
        font-size: 8px;
    }
}

/* =========================================================
   MingCute seek buttons
   ========================================================= */

.player-seek-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    min-width: 42px;
    height: 42px;

    padding: 0;

    color: #425064;
    background: transparent;

    border: 0;
    border-radius: 50%;

    cursor: pointer;

    transition:
        background-color 0.18s ease,
        transform 0.18s ease;
}

.player-seek-button:hover {
    background: #f0f2e9;
    transform: translateY(-1px);
}

.player-seek-button img {
    display: block;

    width: 30px;
    height: 30px;

    object-fit: contain;
}

@media (max-width: 700px) {
    .player-seek-button {
        width: 36px;
        min-width: 36px;
        height: 36px;
    }

    .player-seek-button img {
        width: 27px;
        height: 27px;
    }
}

@media (max-width: 390px) {
    .player-seek-button {
        width: 34px;
        min-width: 34px;
        height: 34px;
    }

    .player-seek-button img {
        width: 25px;
        height: 25px;
    }
}


/* =========================================================
   Player control colors
   ========================================================= */

/* Play button - same control color as seek/navigation */
.player-play-button {
    color: #ffffff;
    background: #425064;
    box-shadow: 0 5px 14px rgba(66, 80, 100, 0.16);
}

.player-play-button:hover {
    color: #ffffff;
    background: #354257;
}


/* Volume button - same control color */
.player-volume__button {
    color: #425064;
}

.player-volume__button:hover {
    color: #354257;
    background: #f0f2e9;
}


/* Video / Audio switch */

.player-mode-switch__button {
    color: #747c87;
}

.player-mode-switch__button.is-active {
    color: #ffffff;
    background: #425064;
}


/* Active video = YouTube red */
.player-mode-switch__button[data-player-mode="video"].is-active {
    color: #ffffff;
    background: #ff0000;
}

.player-mode-switch__button[data-player-mode="video"].is-active:hover {
    background: #cc0000;
}


/* Active audio remains neutral */
.player-mode-switch__button[data-player-mode="audio"].is-active {
    color: #ffffff;
    background: #425064;
}


/* YouTube video switch - unified red */
.player-mode-switch__button[data-player-mode="video"].is-active {
    color: #ffffff;
    background: #ff0000;
    border-color: #ff0000;
    box-shadow: none;
}

.player-mode-switch__button[data-player-mode="video"].is-active:hover {
    color: #ffffff;
    background: #e60000;
    border-color: #e60000;
}


/* =========================================================
   Compact playback speed
   ========================================================= */

.player-speed--compact {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 42px;
    height: 36px;

    padding: 0;

    color: #425064;
}

.player-speed--compact select {
    width: 42px;
    height: 34px;

    margin: 0;
    padding: 0;

    color: #425064;
    background: transparent;

    border: 0;
    border-radius: 0;

    outline: none;
    box-shadow: none;

    appearance: none;
    -webkit-appearance: none;

    cursor: pointer;

    font: inherit;
    font-size: 10px;
    font-weight: 700;

    text-align: center;
    text-align-last: center;

    direction: ltr;
}

.player-speed--compact select:hover {
    color: #718245;
    background: #f0f2e9;
    border-radius: 8px;
}

.player-speed--compact select:focus {
    outline: none;
    box-shadow: none;
}

.player-speed--compact select:focus-visible {
    outline: 2px solid rgba(66, 80, 100, 0.18);
    outline-offset: 2px;
    border-radius: 8px;
}

@media (max-width: 700px) {
    .player-speed--compact {
        min-width: 34px;
        height: 34px;
    }

    .player-speed--compact select {
        width: 34px;
        height: 32px;

        font-size: 8px;
    }
}

@media (max-width: 390px) {
    .player-speed--compact {
        min-width: 32px;
    }

    .player-speed--compact select {
        width: 32px;
        font-size: 8px;
    }
}


/* =========================================================
   Final player control proportions
   ========================================================= */

/* Circular play button */
.player-play-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 56px;
    height: 56px;
    min-width: 56px;

    padding: 0;

    color: #ffffff;
    background: #425064;

    border: 0;
    border-radius: 50%;

    box-shadow: 0 6px 16px rgba(66, 80, 100, 0.18);

    cursor: pointer;

    font-size: 17px;

    transition:
        background-color 0.18s ease,
        transform 0.18s ease;
}

.player-play-button:hover {
    color: #ffffff;
    background: #354257;
    transform: translateY(-1px);
}


/* Speed - same visual weight as the seek controls */
.player-speed--compact {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    min-width: 42px;
    height: 42px;

    padding: 0;
}

.player-speed--compact select {
    display: block;

    width: 42px;
    height: 42px;

    margin: 0;
    padding: 0;

    color: #425064;
    background: transparent;

    border: 0;
    border-radius: 50%;

    outline: 0;
    box-shadow: none;

    appearance: none;
    -webkit-appearance: none;

    cursor: pointer;

    font: inherit;
    font-size: 11px;
    font-weight: 800;

    text-align: center;
    text-align-last: center;

    direction: ltr;
}

.player-speed--compact select:hover {
    color: #718245;
    background: #f0f2e9;
}

.player-speed--compact select:focus,
.player-speed--compact select:focus-visible {
    outline: 0;
    box-shadow: none;
}


/* Mobile */
@media (max-width: 700px) {
    .player-play-button {
        width: 44px;
        min-width: 44px;
        height: 44px;

        font-size: 13px;
    }

    .player-speed--compact {
        width: 36px;
        min-width: 36px;
        height: 36px;
    }

    .player-speed--compact select {
        width: 36px;
        height: 36px;
        font-size: 9px;
    }
}


/* Small phones */
@media (max-width: 390px) {
    .player-play-button {
        width: 42px;
        min-width: 42px;
        height: 42px;
    }

    .player-speed--compact,
    .player-speed--compact select {
        width: 34px;
        min-width: 34px;
        height: 34px;
    }

    .player-speed--compact select {
        font-size: 8px;
    }
}


/* =========================================================
   Lesson metadata - modern information cards
   ========================================================= */

.lesson-metadata {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;

    margin: 0;
    padding: 0;

    background: transparent;
    border: 0;
}

.lesson-meta-card {
    min-width: 0;
    padding: 13px 14px;

    background: #ffffff;

    border: 1px solid #e7e6e0;
    border-radius: 11px;

    transition:
        border-color 0.18s ease,
        background-color 0.18s ease;
}

.lesson-meta-card:hover {
    border-color: #d9ddce;
    background: #fcfcfa;
}

.lesson-meta-card dt {
    display: flex;
    align-items: center;
    gap: 6px;

    margin: 0 0 6px;

    color: #8b929b;

    font-size: 8px;
    font-weight: 600;
}

.lesson-meta-card dt i {
    color: #7f9050;
    font-size: 9px;
}

.lesson-meta-card dd {
    min-width: 0;

    margin: 0;

    color: #465266;

    font-size: 10px;
    font-weight: 700;
    line-height: 1.7;
}

.lesson-meta-card dd a {
    color: #667842;
}

.lesson-meta-card dd a:hover {
    color: #526331;
}


/* YouTube source */

.lesson-meta-card--source {
    grid-column: span 1;
}

.lesson-source-link {
    display: inline-flex !important;
    align-items: center;
    gap: 7px;

    max-width: 100%;

    color: #425064 !important;
}

.lesson-source-link img {
    display: block;

    width: 48px;
    height: auto;

    flex: 0 0 auto;

    object-fit: contain;
}

.lesson-source-link span {
    overflow: hidden;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.lesson-source-link > i {
    flex: 0 0 auto;

    color: #89919b;

    font-size: 8px;
}


/* Mobile */

@media (max-width: 700px) {
    .lesson-metadata {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .lesson-meta-card {
        padding: 10px 11px;
        border-radius: 9px;
    }

    .lesson-meta-card dt {
        margin-bottom: 4px;
        font-size: 7px;
    }

    .lesson-meta-card dt i {
        font-size: 8px;
    }

    .lesson-meta-card dd {
        font-size: 8px;
    }

    .lesson-source-link {
        gap: 5px;
    }

    .lesson-source-link img {
        width: 40px;
    }

    .lesson-source-link > i {
        font-size: 7px;
    }
}

@media (max-width: 390px) {
    .lesson-metadata {
        grid-template-columns: 1fr 1fr;
    }
}


/* =========================================================
   Lesson typography refinement
   ========================================================= */

/* Progress color follows the main player controls */
.player-progress input {
    accent-color: #425064;
}


/* Desktop / large screens */

.lesson-watch-info h1 {
    font-size: clamp(21px, 1.7vw, 27px);
}

.lesson-watch-info__series {
    font-size: 11px;
}

.lesson-watch-info__meta {
    font-size: 10px;
}

.lesson-playlist__header > p {
    font-size: 10px;
}

.lesson-playlist__header > a {
    font-size: 17px;
}

.lesson-playlist__position {
    font-size: 9px;
}

.lesson-playlist-item__content strong {
    font-size: 11px;
    line-height: 1.6;
}

.lesson-playlist-item__meta {
    font-size: 8px;
}

.lesson-meta-card dt {
    font-size: 10px;
}

.lesson-meta-card dd {
    font-size: 12px;
}

.lesson-tabs__nav button {
    font-size: 12px;
}

.lesson-tab-panel h2 {
    font-size: 20px;
}


/* Mobile */

@media (max-width: 700px) {

    .lesson-breadcrumbs {
        font-size: 9px;
    }

    .lesson-watch-info__series {
        font-size: 9px;
    }

    .lesson-watch-info h1 {
        font-size: 15px;
        line-height: 1.65;
    }

    .lesson-watch-info__meta {
        font-size: 9px;
    }

    .lesson-tabs__nav button {
        font-size: 10px;
    }

    .lesson-tab-panel h2 {
        font-size: 17px;
    }

    .lesson-meta-card dt {
        font-size: 9px;
    }

    .lesson-meta-card dd {
        font-size: 10px;
        line-height: 1.8;
    }

    .lesson-playlist__header > p {
        font-size: 9px;
    }

    .lesson-playlist__header > a {
        font-size: 14px;
    }

    .lesson-playlist__position {
        font-size: 8px;
    }

    .lesson-playlist-item__content strong {
        font-size: 10px;
        line-height: 1.6;
    }

    .lesson-playlist-item__meta {
        font-size: 7.5px;
    }

    .lesson-source-link span {
        font-size: 10px;
    }
}


/* Very small phones */

@media (max-width: 390px) {

    .lesson-watch-info h1 {
        font-size: 14px;
    }

    .lesson-meta-card dt {
        font-size: 8.5px;
    }

    .lesson-meta-card dd {
        font-size: 9.5px;
    }

    .lesson-playlist-item__content strong {
        font-size: 9.5px;
    }
}


/* =========================================================
   YouTube source card - refined RTL
   ========================================================= */

.lesson-meta-card--source {
    min-width: 0;
}

.lesson-meta-card--source dd {
    margin-top: 2px;
}

.lesson-source-link {
    display: grid !important;

    grid-template-columns:
        auto
        minmax(0, 1fr)
        auto;

    align-items: center;

    width: 100%;
    min-height: 42px;

    gap: 9px;

    padding: 5px 8px;

    color: #425064 !important;
    background: #fafaf8;

    border: 1px solid #ecebe5;
    border-radius: 9px;

    direction: rtl;

    text-decoration: none;

    transition:
        background-color 0.18s ease,
        border-color 0.18s ease,
        transform 0.18s ease;
}

.lesson-source-link:hover {
    color: #354257 !important;
    background: #f5f6f1;
    border-color: #dfe3d6;
    transform: translateY(-1px);
}


/* YouTube logo = first visual element on the right */

.lesson-source-link img {
    grid-column: 1;

    display: block;

    width: 64px;
    height: auto;

    margin: 0;

    object-fit: contain;
}


/* Text */

.lesson-source-link span {
    grid-column: 2;

    min-width: 0;

    overflow: hidden;

    color: #4c5869;

    font-size: 10px;
    font-weight: 700;

    line-height: 1.5;

    text-align: right;

    white-space: nowrap;
}


/* External-link icon */

.lesson-source-link > i {
    grid-column: 3;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 25px;
    height: 25px;

    flex: 0 0 25px;

    color: #7c8792;

    background: #f0f1ed;

    border-radius: 7px;

    font-size: 8px;
}


/* Mobile */

@media (max-width: 700px) {
    .lesson-source-link {
        min-height: 40px;
        gap: 7px;
        padding: 4px 7px;
    }

    .lesson-source-link img {
        width: 52px;
    }

    .lesson-source-link span {
        font-size: 9px;
    }

    .lesson-source-link > i {
        width: 22px;
        height: 22px;
        flex-basis: 22px;
        font-size: 7px;
    }
}


/* =========================================================
   YouTube source - RTL reading order
   ========================================================= */

.lesson-source-link {
    display: flex !important;

    align-items: center;
    justify-content: flex-start;

    gap: 9px;

    width: 100%;
    min-height: 42px;

    padding: 5px 9px;

    color: #425064 !important;
    background: #fafaf8;

    border: 1px solid #ecebe5;
    border-radius: 9px;

    direction: rtl;
}

.lesson-source-link span {
    order: 1;

    flex: 0 0 auto;

    color: #425064;

    font-size: 12px;
    font-weight: 800;

    white-space: nowrap;
}

.lesson-source-link img {
    order: 2;

    display: block;

    width: 64px;
    height: auto;

    flex: 0 0 auto;

    margin: 0;

    object-fit: contain;
}

.lesson-source-link > i {
    order: 3;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 25px;
    height: 25px;

    flex: 0 0 25px;

    color: #7b8793;

    background: #f0f1ed;

    border-radius: 7px;

    font-size: 8px;
}

@media (max-width: 700px) {
    .lesson-source-link {
        min-height: 42px;
        gap: 7px;
        padding: 5px 8px;
    }

    .lesson-source-link span {
        font-size: 10px;
    }

    .lesson-source-link img {
        width: 52px;
    }

    .lesson-source-link > i {
        width: 22px;
        height: 22px;
        flex-basis: 22px;
        font-size: 7px;
    }
}


/* =========================================================
   YouTube source link - pin external link icon to edge
   ========================================================= */

.lesson-source-link {
    position: relative;
    justify-content: flex-start;
}

.lesson-source-link > i {
    margin-inline-start: auto;
}


/* =========================================================
   Playlist search
   ========================================================= */

.lesson-playlist__header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    direction: rtl;
}

.lesson-playlist__heading {
    min-width: 0;
}

.lesson-playlist__search-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;
    min-width: 34px;

    padding: 0;

    color: #425064;
    background: #f4f5f1;

    border: 1px solid #e5e6df;
    border-radius: 50%;

    cursor: pointer;

    font-size: 11px;

    transition:
        color 0.18s ease,
        background-color 0.18s ease,
        border-color 0.18s ease;
}

.lesson-playlist__search-button:hover {
    color: #ffffff;
    background: #425064;
    border-color: #425064;
}

.lesson-playlist__search {
    display: flex;
    align-items: center;

    gap: 7px;

    height: 38px;

    margin-top: 10px;
    padding: 0 10px;

    color: #7d858f;
    background: #f7f7f4;

    border: 1px solid #e4e5df;
    border-radius: 9px;

    direction: rtl;
}

.lesson-playlist__search[hidden] {
    display: none !important;
}

.lesson-playlist__search > i {
    flex: 0 0 auto;

    color: #7e8f50;

    font-size: 10px;
}

.lesson-playlist__search input {
    width: 100%;
    min-width: 0;

    padding: 0;

    color: #425064;
    background: transparent;

    border: 0;
    outline: 0;

    font: inherit;
    font-size: 9px;
}

.lesson-playlist__search input::placeholder {
    color: #9aa0a7;
}

.lesson-playlist__search > button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 24px;
    height: 24px;
    min-width: 24px;

    padding: 0;

    color: #8b9299;
    background: transparent;

    border: 0;
    border-radius: 50%;

    cursor: pointer;
}

.lesson-playlist__search > button:hover {
    color: #425064;
    background: #eceee8;
}

/* Mobile */

@media (max-width: 700px) {
    .lesson-playlist__search-button {
        width: 32px;
        height: 32px;
        min-width: 32px;

        font-size: 10px;
    }

    .lesson-playlist__search {
        height: 36px;
        margin-top: 8px;
        padding-inline: 9px;
    }

    .lesson-playlist__search input {
        font-size: 9px;
    }
}




/* =========================================================
   Desktop player alignment
   ========================================================= */

@media (min-width: 901px) {

    /*
     * The mode switch no longer consumes vertical space.
     * This makes the video start exactly at the top of the
     * playlist column.
     */
    .player-stage {
        position: relative;
    }

    .player-mode-switch {
        position: absolute;

        top: 10px;
        left: 50%;

        z-index: 20;

        width: max-content;

        margin: 0;

        padding: 3px;

        transform: translateX(-50%);

        background: rgba(245, 246, 242, 0.94);

        border: 1px solid rgba(224, 226, 218, 0.95);
        border-radius: 18px;

        box-shadow: 0 4px 14px rgba(38, 48, 60, 0.10);

        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    .player-mode-switch__button {
        min-width: 62px;
        min-height: 27px;

        padding: 3px 9px;

        gap: 5px;

        font-size: 8px;

        border-radius: 15px;
    }

    /*
     * Keep the video itself untouched at 16:9.
     */
    .player-stage__video {
        width: 100%;
    }

    .player-video-frame {
        width: 100%;
        aspect-ratio: 16 / 9;
    }
}


/* =========================================================
   Large desktop refinement
   ========================================================= */

@media (min-width: 1400px) {

    .player-mode-switch {
        top: 11px;
        padding: 3px;
    }

    .player-mode-switch__button {
        min-width: 66px;
        min-height: 28px;

        font-size: 8px;
    }
}


/* =========================================================
   Playlist header and active item refinement
   ========================================================= */

@media (min-width: 901px) {

    .lesson-playlist__header {
        padding: 13px 14px 11px;
    }

    .lesson-playlist__header-top {
        align-items: flex-start;
    }

    .lesson-playlist__heading > p {
        margin-bottom: 2px;
        color: #89965e;
        font-size: 9px;
        line-height: 1.4;
    }

    .lesson-playlist__heading > a {
        color: #344156;
        font-size: 16px;
        line-height: 1.5;
    }

    .lesson-playlist__position {
        margin-top: 6px;
        padding-top: 7px;

        border-top: 1px solid #eeeeea;

        color: #8a9199;
        font-size: 8px;
    }

    .lesson-playlist__position span:first-child {
        color: #667840;
        font-weight: 700;
    }


    /* Search button */
    .lesson-playlist__search-button {
        width: 35px;
        height: 35px;
        min-width: 35px;

        color: #425064;
        background: #f5f6f2;
        border-color: #e4e6df;
    }


    /* Playlist items */
    .lesson-playlist-item {
        position: relative;

        padding: 7px;

        border-radius: 9px;
    }

    .lesson-playlist-item.is-active {
        background: #edf0e7;
    }

    .lesson-playlist-item.is-active::before {
        content: "";

        position: absolute;

        top: 7px;
        right: 0;
        bottom: 7px;

        width: 3px;

        background: #7e9050;

        border-radius: 3px 0 0 3px;
    }

    .lesson-playlist-item__content strong {
        color: #344156;
    }

    .lesson-playlist-item.is-active
    .lesson-playlist-item__content strong {
        color: #5d7037;
    }

    .lesson-playlist-item__playing {
        color: #7b8e4c;
    }
}


/* =========================================================
   Series playlist cards - YouTube inspired
   ========================================================= */

@media (min-width: 1280px) {

    /*
     * Five playlist cards per row on large desktop.
     */
    .series-grid {
        grid-template-columns:
            repeat(5, minmax(0, 1fr));

        column-gap: 18px;
        row-gap: 34px;

        padding-top: 10px;
    }


    /*
     * Playlist card is intentionally lighter than
     * a conventional bordered card.
     */
    .series-card {
        position: relative;

        display: block;

        padding: 0;

        background: transparent;
        border: 0;
        border-radius: 0;

        overflow: visible;

        box-shadow: none;
    }


    /*
     * Thumbnail stack container.
     */
    .series-card__media {
        position: relative;

        z-index: 1;

        width: 100%;

        overflow: visible;

        isolation: isolate;
    }


    /*
     * First rear layer.
     */
    .series-card__media::before {
        content: "";

        position: absolute;

        z-index: -2;

        top: -9px;
        right: 6%;
        left: 6%;

        height: 12px;

        border-radius: 11px 11px 3px 3px;

        background:
            linear-gradient(
                180deg,
                #d9dfcf 0%,
                #e9ede3 100%
            );

        border: 1px solid #dfe4d7;

        pointer-events: none;
    }


    /*
     * Second rear layer.
     */
    .series-card__media::after {
        content: "";

        position: absolute;

        z-index: -1;

        top: -5px;
        right: 3%;
        left: 3%;

        height: 11px;

        border-radius: 11px 11px 3px 3px;

        background:
            linear-gradient(
                180deg,
                #ece9df 0%,
                #f3f2ed 100%
            );

        border: 1px solid #e7e4dc;

        pointer-events: none;
    }


    /*
     * Main playlist thumbnail.
     */
    .series-card__media img {
        position: relative;

        z-index: 2;

        display: block;

        width: 100%;

        aspect-ratio: 16 / 9;

        object-fit: cover;

        border-radius: 13px;
    }


    /*
     * Keep the playlist count clearly attached
     * to the thumbnail.
     */
    .series-card__count {
        z-index: 4;
    }


    /*
     * Compact YouTube-like typography for a
     * denser five-column grid.
     */
    .series-card__body {
        padding-top: 11px;
    }

    .series-card h2 {
        display: -webkit-box;

        margin: 0;

        overflow: hidden;

        font-size: 16px;
        line-height: 1.65;

        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }


    .series-card__description {
        margin-top: 5px;

        font-size: 11px;
        line-height: 1.7;
    }


    .series-card__meta {
        margin-top: 7px;

        font-size: 11px;
    }


    /*
     * Subtle interaction: the rear plates move
     * slightly when the playlist is hovered.
     */
    .series-card:hover .series-card__media::before {
        transform: translateY(-2px);
    }

    .series-card:hover .series-card__media::after {
        transform: translateY(-1px);
    }
}


/* =========================================================
   Medium desktop / tablet
   ========================================================= */

@media (min-width: 901px) and (max-width: 1279px) {

    .series-grid {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));

        column-gap: 18px;
        row-gap: 30px;
    }

    .series-card__media {
        position: relative;
        overflow: visible;
        isolation: isolate;
    }

    .series-card__media::before {
        content: "";

        position: absolute;

        z-index: -2;

        top: -8px;
        right: 7%;
        left: 7%;

        height: 11px;

        border-radius: 10px 10px 3px 3px;

        background:
            linear-gradient(
                180deg,
                #d9dfcf,
                #e9ede3
            );

        border: 1px solid #dfe4d7;
    }

    .series-card__media::after {
        content: "";

        position: absolute;

        z-index: -1;

        top: -4px;
        right: 4%;
        left: 4%;

        height: 10px;

        border-radius: 10px 10px 3px 3px;

        background:
            linear-gradient(
                180deg,
                #ece9df,
                #f3f2ed
            );

        border: 1px solid #e7e4dc;
    }

    .series-card__media img {
        position: relative;
        z-index: 2;

        display: block;

        width: 100%;

        aspect-ratio: 16 / 9;

        object-fit: cover;

        border-radius: 12px;
    }
}


/* =========================================================
   Playlist thumbnail stack - refined
   ========================================================= */

@media (min-width: 901px) {

    .series-card__media {
        position: relative;
        isolation: isolate;
        overflow: visible;
    }

    /*
     * Rear plate
     */
    .series-card__media::before {
        content: "";

        position: absolute;

        z-index: -2;

        top: -7px;
        right: 5%;
        left: 5%;

        height: calc(100% + 7px);

        border-radius: 13px;

        background: #e5e9df;
        border: 1px solid #d9ded2;

        transform: translateY(4px);

        pointer-events: none;
    }


    /*
     * Middle plate
     */
    .series-card__media::after {
        content: "";

        position: absolute;

        z-index: -1;

        top: -4px;
        right: 2.5%;
        left: 2.5%;

        height: calc(100% + 4px);

        border-radius: 13px;

        background: #f0f1ed;
        border: 1px solid #e3e5df;

        transform: translateY(2px);

        pointer-events: none;
    }


    /*
     * Main thumbnail stays visually dominant.
     */
    .series-card__media img {
        position: relative;
        z-index: 2;

        display: block;

        width: 100%;
        aspect-ratio: 16 / 9;

        object-fit: cover;

        border-radius: 13px;
    }


    /*
     * Slightly stronger playlist depth on hover.
     */
    .series-card:hover
    .series-card__media::before {
        transform:
            translateY(6px)
            scaleX(0.96);
    }

    .series-card:hover
    .series-card__media::after {
        transform:
            translateY(3px)
            scaleX(0.985);
    }
}


/* =========================================================
   Global search page
   ========================================================= */

.site-search-page {
    padding: 42px 0 90px;
}

.site-search-header {
    max-width: 900px;
    margin-inline-start: auto;
    margin-bottom: 28px;
    text-align: right;
}

.site-search-header__eyebrow {
    margin: 0 0 5px;
    color: #7f9055;
    font-size: 13px;
    font-weight: 700;
}

.site-search-header h1 {
    margin: 0;
    color: #334156;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.45;
}

.site-search-header__summary {
    margin: 8px 0 0;
    color: #737c88;
    font-size: 14px;
    line-height: 1.9;
}

.site-search-header__summary strong {
    color: #53663a;
}


/* =========================================================
   Search form
   ========================================================= */

.site-search-form {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr) 62px;
    gap: 10px;

    width: 100%;
    margin-bottom: 32px;
    padding: 10px;

    direction: ltr;

    background: #fff;
    border: 1px solid #ebe8e2;
    border-radius: 20px;

    box-shadow:
        0 10px 30px rgba(42, 51, 63, 0.05);
}

.site-search-form__field,
.site-search-form__filter,
.site-search-form__submit {
    min-height: 58px;
}


/* Input */

.site-search-form__field {
    grid-column: 2;

    display: flex;
    align-items: center;
    gap: 11px;

    min-width: 0;
    padding: 0 18px;

    direction: rtl;

    background: #f7f8f5;
    border: 1px solid #e5e7e1;
    border-radius: 15px;

    transition:
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.site-search-form__field:focus-within {
    background: #fff;
    border-color: #aab68d;
}

.site-search-form__field svg {
    flex: 0 0 auto;

    width: 21px;
    height: 21px;

    fill: none;
    stroke: #8994a0;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.site-search-form__field input {
    width: 100%;
    min-width: 0;

    padding: 0;

    border: 0;
    outline: 0;

    color: #344156;
    background: transparent;

    font-size: 16px;
    line-height: 1.5;
}

.site-search-form__field input::placeholder {
    color: #98a0aa;
}


/* Filter */

.site-search-form__filter {
    grid-column: 1;

    position: relative;
}

.site-search-form__filter select {
    width: 100%;
    height: 100%;

    padding: 0 17px 0 40px;

    appearance: none;
    outline: 0;

    direction: rtl;

    color: #4d5a6c;
    background: #f7f8f5;

    border: 1px solid #e5e7e1;
    border-radius: 15px;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;
}

.site-search-form__filter::after {
    content: "";

    position: absolute;

    left: 17px;
    top: 50%;

    width: 7px;
    height: 7px;

    border-right: 2px solid #7c8794;
    border-bottom: 2px solid #7c8794;

    transform:
        translateY(-70%)
        rotate(45deg);

    pointer-events: none;
}


/* Submit */

.site-search-form__submit {
    grid-column: 3;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 0 13px;

    border: 0;
    border-radius: 15px;

    color: #fff;
    background: #7d914f;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.site-search-form__submit:hover {
    background: #6f8245;
    transform: translateY(-1px);
}

.site-search-form__submit svg {
    width: 22px;
    height: 22px;

    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.site-search-form__submit span {
    display: none;
}


/* =========================================================
   Search results
   ========================================================= */

.site-search-results {
    display: grid;
    gap: 24px;
}

.site-search-results__section {
    padding: 24px;

    background: #fff;
    border: 1px solid #ebe8e2;
    border-radius: 18px;
}

.site-search-results__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    margin-bottom: 17px;
    padding-bottom: 15px;

    border-bottom: 1px solid #efede8;
}

.site-search-results__heading p {
    margin: 0 0 3px;

    color: #87965c;
    font-size: 11px;
    font-weight: 700;
}

.site-search-results__heading h2 {
    margin: 0;

    color: #354257;
    font-size: 22px;
    line-height: 1.5;
}

.site-search-results__heading > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 40px;
    height: 40px;
    padding-inline: 9px;

    color: #6d7d48;
    background: #f1f3eb;

    border-radius: 11px;

    font-size: 13px;
    font-weight: 700;
}


/* Result list */

.site-search-results__list {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 9px;
}


/* Result */

.site-search-result {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 28px;
    align-items: center;
    gap: 12px;

    min-width: 0;
    min-height: 74px;

    padding: 10px 12px;

    direction: rtl;

    background: #fafaf8;
    border: 1px solid #efede8;
    border-radius: 13px;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.site-search-result:hover {
    background: #f5f6f1;
    border-color: #e0e4d8;
    transform: translateY(-1px);
}

.site-search-result__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;

    color: #718046;
    background: #eef1e7;

    border-radius: 12px;
}

.site-search-result__icon i {
    font-size: 14px;
}

.site-search-result__content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.site-search-result__content strong {
    display: -webkit-box;

    overflow: hidden;

    color: #354257;

    font-size: 14px;
    line-height: 1.75;
    font-weight: 700;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.site-search-result__content small {
    margin-top: 2px;

    color: #9299a2;
    font-size: 10px;
}

.site-search-result__series {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;

    margin-top: 4px;
}

.site-search-result__series span {
    overflow: hidden;

    max-width: 100%;

    color: #7a8757;
    font-size: 9px;
    line-height: 1.6;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.site-search-result__arrow {
    color: #8a959f;
    font-size: 12px;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.site-search-result:hover .site-search-result__arrow {
    color: #718046;
    transform: translateX(-2px);
}


/* =========================================================
   Empty search state
   ========================================================= */

.site-search-empty {
    display: flex;
    align-items: center;
    flex-direction: column;

    padding: 65px 24px;

    text-align: center;

    background: #fff;
    border: 1px solid #ebe8e2;
    border-radius: 18px;
}

.site-search-empty__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 58px;
    height: 58px;
    margin-bottom: 16px;

    color: #718046;
    background: #f0f2e9;

    border-radius: 16px;
}

.site-search-empty__icon i {
    font-size: 20px;
}

.site-search-empty h2 {
    margin: 0;

    color: #3d4a5e;
    font-size: 20px;
}

.site-search-empty p {
    max-width: 500px;

    margin: 8px 0 18px;

    color: #7f8791;
    font-size: 13px;
    line-height: 1.9;
}

.site-search-empty a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 40px;
    padding-inline: 17px;

    color: #657742;
    background: #f1f3eb;

    border-radius: 10px;

    font-size: 12px;
    font-weight: 700;
}


/* =========================================================
   Search responsive
   ========================================================= */

@media (max-width: 900px) {

    .site-search-page {
        padding: 28px 0 60px;
    }

    .site-search-header {
        margin-bottom: 22px;
    }

    .site-search-header h1 {
        font-size: 30px;
    }

    .site-search-form {
        grid-template-columns:
            minmax(0, 1fr) 56px;

        gap: 8px;
        padding: 8px;
        border-radius: 16px;
    }

    .site-search-form__field {
        grid-column: 1;
    }

    .site-search-form__filter {
        grid-column: 1;
        grid-row: 2;
    }

    .site-search-form__submit {
        grid-column: 2;
        grid-row: 1 / span 2;
    }

    .site-search-form__field,
    .site-search-form__filter,
    .site-search-form__submit {
        min-height: 50px;
    }

    .site-search-form__field {
        padding-inline: 13px;
    }

    .site-search-form__field input {
        font-size: 14px;
    }

    .site-search-form__filter select {
        font-size: 12px;
    }

    .site-search-results__section {
        padding: 17px 13px;
        border-radius: 14px;
    }

    .site-search-results__list {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 600px) {

    .site-search-header h1 {
        font-size: 26px;
    }

    .site-search-header__summary {
        font-size: 12px;
    }

    .site-search-form {
        margin-bottom: 22px;
    }

    .site-search-form__field svg {
        width: 19px;
        height: 19px;
    }

    .site-search-form__submit svg {
        width: 20px;
        height: 20px;
    }

    .site-search-results {
        gap: 14px;
    }

    .site-search-results__heading h2 {
        font-size: 19px;
    }

    .site-search-result {
        grid-template-columns: 38px minmax(0, 1fr) 20px;

        min-height: 66px;
        gap: 9px;

        padding: 8px 9px;
    }

    .site-search-result__icon {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }

    .site-search-result__content strong {
        font-size: 12px;
    }

    .site-search-result__series span {
        font-size: 8px;
    }

    .site-search-empty {
        padding: 48px 18px;
    }
}


/* =========================================================
   Search UI refinement - desktop + mobile
   ========================================================= */

/*
 * The search page should feel like one focused workspace,
 * not a collection of large separated blocks.
 */
.site-search-page {
    padding: 32px 0 78px;
}


/* =========================================================
   Header
   ========================================================= */

.site-search-header {
    max-width: 980px;
    margin-inline-start: auto;
    margin-bottom: 22px;

    text-align: right;
}

.site-search-header__eyebrow {
    margin-bottom: 4px;
}

.site-search-header h1 {
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.35;
}

.site-search-header__summary {
    margin-top: 5px;
    font-size: 14px;
}


/* =========================================================
   Search form
   ========================================================= */

.site-search-form {
    display: grid;

    /*
     * LTR is intentional here so the visual order is:
     *
     * filter | input | search button
     *
     * while each control itself remains RTL.
     */
    grid-template-columns:
        180px minmax(0, 1fr) 58px;

    grid-template-areas:
        "filter field submit";

    align-items: stretch;

    width: min(100%, 1480px);
    min-height: 76px;

    margin: 0 auto 30px;
    padding: 9px;

    direction: ltr;

    background: #fff;
    border: 1px solid #e9e6df;
    border-radius: 20px;

    box-shadow:
        0 8px 26px rgba(42, 51, 63, 0.045);
}


/* Input */

.site-search-form__field {
    grid-area: field;

    display: flex;
    align-items: center;

    min-width: 0;
    min-height: 58px;

    padding: 0 18px;

    direction: rtl;

    background: #f7f8f5;
    border: 1px solid #e4e7df;
    border-radius: 14px;
}

.site-search-form__field input {
    min-width: 0;
    font-size: 16px;
}

.site-search-form__field svg {
    width: 21px;
    height: 21px;

    flex: 0 0 auto;
}


/* Filter */

.site-search-form__filter {
    grid-area: filter;

    position: relative;

    min-width: 0;
    min-height: 58px;
}

.site-search-form__filter select {
    width: 100%;
    height: 100%;

    direction: rtl;

    font-size: 13px;
}


/* Search button */

.site-search-form__submit {
    grid-area: submit;

    width: 58px;
    min-height: 58px;

    padding: 0;

    border-radius: 14px;
}

.site-search-form__submit svg {
    width: 21px;
    height: 21px;
}


/* =========================================================
   Results
   ========================================================= */

.site-search-results {
    width: min(100%, 1480px);
    margin-inline: auto;

    gap: 20px;
}

.site-search-results__section {
    padding: 21px 22px;

    border-radius: 17px;
}

.site-search-results__heading {
    margin-bottom: 14px;
    padding-bottom: 13px;
}

.site-search-results__heading h2 {
    font-size: 21px;
}

.site-search-results__heading > span {
    min-width: 38px;
    height: 38px;
}


/* Result cards */

.site-search-results__list {
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 8px;
}

.site-search-result {
    min-height: 70px;

    grid-template-columns:
        42px minmax(0, 1fr) 24px;

    gap: 11px;

    padding: 9px 11px;

    border-radius: 12px;
}

.site-search-result__icon {
    width: 42px;
    height: 42px;

    border-radius: 11px;
}

.site-search-result__content strong {
    font-size: 13.5px;
    line-height: 1.7;
}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 900px) {

    .site-search-page {
        padding: 25px 0 58px;
    }

    .site-search-header {
        margin-bottom: 18px;
    }

    .site-search-header h1 {
        font-size: 29px;
    }

    .site-search-header__summary {
        font-size: 12px;
    }


    /*
     * Clean two-row mobile layout:
     *
     * ┌──────────────────────┬─────┐
     * │       search         │  🔍 │
     * ├────────────────────────────┤
     * │          filter            │
     * └────────────────────────────┘
     */
    .site-search-form {
        grid-template-columns:
            minmax(0, 1fr) 52px;

        grid-template-rows:
            50px 46px;

        grid-template-areas:
            "field submit"
            "filter filter";

        min-height: 0;

        margin-bottom: 22px;
        padding: 7px;

        gap: 7px;

        border-radius: 16px;
    }


    .site-search-form__field {
        min-height: 50px;
        padding-inline: 12px;

        border-radius: 12px;
    }

    .site-search-form__field input {
        font-size: 14px;
    }

    .site-search-form__field svg {
        width: 18px;
        height: 18px;
    }


    .site-search-form__filter {
        min-height: 46px;
    }

    .site-search-form__filter select {
        min-height: 46px;

        padding-inline: 13px 34px;

        border-radius: 11px;

        font-size: 12px;
    }

    .site-search-form__filter::after {
        left: 14px;
    }


    .site-search-form__submit {
        width: 52px;
        min-height: 50px;

        border-radius: 12px;
    }

    .site-search-form__submit svg {
        width: 20px;
        height: 20px;
    }


    .site-search-results {
        gap: 13px;
    }

    .site-search-results__section {
        padding: 15px 11px;
        border-radius: 14px;
    }

    .site-search-results__heading {
        margin-bottom: 11px;
        padding-bottom: 11px;
    }

    .site-search-results__heading h2 {
        font-size: 18px;
    }

    .site-search-results__heading p {
        font-size: 9px;
    }

    .site-search-results__heading > span {
        min-width: 34px;
        height: 34px;

        font-size: 11px;
        border-radius: 9px;
    }


    .site-search-results__list {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .site-search-result {
        min-height: 64px;

        grid-template-columns:
            36px minmax(0, 1fr) 18px;

        gap: 8px;

        padding: 8px;

        border-radius: 11px;
    }

    .site-search-result__icon {
        width: 36px;
        height: 36px;
        border-radius: 9px;
    }

    .site-search-result__icon i {
        font-size: 12px;
    }

    .site-search-result__content strong {
        font-size: 12px;
        line-height: 1.7;
    }

    .site-search-result__content small {
        font-size: 9px;
    }

    .site-search-result__series {
        margin-top: 2px;
    }

    .site-search-result__series span {
        font-size: 8px;
    }

    .site-search-result__arrow {
        font-size: 10px;
    }


    .site-search-empty {
        padding: 46px 16px;
        border-radius: 14px;
    }
}


/* =========================================================
   Very small phones
   ========================================================= */

@media (max-width: 380px) {

    .site-search-page {
        padding-top: 20px;
    }

    .site-search-header h1 {
        font-size: 26px;
    }

    .site-search-form {
        grid-template-columns:
            minmax(0, 1fr) 48px;
    }

    .site-search-form__submit {
        width: 48px;
    }

    .site-search-result__content strong {
        font-size: 11.5px;
    }
}


/* =========================================================
   Search header alignment - match Series page
   ========================================================= */

.site-search-header {
    max-width: 760px;

    /*
     * RTL:
     * inline-start = right
     * inline-end   = left
     *
     * Keep the header anchored to the right edge
     * of the site container, like the Series page.
     */
    margin-inline-start: 0;
    margin-inline-end: auto;

    text-align: right;
}

.site-search-header h1 {
    margin: 0;
}

.site-search-header__summary {
    margin-top: 8px;
}


/* Desktop spacing should follow the Series page rhythm */
@media (min-width: 901px) {

    .site-search-page {
        padding-top: 42px;
    }

    .site-search-header {
        margin-bottom: 28px;
    }
}


/* Mobile: use the full available width */
@media (max-width: 900px) {

    .site-search-header {
        max-width: none;

        margin-inline-start: 0;
        margin-inline-end: 0;

        text-align: right;
    }
}


/* =========================================================
   Load more - shared UX
   Used by series browsing and future search results
   ========================================================= */

.series-lessons__progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;

    margin: 24px auto 10px;

    color: #8a9199;

    font-size: 12px;
    line-height: 1.7;
    text-align: center;
}

.series-lessons__progress strong {
    color: #6f8048;
    font-weight: 700;
}


/* ---------------------------------------------------------
   Button wrapper
   --------------------------------------------------------- */

.series-lessons__load-more {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;

    margin: 0 auto 8px;
    padding-top: 2px;
}


/* ---------------------------------------------------------
   Main button
   --------------------------------------------------------- */

.series-load-more {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    min-width: 190px;
    min-height: 48px;

    padding: 0 20px;

    color: #667744;
    background: #ffffff;

    border: 1px solid #cfd7bf;
    border-radius: 13px;

    box-shadow:
        0 4px 14px rgba(48, 58, 70, 0.045);

    font-family: inherit;
    font-size: 13px;
    font-weight: 700;

    cursor: pointer;

    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}


/* Hover */

.series-load-more:hover:not(:disabled) {
    color: #ffffff;
    background: #7c8e52;
    border-color: #7c8e52;

    box-shadow:
        0 7px 18px rgba(48, 58, 70, 0.09);

    transform: translateY(-1px);
}


/* Active */

.series-load-more:active:not(:disabled) {
    transform: translateY(0);
}


/* Keyboard focus */

.series-load-more:focus-visible {
    outline: 0;

    border-color: #7c8e52;

    box-shadow:
        0 0 0 3px rgba(124, 142, 82, 0.16);
}


/* Disabled / loading */

.series-load-more:disabled {
    color: #8f989f;
    background: #f5f6f3;
    border-color: #e2e5dd;

    cursor: wait;

    box-shadow: none;
    transform: none;
}


/* Arrow */

.series-load-more__icon,
.series-load-more [data-load-more-icon] {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 18px;
    height: 18px;

    font-size: 11px;

    transition:
        transform 0.2s ease;
}

.series-load-more:hover:not(:disabled)
[data-load-more-icon] {
    transform: translateY(2px);
}


/* ---------------------------------------------------------
   Loading indicator
   --------------------------------------------------------- */

.series-load-more__loading {
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.series-load-more__loading::before {
    content: "";

    width: 13px;
    height: 13px;

    border: 2px solid #d8ddd0;
    border-top-color: #718046;
    border-radius: 50%;

    animation:
        series-load-more-spin 0.7s linear infinite;
}

.series-load-more__loading[hidden] {
    display: none;
}

@keyframes series-load-more-spin {
    to {
        transform: rotate(360deg);
    }
}


/* ---------------------------------------------------------
   When the button is hidden, do not leave spacing behind.
   --------------------------------------------------------- */

.series-lessons__load-more:has(
    .series-load-more[hidden]
) {
    display: none;
}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 600px) {

    .series-lessons__progress {
        margin-top: 19px;
        margin-bottom: 9px;

        font-size: 10px;
    }

    .series-lessons__load-more {
        padding: 0 8px 3px;
    }

    .series-load-more {
        width: min(100%, 280px);

        min-height: 46px;

        padding: 0 17px;

        border-radius: 12px;

        font-size: 12px;
    }

    .series-load-more [data-load-more-icon] {
        width: 17px;
        height: 17px;

        font-size: 10px;
    }
}


/* =========================================================
   Very small phones
   ========================================================= */

@media (max-width: 380px) {

    .series-load-more {
        width: 100%;
        max-width: 250px;

        min-height: 44px;

        font-size: 11.5px;
    }

    .series-lessons__progress {
        font-size: 9.5px;
    }
}


/* =========================================================
   Search load more
   Shares the same visual language as series load more.
   ========================================================= */

.content-load-more__progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;

    margin: 22px auto 9px;

    color: #8a9199;

    font-size: 11px;
    line-height: 1.7;

    text-align: center;
}

.content-load-more__progress strong {
    color: #6f8048;
    font-weight: 700;
}

.content-load-more__wrapper {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;

    margin: 0 auto 4px;
}

.content-load-more {
    min-width: 190px;
}

@media (max-width: 600px) {

    .content-load-more__progress {
        margin-top: 17px;
        margin-bottom: 8px;

        font-size: 9.5px;
    }

    .content-load-more__wrapper {
        padding-inline: 8px;
    }

    .content-load-more {
        width: min(100%, 280px);
    }
}


/* =========================================================
   SERIES DETAIL - HERO / HEADER REFINEMENT
   ========================================================= */

.series-detail {
    padding: 30px 0 76px;
}

/* ---------------------------------------------------------
   Breadcrumbs
   --------------------------------------------------------- */

.series-detail .breadcrumbs {
    margin-bottom: 20px;
}


/* ---------------------------------------------------------
   Series hero
   --------------------------------------------------------- */

.series-detail__overview {
    display: grid;
    grid-template-columns:
        360px
        minmax(0, 1fr);

    gap: 42px;

    align-items: center;

    min-height: 250px;

    margin-bottom: 34px;
    padding: 24px;

    direction: rtl;

    background: #ffffff;

    border: 1px solid #ebe8e2;
    border-radius: 24px;

    box-shadow:
        0 10px 32px rgba(42, 51, 63, 0.045);
}


/* ---------------------------------------------------------
   Cover
   --------------------------------------------------------- */

.series-detail__cover {
    position: relative;

    width: 100%;
    aspect-ratio: 16 / 9;

    overflow: hidden;

    border-radius: 17px;

    background: #eef0eb;

    box-shadow:
        0 8px 22px rgba(32, 42, 53, 0.08);
}

.series-detail__cover img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.35s ease;
}

.series-detail__overview:hover
.series-detail__cover img {
    transform: scale(1.015);
}

.series-detail__cover-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    color: #7b8959;
    background: #f0f2eb;

    font-size: 38px;
}


/* Playlist count overlay */

.series-detail__cover-count {
    position: absolute;

    right: 12px;
    bottom: 12px;

    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 7px 10px;

    color: #ffffff;
    background: rgba(36, 43, 52, 0.88);

    border-radius: 8px;

    font-size: 11px;
    font-weight: 700;

    backdrop-filter: blur(5px);
}

.series-detail__cover-count i {
    font-size: 10px;
}


/* ---------------------------------------------------------
   Summary
   --------------------------------------------------------- */

.series-detail__summary {
    min-width: 0;

    padding: 8px 4px;

    text-align: right;
}

.series-detail__eyebrow {
    margin: 0 0 8px;

    color: #788b50;

    font-size: 14px;
    font-weight: 700;
}

.series-detail__summary h1 {
    max-width: 850px;

    margin: 0;

    color: #334157;

    font-size: clamp(38px, 4vw, 50px);
    line-height: 1.35;
    font-weight: 800;

    letter-spacing: -0.5px;
}

.series-detail__description {
    max-width: 760px;

    margin: 13px 0 0;

    color: #7b838d;

    font-size: 14px;
    line-height: 1.9;
}

.series-detail__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: 8px;

    margin-top: 20px;
}

.series-detail__meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    min-height: 36px;

    padding: 0 11px;

    color: #66727e;
    background: #f5f6f2;

    border: 1px solid #e7e9e2;
    border-radius: 9px;

    font-size: 11px;
    font-weight: 600;
}

.series-detail__meta i {
    color: #7b8e52;
    font-size: 11px;
}


/* ---------------------------------------------------------
   Lessons section
   --------------------------------------------------------- */

.series-lessons {
    margin-top: 0;

    padding: 25px;

    background: #ffffff;

    border: 1px solid #ebe8e2;
    border-radius: 22px;

    box-shadow:
        0 8px 28px rgba(42, 51, 63, 0.035);
}


/* Section heading */

.series-lessons__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 18px;
    padding-bottom: 16px;

    border-bottom: 1px solid #efede8;
}

.series-lessons__heading p {
    margin: 0 0 3px;

    color: #7c8d54;

    font-size: 11px;
    font-weight: 700;
}

.series-lessons__heading h2 {
    margin: 0;

    color: #344157;

    font-size: 27px;
    line-height: 1.45;
}

.series-lessons__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 48px;
    height: 42px;

    padding-inline: 10px;

    color: #6d7d49;
    background: #f0f2e9;

    border-radius: 11px;

    font-size: 13px;
    font-weight: 700;
}


/* ---------------------------------------------------------
   Search / sort tools
   --------------------------------------------------------- */

.series-tools--lessons {
    margin-bottom: 14px;
}

.series-tools--lessons
.series-tools__field,
.series-tools--lessons
.series-tools__filter,
.series-tools--lessons
.series-tools__button {
    min-height: 52px;
}


/* Results text */

.series-lessons__results {
    display: flex;
    align-items: center;
    gap: 8px;

    margin: 10px 2px 13px;

    color: #858d96;

    font-size: 11px;
}

.series-lessons__results span:first-child {
    color: #6f8048;
    font-weight: 700;
}

.series-lessons__results span + span::before {
    content: "•";

    margin-inline-end: 8px;

    color: #c1c6bf;
}


/* ---------------------------------------------------------
   Desktop lesson list
   --------------------------------------------------------- */

@media (min-width: 1001px) {

    .series-lesson-list {
        display: grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 9px;
    }

    .series-lesson-row {
        min-width: 0;
    }
}


/* ---------------------------------------------------------
   Tablet
   --------------------------------------------------------- */

@media (max-width: 1000px) {

    .series-detail__overview {
        grid-template-columns:
            300px
            minmax(0, 1fr);

        gap: 28px;

        padding: 20px;

        border-radius: 20px;
    }

    .series-detail__summary h1 {
        font-size: 34px;
    }

    .series-lessons {
        padding: 20px;
    }
}


/* =========================================================
   MOBILE SERIES DETAIL
   ========================================================= */

@media (max-width: 600px) {

    .series-detail {
        padding: 18px 0 54px;
    }

    .series-detail .breadcrumbs {
        margin-bottom: 12px;

        font-size: 9px;
    }


    /* Hero becomes a proper vertical card */

    .series-detail__overview {
        display: grid;

        grid-template-columns: 1fr;

        gap: 0;

        min-height: 0;

        margin-bottom: 16px;
        padding: 9px;

        border-radius: 16px;

        box-shadow:
            0 6px 20px rgba(42, 51, 63, 0.04);
    }


    .series-detail__cover {
        width: 100%;

        aspect-ratio: 16 / 9;

        border-radius: 12px;
    }

    .series-detail__cover-count {
        right: 8px;
        bottom: 8px;

        padding: 5px 8px;

        border-radius: 6px;

        font-size: 9px;
    }

    .series-detail__cover-count i {
        font-size: 8px;
    }


    .series-detail__summary {
        padding: 14px 6px 7px;

        text-align: right;
    }

    .series-detail__eyebrow {
        margin-bottom: 4px;

        font-size: 10px;
    }

    .series-detail__summary h1 {
        max-width: none;

        font-size: 23px;
        line-height: 1.55;
        letter-spacing: 0;
    }

    .series-detail__description {
        margin-top: 6px;

        font-size: 10px;
        line-height: 1.8;
    }


    .series-detail__meta {
        gap: 5px;

        margin-top: 10px;
    }

    .series-detail__meta span {
        min-height: 29px;

        padding: 0 8px;

        border-radius: 7px;

        font-size: 8.5px;
    }

    .series-detail__meta i {
        font-size: 8px;
    }


    /* Lessons */

    .series-lessons {
        padding: 13px 10px;

        border-radius: 15px;

        box-shadow:
            0 5px 18px rgba(42, 51, 63, 0.03);
    }

    .series-lessons__heading {
        margin-bottom: 11px;
        padding-bottom: 10px;
    }

    .series-lessons__heading p {
        margin-bottom: 1px;

        font-size: 8px;
    }

    .series-lessons__heading h2 {
        font-size: 20px;
    }

    .series-lessons__count {
        min-width: 36px;
        height: 32px;

        padding-inline: 7px;

        border-radius: 8px;

        font-size: 9px;
    }


    /* Search tools */

    .series-tools--lessons {
        margin-bottom: 9px;
    }

    .series-tools--lessons
    .series-tools__field,
    .series-tools--lessons
    .series-tools__filter,
    .series-tools--lessons
    .series-tools__button {
        min-height: 42px;
    }


    .series-lessons__results {
        margin: 7px 2px 9px;

        gap: 5px;

        font-size: 8.5px;
    }

    .series-lessons__results span + span::before {
        margin-inline-end: 5px;
    }
}


/* =========================================================
   Small phones
   ========================================================= */

@media (max-width: 390px) {

    .series-detail__summary h1 {
        font-size: 21px;
    }

    .series-detail__meta span {
        font-size: 8px;
    }

    .series-lessons__heading h2 {
        font-size: 19px;
    }
}


/* =========================================================
   SERIES LESSON ROW
   Refined playlist-style card
   ========================================================= */

/* ---------------------------------------------------------
   Desktop
   --------------------------------------------------------- */

@media (min-width: 901px) {

    .series-lesson-row {
        display: grid;

        /*
         * RTL visual order:
         * thumbnail | content | arrow
         */
        grid-template-columns:
            230px
            minmax(0, 1fr)
            36px;

        align-items: center;

        min-height: 132px;

        gap: 14px;

        padding: 10px 10px 10px 8px;

        color: inherit;
        text-decoration: none;

        background: #ffffff;

        border: 1px solid #eceae5;
        border-radius: 15px;

        transition:
            background-color 0.18s ease,
            border-color 0.18s ease,
            box-shadow 0.18s ease,
            transform 0.18s ease;
    }


    .series-lesson-row:hover {
        background: #fcfcfa;

        border-color: #dfe4d6;

        box-shadow:
            0 6px 18px rgba(42, 51, 63, 0.055);

        transform: translateY(-1px);
    }


    /* Thumbnail */

    .series-lesson-row__media {
        position: relative;

        width: 230px;
        aspect-ratio: 16 / 9;

        overflow: hidden;

        flex-shrink: 0;

        background: #eef0eb;

        border-radius: 11px;
    }


    .series-lesson-row__media img {
        display: block;

        width: 100%;
        height: 100%;

        object-fit: cover;

        transition:
            transform 0.25s ease;
    }


    .series-lesson-row:hover
    .series-lesson-row__media img {
        transform: scale(1.018);
    }


    .series-lesson-row__placeholder {
        display: flex;
        align-items: center;
        justify-content: center;

        width: 100%;
        height: 100%;

        color: #71834c;
        background: #f0f2eb;

        font-size: 22px;
    }


    /* Duration */

    .series-lesson-row__duration {
        position: absolute;

        right: 7px;
        bottom: 7px;

        display: inline-flex;
        align-items: center;
        justify-content: center;

        min-width: 42px;
        min-height: 22px;

        padding: 0 6px;

        color: #ffffff;
        background: rgba(27, 32, 39, 0.9);

        border-radius: 5px;

        font-size: 10px;
        font-weight: 700;

        line-height: 1;

        direction: ltr;
    }


    /* Content */

    .series-lesson-row__content {
        min-width: 0;

        padding: 4px 0;

        text-align: right;
    }


    .series-lesson-row__meta {
        display: flex;
        align-items: center;
        flex-wrap: wrap;

        gap: 8px;

        margin-bottom: 5px;

        color: #8a929a;

        font-size: 10px;
        line-height: 1.5;
    }


    .series-lesson-row__meta span:first-child {
        color: #74844e;
        font-weight: 700;
    }


    .series-lesson-row__meta span + span::before {
        content: "•";

        margin-inline-end: 8px;

        color: #c3c8c1;
    }


    .series-lesson-row__content h3 {
        display: -webkit-box;

        margin: 0;

        overflow: hidden;

        color: #344157;

        font-size: 17px;
        line-height: 1.7;
        font-weight: 700;

        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }


    .series-lesson-row__watch {
        display: inline-flex;
        align-items: center;
        gap: 5px;

        margin-top: 8px;

        color: #73854c;

        font-size: 10px;
        font-weight: 700;

        transition:
            color 0.18s ease;
    }


    .series-lesson-row:hover
    .series-lesson-row__watch {
        color: #5f713d;
    }


    .series-lesson-row__watch i {
        font-size: 8px;
    }


    /* Arrow */

    .series-lesson-row__arrow {
        display: flex;
        align-items: center;
        justify-content: center;

        width: 32px;
        height: 32px;

        color: #87929c;
        background: #f0f2ec;

        border-radius: 50%;

        font-size: 10px;

        transition:
            color 0.18s ease,
            background-color 0.18s ease,
            transform 0.18s ease;
    }


    .series-lesson-row:hover
    .series-lesson-row__arrow {
        color: #ffffff;
        background: #7c8e52;

        transform: translateX(-2px);
    }
}


/* ---------------------------------------------------------
   Tablet
   --------------------------------------------------------- */

@media (min-width: 601px) and (max-width: 1000px) {

    .series-lesson-row {
        grid-template-columns:
            190px
            minmax(0, 1fr)
            32px;

        min-height: 112px;

        gap: 12px;
    }

    .series-lesson-row__media {
        width: 190px;
    }

    .series-lesson-row__content h3 {
        font-size: 15px;
    }
}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 600px) {

    .series-lesson-row {
        display: grid;

        grid-template-columns:
            112px
            minmax(0, 1fr);

        grid-template-areas:
            "media content";

        align-items: start;

        gap: 9px;

        min-height: 0;

        padding: 7px 4px;

        background: transparent;

        border: 0;
        border-bottom: 1px solid #efede8;
        border-radius: 0;

        color: inherit;
        text-decoration: none;
    }


    .series-lesson-row:last-child {
        border-bottom: 0;
    }


    .series-lesson-row:hover {
        background: transparent;

        border-color: #efede8;

        box-shadow: none;

        transform: none;
    }


    .series-lesson-row__media {
        grid-area: media;

        position: relative;

        width: 112px;
        aspect-ratio: 16 / 9;

        overflow: hidden;

        border-radius: 8px;

        background: #eef0eb;
    }


    .series-lesson-row__media img {
        width: 100%;
        height: 100%;

        object-fit: cover;
    }


    .series-lesson-row:hover
    .series-lesson-row__media img {
        transform: none;
    }


    .series-lesson-row__duration {
        right: 5px;
        bottom: 5px;

        min-width: 34px;
        min-height: 17px;

        padding: 0 4px;

        border-radius: 4px;

        font-size: 8px;
    }


    .series-lesson-row__content {
        grid-area: content;

        min-width: 0;

        padding: 1px 0;
    }


    .series-lesson-row__meta {
        gap: 5px;

        margin-bottom: 2px;

        font-size: 7.5px;

        line-height: 1.5;
    }


    .series-lesson-row__meta span + span::before {
        margin-inline-end: 5px;
    }


    .series-lesson-row__content h3 {
        font-size: 11.5px;

        line-height: 1.65;

        -webkit-line-clamp: 3;
    }


    .series-lesson-row__watch {
        gap: 4px;

        margin-top: 3px;

        font-size: 8px;
    }


    .series-lesson-row__watch i {
        font-size: 6px;
    }


    /*
     * The arrow is intentionally removed on mobile.
     * The whole row is already clickable and the thumbnail
     * + title provide the navigation affordance.
     */
    .series-lesson-row__arrow {
        display: none;
    }


    .series-lesson-row__placeholder {
        font-size: 16px;
    }
}


/* ---------------------------------------------------------
   Very small phones
   --------------------------------------------------------- */

@media (max-width: 390px) {

    .series-lesson-row {
        grid-template-columns:
            104px
            minmax(0, 1fr);

        gap: 8px;
    }

    .series-lesson-row__media {
        width: 104px;
    }

    .series-lesson-row__content h3 {
        font-size: 11px;
    }

    .series-lesson-row__meta {
        font-size: 7px;
    }

    .series-lesson-row__watch {
        font-size: 7.5px;
    }
}


/* =========================================================
   FIX: Video duration badge
   Keep duration as a compact YouTube-style badge.
   ========================================================= */

.series-lesson-row .series-lesson-row__duration {
    position: absolute !important;

    top: auto !important;
    left: auto !important;

    right: 7px !important;
    bottom: 7px !important;

    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    width: auto !important;
    height: auto !important;

    min-width: 42px;
    min-height: 22px;

    max-width: calc(100% - 14px);

    padding: 0 6px !important;

    box-sizing: border-box;

    overflow: hidden;

    color: #ffffff;

    background: rgba(27, 32, 39, 0.92) !important;

    border: 0 !important;
    border-radius: 5px !important;

    font-size: 10px;
    font-weight: 700;
    line-height: 1;

    white-space: nowrap;

    direction: ltr;

    pointer-events: none;
}


/* Mobile */

@media (max-width: 600px) {

    .series-lesson-row .series-lesson-row__duration {
        top: auto !important;
        left: auto !important;

        right: 5px !important;
        bottom: 5px !important;

        width: auto !important;
        height: auto !important;

        min-width: 34px;
        min-height: 17px;

        max-width: calc(100% - 10px);

        padding: 0 4px !important;

        border-radius: 4px !important;

        font-size: 8px;
    }
}


/* Very small phones */

@media (max-width: 390px) {

    .series-lesson-row .series-lesson-row__duration {
        right: 4px !important;
        bottom: 4px !important;

        min-width: 32px;
        min-height: 16px;

        font-size: 7.5px;
    }
}


/* =========================================================
   Lesson playlist - final viewport + Load More
   Header | Scrollable items | Footer
   ========================================================= */

.lesson-playlist {
    display: grid !important;

    grid-template-rows:
        auto
        minmax(0, 1fr)
        auto;

    grid-template-columns:
        minmax(0, 1fr);

    /*
     * Fallback height.
     * On side-by-side desktop layout, lesson-player.js
     * synchronizes this with the actual video stage height.
     */
    height: min(
        690px,
        calc(100vh - 210px)
    );

    min-height: 0 !important;

    box-sizing: border-box;

    overflow: hidden !important;
}


.lesson-playlist__header {
    grid-row: 1;

    min-width: 0;
    min-height: 0;

    overflow: visible;
}


.lesson-playlist__items {
    grid-row: 2;

    width: 100%;

    min-width: 0;
    min-height: 0;

    height: auto !important;
    max-height: none !important;

    box-sizing: border-box;

    overflow-x: hidden !important;
    overflow-y: auto !important;

    padding:
        5px
        5px
        12px !important;

    overscroll-behavior: contain;

    scrollbar-width: thin;
    scrollbar-color:
        #c4c8ba
        transparent;
}


.lesson-playlist__footer {
    grid-row: 3;

    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;

    width: 100%;

    min-width: 0;
    min-height: 0;

    gap: 8px;

    padding:
        8px
        10px
        10px;

    box-sizing: border-box;

    background: #ffffff;

    border-top: 1px solid #efeee9;
}


.lesson-playlist__loaded {
    color: #8a9198;

    font-size: 8px;
}


.lesson-playlist__loaded strong {
    color: #6f8048;
}


.lesson-playlist__load-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    min-width: 125px;
    min-height: 32px;

    padding:
        5px
        12px;

    color: #657640;

    background: #f4f5ef;

    border: 1px solid #e1e5d8;
    border-radius: 8px;

    font-size: 8px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background-color 0.18s ease,
        border-color 0.18s ease,
        transform 0.18s ease;
}


.lesson-playlist__load-more:hover {
    background: #edf0e5;

    border-color: #d3dac5;

    transform: translateY(-1px);
}


.lesson-playlist__load-more:disabled {
    opacity: 0.65;

    cursor: wait;

    transform: none;
}


.lesson-playlist__load-more i {
    font-size: 7px;
}


/*
 * Keep breathing room between the last lesson row
 * and the playlist footer.
 */
.lesson-playlist__items
.lesson-playlist-item:last-child {
    margin-bottom: 3px;
}


/* =========================================================
   Lesson playlist - mobile
   ========================================================= */

@media (max-width: 600px) {

    .lesson-playlist {
        height: 370px;

        min-height: 0 !important;
    }


    .lesson-playlist__items {
        padding:
            4px
            4px
            9px !important;
    }


    .lesson-playlist__footer {
        gap: 5px;

        padding:
            6px
            8px
            8px;
    }


    .lesson-playlist__loaded {
        width: 100%;

        text-align: center;

        font-size: 7px;
    }


    .lesson-playlist__load-more {
        width: min(
            100%,
            170px
        );

        min-height: 29px;

        padding:
            4px
            9px;

        border-radius: 7px;

        font-size: 7.5px;
    }
}


/* =========================================================
   Lesson playlist - very small phones
   ========================================================= */

@media (max-width: 390px) {

    .lesson-playlist {
        height: 360px;
    }

}


/* =========================================================
   Error pages
   ========================================================= */

.error-page {
    padding: 90px 0 110px;
    direction: rtl;
}

.error-page__card {
    width: min(100%, 720px);
    margin-inline: auto;
    padding: 42px 30px;

    text-align: center;

    background: #ffffff;
    border: 1px solid #e5e5df;
    border-radius: 18px;
}

.error-page__code {
    margin: 0 0 8px;

    color: #7d8e4d;

    font-size: 42px;
    font-weight: 800;
    line-height: 1;
}

.error-page__card h1 {
    margin: 0;

    color: #344156;

    font-size: clamp(20px, 3vw, 30px);
    line-height: 1.6;
}

.error-page__card > p:not(.error-page__code) {
    max-width: 560px;
    margin: 14px auto 0;

    color: #7d858f;

    line-height: 1.9;
}

.error-page__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;

    gap: 10px;
    margin-top: 26px;
}

.error-page__actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 40px;
    padding: 8px 16px;

    color: #596b38;
    background: #f3f5ed;

    border: 1px solid #dfe4d5;
    border-radius: 9px;

    font-weight: 700;
}

@media (max-width: 600px) {

    .error-page {
        padding: 55px 0 75px;
    }

    .error-page__card {
        padding: 32px 18px;
        border-radius: 14px;
    }

    .error-page__actions {
        flex-direction: column;
    }

    .error-page__actions a {
        width: 100%;
    }

}


/* =========================================================
   Home series mobile horizontal rail - final override
   ========================================================= */

@media (max-width: 700px) {

    .home-content .home-series-grid {
        display: grid;

        grid-template-columns: none;
        grid-template-rows:
            repeat(2, minmax(0, auto));

        grid-auto-flow: column;

        /* Two scrolling columns are visible at once */
        grid-auto-columns:
            calc((100% - 12px) / 2);

        gap: 18px 12px;

        width: 100%;
        max-width: 100%;

        padding-bottom: 12px;

        overflow-x: auto;
        overflow-y: hidden;

        scroll-snap-type: x mandatory;
        scroll-padding-inline: 0;

        overscroll-behavior-inline: contain;
        -webkit-overflow-scrolling: touch;
    }


    /* Cancel the mobile horizontal-card layout
       used by the full Series page */
    .home-content
    .home-series-grid
    .series-card {
        display: block;

        width: auto;
        min-width: 0;

        grid-template-columns: none;
        gap: 0;

        scroll-snap-align: start;
    }


    .home-content
    .home-series-grid
    .series-card__media {
        width: 100%;
        aspect-ratio: 16 / 9;
        border-radius: 11px;
    }


    .home-content
    .home-series-grid
    .series-card__body {
        width: 100%;
        padding: 9px 1px 0;
    }


    .home-content
    .home-series-grid
    .series-card h2 {
        display: -webkit-box;

        margin: 0;
        overflow: hidden;

        font-size: 12px;
        line-height: 1.65;

        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }


    .home-content
    .home-series-grid
    .series-card__meta {
        display: flex;

        margin-top: 4px;

        font-size: 9px;
    }


    .home-content
    .home-series-grid
    .series-card__open {
        display: inline-flex;

        margin-top: 6px;

        font-size: 10px;
    }


    .home-content
    .home-series-grid
    .series-card__count {
        right: 5px;
        bottom: 5px;

        padding: 4px 6px;

        font-size: 9px;
    }


    .home-content
    .home-series-grid
    .series-card__play {
        display: none;
    }


    /* "View more" becomes the final scrolling column
       and spans both rows */
    .home-content
    .home-series-grid
    .home-scroll-more {
        grid-row: 1 / span 2;

        min-height: 100%;

        scroll-snap-align: end;
    }


    .home-content .home-series-grid {
        scrollbar-width: thin;
        scrollbar-color:
            rgba(113, 128, 77, 0.34)
            transparent;
    }

    .home-content
    .home-series-grid::-webkit-scrollbar {
        height: 4px;
    }

    .home-content
    .home-series-grid::-webkit-scrollbar-thumb {
        background:
            rgba(113, 128, 77, 0.34);

        border-radius: 10px;
    }
}


/* =========================================================
   Home responsive horizontal rails - all viewports
   12 lessons + 12 series
   Two rows, horizontal browsing
   ========================================================= */

.home-content {
    --home-rail-columns: 4;
    --home-rail-gap-x: 18px;
    --home-rail-gap-y: 26px;
}


/* ---------------------------------------------------------
   Shared rail
   --------------------------------------------------------- */

.home-content .home-lessons-grid,
.home-content .home-series-grid {
    display: grid;

    grid-template-columns: none;
    grid-template-rows:
        repeat(2, minmax(0, auto));

    grid-auto-flow: column;

    grid-auto-columns:
        calc(
            (
                100%
                -
                (
                    var(--home-rail-columns)
                    - 1
                )
                *
                var(--home-rail-gap-x)
            )
            /
            var(--home-rail-columns)
        );

    gap:
        var(--home-rail-gap-y)
        var(--home-rail-gap-x);

    width: 100%;
    max-width: 100%;

    padding: 2px 0 14px;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-snap-type: x proximity;
    scroll-padding-inline: 0;

    overscroll-behavior-inline: contain;

    -webkit-overflow-scrolling: touch;

    scrollbar-width: thin;
    scrollbar-color:
        rgba(113, 128, 77, 0.35)
        transparent;
}


.home-content
.home-lessons-grid::-webkit-scrollbar,
.home-content
.home-series-grid::-webkit-scrollbar {
    height: 5px;
}


.home-content
.home-lessons-grid::-webkit-scrollbar-track,
.home-content
.home-series-grid::-webkit-scrollbar-track {
    background: transparent;
}


.home-content
.home-lessons-grid::-webkit-scrollbar-thumb,
.home-content
.home-series-grid::-webkit-scrollbar-thumb {
    background:
        rgba(113, 128, 77, 0.35);

    border-radius: 999px;
}


/* ---------------------------------------------------------
   Items
   --------------------------------------------------------- */

.home-content
.home-lessons-grid
> .home-lesson-card,
.home-content
.home-series-grid
> .series-card {
    width: auto;
    min-width: 0;

    scroll-snap-align: start;
}


/*
 * Important:
 * cancel the compact horizontal Series card used on
 * the standalone Series page at small widths.
 */

.home-content
.home-series-grid
.series-card {
    display: block;

    grid-template-columns: none;
    align-items: initial;
    gap: 0;
}


.home-content
.home-series-grid
.series-card__media {
    width: 100%;
    aspect-ratio: 16 / 9;
}


.home-content
.home-series-grid
.series-card__body {
    width: 100%;
}


/* ---------------------------------------------------------
   The action in the heading is replaced by the final
   scrolling "View more" card on every viewport.
   --------------------------------------------------------- */

.home-content
.home-section__heading
.home-section__more {
    display: inline-flex;
}


.home-content .home-scroll-more {
    grid-row: 1 / span 2;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: auto;
    min-width: 0;
    min-height: 100%;

    padding: 28px 16px;

    color: #657541;

    background:
        linear-gradient(
            145deg,
            #f8f9f4,
            #f1f3e9
        );

    border: 1px solid #dfe4d3;
    border-radius: 15px;

    text-align: center;

    scroll-snap-align: end;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}


.home-content
.home-scroll-more:hover {
    border-color: #cbd3b9;
    transform: translateY(-2px);
}


.home-content
.home-scroll-more__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;
    margin-bottom: 12px;

    color: #ffffff;
    background: #71804d;

    border-radius: 50%;
}


.home-content
.home-scroll-more__icon i {
    font-size: 15px;
}


.home-content
.home-scroll-more strong {
    color: #4d5937;

    font-size: 14px;
    font-weight: 800;
}


.home-content
.home-scroll-more small {
    margin-top: 5px;

    color: #8a927c;

    font-size: 10px;
    line-height: 1.6;
}


/* ---------------------------------------------------------
   Medium desktop / laptop
   3 scrolling columns visible
   --------------------------------------------------------- */

@media (max-width: 1199px) {

    .home-content {
        --home-rail-columns: 3;
        --home-rail-gap-x: 16px;
        --home-rail-gap-y: 24px;
    }
}


/* ---------------------------------------------------------
   Tablet
   3 columns where space allows
   --------------------------------------------------------- */

@media (max-width: 900px) {

    .home-content {
        --home-rail-columns: 3;
        --home-rail-gap-x: 13px;
        --home-rail-gap-y: 20px;
    }

    .home-content
    .home-series-grid
    .series-card {
        display: block;
    }

    .home-content
    .home-series-grid
    .series-card__body {
        padding: 9px 1px 0;
    }

    .home-content
    .home-series-grid
    .series-card h2 {
        font-size: 13px;
    }
}


/* ---------------------------------------------------------
   Mobile
   2 columns visible, two cards vertically per column
   --------------------------------------------------------- */

@media (max-width: 700px) {

    .home-content {
        --home-rail-columns: 2;
        --home-rail-gap-x: 12px;
        --home-rail-gap-y: 18px;
    }


    .home-content
    .home-lessons-grid,
    .home-content
    .home-series-grid {
        padding-bottom: 12px;
    }


    .home-content
    .home-lesson-card__media,
    .home-content
    .home-series-grid
    .series-card__media {
        border-radius: 11px;
    }


    .home-content
    .home-lesson-card__body,
    .home-content
    .home-series-grid
    .series-card__body {
        padding: 9px 1px 0;
    }


    .home-content
    .home-lesson-card h3,
    .home-content
    .home-series-grid
    .series-card h2 {
        font-size: 12px;
        line-height: 1.65;
    }


    .home-content
    .home-series-grid
    .series-card h2 {
        display: -webkit-box;

        overflow: hidden;

        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }


    .home-content
    .home-lesson-card__meta,
    .home-content
    .home-series-grid
    .series-card__meta {
        margin-top: 4px;
        font-size: 9px;
    }


    .home-content
    .home-lesson-card__open,
    .home-content
    .home-series-grid
    .series-card__open {
        margin-top: 6px;
        font-size: 10px;
    }


    .home-content
    .home-lesson-card__play,
    .home-content
    .home-series-grid
    .series-card__play {
        display: none;
    }


    .home-content
    .home-scroll-more {
        padding: 20px 8px;
        border-radius: 12px;
    }


    .home-content
    .home-scroll-more__icon {
        width: 40px;
        height: 40px;
        margin-bottom: 9px;
    }


    .home-content
    .home-scroll-more strong {
        font-size: 12px;
    }


    .home-content
    .home-scroll-more small {
        font-size: 9px;
    }
}


/* ---------------------------------------------------------
   Very small phones
   Still keep TWO columns visible
   --------------------------------------------------------- */

@media (max-width: 420px) {

    .home-content {
        --home-rail-columns: 2;
        --home-rail-gap-x: 9px;
        --home-rail-gap-y: 16px;
    }

    .home-content
    .home-lesson-card h3,
    .home-content
    .home-series-grid
    .series-card h2 {
        font-size: 11.5px;
    }
}


/* =========================================================
   Home section heading actions
   ========================================================= */

.home-content .home-section__heading {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
}

.home-content
.home-section__heading
> div {
    min-width: 0;
}

.home-content
.home-section__heading
.home-section__more {
    display: inline-flex;
    flex: 0 0 auto;
}


@media (max-width: 700px) {

    .home-content .home-section__heading {
        flex-direction: row;
        align-items: flex-start;
        gap: 12px;
    }

    .home-content
    .home-section__heading
    > div {
        flex: 1 1 auto;
    }

    .home-content
    .home-section__heading
    .home-section__more {
        min-height: 38px;
        padding: 7px 11px;
        border-radius: 9px;
        white-space: nowrap;
        font-size: 10.5px;
    }

    .home-content
    .home-section__heading
    .home-section__more i {
        font-size: 9px;
    }

    .home-content
    .home-section__heading p {
        max-width: 100%;
    }
}


/* =========================================================
   Footer refinement - quick links + live video
   ========================================================= */

/* Space after footer logo now that the repeated site name
   has been removed. */
.footer-main .footer-social {
    margin-top: 22px;
}


/* Quick links */

.footer-quick {
    margin-top: 30px;
}

.footer-quick h2 {
    margin: 0 0 13px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
}

.footer-quick__links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 18px;
}

.footer-quick__links a {
    position: relative;
    display: inline-flex;
    align-items: center;

    padding: 4px 2px;

    color: rgba(255, 255, 255, 0.76);

    font-size: 13px;
    font-weight: 500;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.footer-quick__links a:hover,
.footer-quick__links a:focus-visible {
    color: #ffffff;
    transform: translateY(-1px);
    outline: none;
}

.footer-quick__links a:not(:last-child)::after {
    content: "";

    position: absolute;
    left: -10px;

    width: 3px;
    height: 3px;

    background: rgba(255, 255, 255, 0.32);
    border-radius: 50%;
}


/* Live section */

.footer-main .footer-live {
    margin-top: 27px;
}


/* Visual broadcast must always carry YouTube red,
   not only on hover. */

.footer-main
.footer-live__link--youtube {
    color: #ffffff;
    background: #ff0000;
    border-color: #ff0000;
}

.footer-main
.footer-live__link--youtube:hover,
.footer-main
.footer-live__link--youtube:focus-visible {
    color: #ffffff;
    background: #d90000;
    border-color: #d90000;
    box-shadow:
        0 7px 20px
        rgba(255, 0, 0, 0.20);
}


/* Audio remains in the site's identity color on interaction */

.footer-main
.footer-live__link--audio:hover,
.footer-main
.footer-live__link--audio:focus-visible {
    background: #7f9055;
    border-color: #7f9055;
}


@media (max-width: 600px) {

    .footer-main .footer-social {
        margin-top: 18px;
    }

    .footer-quick {
        margin-top: 25px;
    }

    .footer-quick h2 {
        margin-bottom: 11px;
        font-size: 14px;
    }

    .footer-quick__links {
        gap: 7px 15px;
    }

    .footer-quick__links a {
        font-size: 12px;
    }

    .footer-main .footer-live {
        margin-top: 24px;
    }
}


/* =========================================================
   Compact responsive footer
   Simplified 3-section layout
   ========================================================= */

.site-footer .footer-main--compact {
    display: grid;

    grid-template-columns:
        minmax(220px, 1.1fr)
        minmax(280px, 1fr)
        minmax(220px, 1fr);

    align-items: center;

    gap: clamp(32px, 5vw, 80px);

    padding-top: 34px;
    padding-bottom: 30px;

    text-align: center;
}


/* ---------------------------------------------------------
   Shared
   --------------------------------------------------------- */

.site-footer .footer-column {
    min-width: 0;
    margin: 0;
}

.site-footer .footer-column h2 {
    margin: 0 0 13px;

    color: #ffffff;

    font-size: 15px;
    font-weight: 800;

    text-align: center;
}


/* ---------------------------------------------------------
   Logo
   --------------------------------------------------------- */

.site-footer .footer-brand-column {
    display: flex;

    align-items: center;
    justify-content: center;
}

.site-footer .footer-brand {
    display: inline-flex;

    align-items: center;
    justify-content: center;
}

.site-footer .footer-brand img {
    display: block;

    width: 235px;
    max-width: 100%;
    height: auto;

    object-fit: contain;
}


/* ---------------------------------------------------------
   Live broadcast
   --------------------------------------------------------- */

.site-footer .footer-live {
    margin: 0;
}

.site-footer .footer-live__links {
    display: flex;

    align-items: center;
    justify-content: center;

    flex-wrap: nowrap;

    gap: 9px;
}

.site-footer .footer-live__link {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 7px;

    min-height: 42px;

    padding: 8px 15px;

    border: 0;
    border-radius: 10px;

    white-space: nowrap;

    color: #ffffff;

    font-size: 12px;
    font-weight: 700;

    box-shadow: none;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.site-footer
.footer-live__link i {
    color: #ffffff;

    font-size: 16px;
}


/* Visual broadcast */

.site-footer
.footer-live__link--youtube {
    color: #ffffff;

    background: #ff0000;
}

.site-footer
.footer-live__link--youtube:hover,
.site-footer
.footer-live__link--youtube:focus-visible {
    color: #ffffff;

    background: #d90000;

    transform: translateY(-1px);

    outline: none;
}


/* Audio broadcast
   Light identity color by default,
   darker on hover. */

.site-footer
.footer-live__link--audio {
    color: #ffffff;

    background: #8f9e68;
}

.site-footer
.footer-live__link--audio:hover,
.site-footer
.footer-live__link--audio:focus-visible {
    color: #ffffff;

    background: #71804d;

    transform: translateY(-1px);

    outline: none;
}


/* ---------------------------------------------------------
   Social
   --------------------------------------------------------- */

.site-footer .footer-social-block {
    margin: 0;
}

.site-footer .footer-social {
    display: flex;

    align-items: center;
    justify-content: center;

    flex-wrap: nowrap;

    gap: 10px;

    margin: 0;
}

.site-footer .footer-social__item {
    flex: 0 0 42px;

    width: 42px;
    height: 42px;
}

.site-footer
.footer-social__item i {
    font-size: 18px;
}


/* ---------------------------------------------------------
   Bottom
   --------------------------------------------------------- */

.site-footer .site-footer__bottom {
    padding: 14px 0;

    font-size: 11px;
    line-height: 1.7;
}


/* =========================================================
   Laptop
   ========================================================= */

@media (max-width: 1050px) {

    .site-footer .footer-main--compact {
        grid-template-columns:
            minmax(180px, 1fr)
            minmax(240px, 1fr)
            minmax(180px, 1fr);

        gap: 26px;

        padding-top: 30px;
        padding-bottom: 27px;
    }

    .site-footer .footer-brand img {
        width: 205px;
    }

    .site-footer .footer-live__link {
        padding-inline: 11px;

        font-size: 11px;
    }

    .site-footer .footer-social__item {
        flex-basis: 40px;

        width: 40px;
        height: 40px;
    }
}


/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 760px) {

    .site-footer .footer-main--compact {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 24px;

        padding-top: 28px;
        padding-bottom: 25px;
    }


    .site-footer .footer-brand-column {
        grid-column: 1 / -1;
    }

    .site-footer .footer-brand img {
        width: 190px;
    }


    .site-footer .footer-social-block,
    .site-footer .footer-live {
        min-width: 0;
    }

    .site-footer .footer-live__links {
        flex-wrap: wrap;
    }
}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 600px) {

    .site-footer .footer-main--compact {
        display: flex;

        flex-direction: column;

        align-items: center;

        gap: 19px;

        padding-top: 25px;
        padding-bottom: 22px;
    }


    /* Logo */

    .site-footer .footer-brand-column {
        width: 100%;
    }

    .site-footer .footer-brand img {
        width: 175px;
    }


    /* Social comes before live on mobile */

    .site-footer .footer-social-block {
        order: 2;

        width: 100%;
    }

    .site-footer .footer-social-block h2 {
        margin-bottom: 9px;

        font-size: 13px;
    }

    .site-footer .footer-social {
        justify-content: center;

        gap: 9px;
    }

    .site-footer .footer-social__item {
        flex: 0 0 39px;

        width: 39px;
        height: 39px;
    }

    .site-footer
    .footer-social__item i {
        font-size: 17px;
    }


    /* Live */

    .site-footer .footer-live {
        order: 3;

        width: 100%;
    }

    .site-footer .footer-live h2 {
        margin-bottom: 9px;

        font-size: 13px;
    }

    .site-footer .footer-live__links {
        justify-content: center;

        flex-wrap: nowrap;

        gap: 7px;
    }

    .site-footer .footer-live__link {
        min-height: 38px;

        padding: 6px 11px;

        border-radius: 8px;

        font-size: 10.5px;
    }

    .site-footer
    .footer-live__link i {
        font-size: 14px;
    }


    .site-footer .site-footer__bottom {
        padding: 12px 12px;

        font-size: 9.5px;
        line-height: 1.6;
    }
}


/* Very small phones */

@media (max-width: 380px) {

    .site-footer .footer-main--compact {
        gap: 17px;

        padding-top: 22px;
        padding-bottom: 19px;
    }

    .site-footer .footer-brand img {
        width: 160px;
    }

    .site-footer .footer-live__link {
        padding-inline: 9px;

        font-size: 10px;
    }
}


/* =========================================================
   Header live broadcast controls
   ========================================================= */

.site-header-live {
    display: flex;
    align-items: center;

    gap: 8px;

    /*
     * RTL:
     * pushes the live controls toward the edge opposite
     * the logo/navigation.
     */
    margin-inline-start: auto;

    flex: 0 0 auto;
}


.header-live__link {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 7px;

    min-height: 38px;

    padding: 7px 12px;

    border-radius: 10px;

    color: #ffffff;

    white-space: nowrap;

    font-size: 11.5px;
    font-weight: 700;
    line-height: 1;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.header-live__link i {
    flex: 0 0 auto;

    color: #ffffff;

    font-size: 14px;
}


/* Video */

.header-live__link--video {
    background: #ff0000;
}

.header-live__link--video:hover,
.header-live__link--video:focus-visible {
    color: #ffffff;

    background: #d90000;

    transform: translateY(-1px);

    outline: none;
}


/* Audio */

.header-live__link--audio {
    background: #8f9e68;
}

.header-live__link--audio:hover,
.header-live__link--audio:focus-visible {
    color: #ffffff;

    background: #71804d;

    transform: translateY(-1px);

    outline: none;
}


/* Drawer live section stays hidden on desktop. */

.mobile-nav__live {
    display: none;
}


/* =========================================================
   Smaller laptop widths while desktop navigation is active
   ========================================================= */

@media (min-width: 901px) and (max-width: 1100px) {

    .site-header__inner {
        gap: 18px;
    }

    .site-header-live {
        gap: 6px;
    }

    .site-header-live
    .header-live__link {
        min-height: 36px;

        padding: 6px 9px;

        gap: 5px;

        font-size: 10.5px;
    }

    .site-header-live
    .header-live__link i {
        font-size: 13px;
    }
}


/* =========================================================
   Tablet + mobile
   Move broadcast controls into drawer
   ========================================================= */

@media (max-width: 900px) {

    .site-header-live {
        display: none;
    }


    /*
     * Ensure the new drawer content remains reachable
     * on short screens.
     */

    .mobile-nav {
        overflow-y: auto;
        overscroll-behavior: contain;
    }


    .mobile-nav__live {
        display: block;

        margin: 8px 18px 22px;
        padding-top: 18px;

        border-top: 1px solid #ebe9e4;
    }


    .mobile-nav__live h2 {
        margin: 0 0 12px;

        color: #39465a;

        font-size: 13px;
        font-weight: 800;
    }


    .mobile-nav__live-links {
        display: grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 8px;
    }


    .mobile-nav__live
    .header-live__link {
        width: 100%;
        min-width: 0;
        min-height: 40px;

        padding: 7px 8px;

        border-radius: 9px;

        font-size: 10.5px;
    }


    .mobile-nav__live
    .header-live__link i {
        font-size: 14px;
    }
}


@media (max-width: 380px) {

    .mobile-nav__live {
        margin-inline: 14px;
    }

    .mobile-nav__live-links {
        gap: 6px;
    }

    .mobile-nav__live
    .header-live__link {
        padding-inline: 6px;

        font-size: 10px;
    }
}


/* =========================================================
   Responsive header logo
   Tablet + mobile
   ========================================================= */

@media (max-width: 900px) {

    .site-header__inner {
        min-height: 82px;

        display: flex;
        align-items: center;
        justify-content: space-between;

        gap: 16px;
    }


    /*
     * Give the brand roughly half of the available header.
     * The image itself remains capped on tablets so the
     * header does not become excessively tall.
     */

    .site-header .site-logo {
        display: flex;

        flex: 0 1 50%;

        width: 50%;
        min-width: 0;

        align-items: center;
        justify-content: flex-start;
    }


    .site-header .site-logo img {
        width: clamp(
            185px,
            34vw,
            255px
        );

        max-width: 100%;
        height: auto;

        object-fit: contain;
    }


    .site-header .mobile-menu-button {
        flex: 0 0 44px;

        width: 44px;
        height: 44px;

        margin-inline-start: auto;
    }
}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 600px) {

    .site-header__inner {
        min-height: 76px;

        gap: 12px;
    }


    .site-header .site-logo {
        flex-basis: 52%;

        width: 52%;
    }


    .site-header .site-logo img {
        /*
         * Around half of a typical phone viewport:
         * 360px -> ~173px
         * 390px -> ~187px
         * 430px -> ~206px
         */

        width: clamp(
            165px,
            48vw,
            205px
        );

        max-width: 100%;
    }


    .site-header .mobile-menu-button {
        flex: 0 0 42px;

        width: 42px;
        height: 42px;

        border-radius: 11px;
    }


    .site-header
    .mobile-menu-button svg {
        width: 23px;
        height: 23px;
    }
}


/* =========================================================
   Very small phones
   ========================================================= */

@media (max-width: 380px) {

    .site-header__inner {
        min-height: 72px;
    }


    .site-header .site-logo {
        flex-basis: 54%;

        width: 54%;
    }


    .site-header .site-logo img {
        width: clamp(
            158px,
            47vw,
            178px
        );
    }


    .site-header .mobile-menu-button {
        flex-basis: 40px;

        width: 40px;
        height: 40px;
    }
}


/* =========================================================
   Drawer brand refinement
   ========================================================= */

@media (max-width: 900px) {

    .mobile-nav__top {
        min-height: 118px;

        padding: 16px 18px;
    }


    .mobile-nav__logo {
        width: min(
            220px,
            72%
        );

        max-width: 220px;
        height: auto !important;

        object-fit: contain;
    }
}


@media (max-width: 600px) {

    .mobile-nav__logo {
        width: min(
            205px,
            72%
        );

        max-width: 205px;
    }
}


/* =========================================================
   Navigation custom icons
   ========================================================= */

.nav-icon {
    display: inline-block;

    width: 21px;
    height: 21px;

    flex: 0 0 21px;

    background-color: currentColor;

    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;

    -webkit-mask-position: center;
    mask-position: center;

    -webkit-mask-size: contain;
    mask-size: contain;
}


/* Carbon: folder-tree */

.nav-icon--series {
    -webkit-mask-image:
        url("../icons/navigation/series-folder-tree.svg");

    mask-image:
        url("../icons/navigation/series-folder-tree.svg");
}


/* Pepicons Pencil: cv */

.nav-icon--about {
    -webkit-mask-image:
        url("../icons/navigation/about-cv.svg");

    mask-image:
        url("../icons/navigation/about-cv.svg");
}


/* Mobile drawer */

.mobile-nav__links .nav-icon {
    width: 21px;
    height: 21px;

    flex-basis: 21px;
}


/* =========================================================
   Home weekly lesson schedule
   ========================================================= */

.home-weekly-schedule__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.home-weekly-schedule__card {
    min-width: 0;
    padding: 26px;
    border: 1px solid #e2e7da;
    border-right: 4px solid #788751;
    border-radius: 18px;
    background: linear-gradient(
        140deg,
        #fbfcf8 0%,
        #ffffff 100%
    );
    box-shadow: 0 8px 28px rgba(53, 66, 87, 0.04);
}

.home-weekly-schedule__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 17px;
}

.home-weekly-schedule__day {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 9px;
    background: #eef2e5;
    color: #647544;
    font-size: 13px;
    font-weight: 800;
}

.home-weekly-schedule__title {
    margin: 0 0 20px;
    color: #354257;
    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.8;
}

.home-weekly-schedule__detail {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 10px 0 0;
    color: #616d7a;
    font-size: 13px;
    line-height: 1.9;
}

.home-weekly-schedule__detail i {
    flex: 0 0 16px;
    margin-top: 6px;
    color: #788751;
    text-align: center;
}

.home-weekly-schedule__notice {
    padding: 6px 10px;
    border-radius: 8px;
    background: #fff2dc;
    color: #926015;
    font-size: 11px;
    font-weight: 800;
}

.home-weekly-schedule__notice--cancelled {
    background: #fff0ef;
    color: #a23a34;
}

.home-weekly-schedule__note {
    margin: 17px 0 0;
    padding: 12px 14px;
    border-radius: 10px;
    background: #f4f6ef;
    color: #526342;
    font-size: 12px;
    line-height: 1.9;
}

@media (max-width: 700px) {
    .home-weekly-schedule__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .home-weekly-schedule__card {
        padding: 20px;
        border-radius: 15px;
    }

    .home-weekly-schedule__title {
        font-size: 18px;
    }
}


/* =========================================================
   Weekly schedule UX v2: compact cards and full page
   ========================================================= */

.home-weekly-schedule__card {
    padding: 20px 22px;
    border-radius: 15px;
}

.home-weekly-schedule__top {
    margin-bottom: 11px;
}

.home-weekly-schedule__title {
    margin-bottom: 12px;
    font-size: clamp(16px, 1.75vw, 19px);
    line-height: 1.75;
}

.home-weekly-schedule__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 22px;
    color: #616d7a;
    font-size: 13px;
}

.home-weekly-schedule__meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    line-height: 1.7;
}

.home-weekly-schedule__meta i {
    color: #788751;
}

.home-weekly-schedule__scroll-tip {
    display: none;
}

/* Full schedule page */

.schedule-page__breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    color: #818a94;
    font-size: 13px;
}

.schedule-page__breadcrumb a {
    color: #71804d;
    text-decoration: none;
}

.schedule-page__hero {
    padding: 34px 38px;
    border: 1px solid #e2e7da;
    border-radius: 20px;
    background: linear-gradient(
        125deg,
        #f6f8f0,
        #ffffff
    );
}

.schedule-page__hero h1 {
    margin: 3px 0 12px;
    color: #354257;
    font-size: clamp(27px, 4vw, 39px);
    line-height: 1.4;
}

.schedule-page__hero p {
    max-width: 750px;
    margin: 0;
    color: #747f8a;
    font-size: 15px;
    line-height: 2;
}

.schedule-page__hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 25px;
    margin-top: 23px;
    color: #66764b;
    font-size: 13px;
    font-weight: 700;
}

.schedule-page__hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.schedule-page__heading {
    margin: 38px 0 20px;
}

.schedule-page__heading h2 {
    margin: 0;
    color: #354257;
    font-size: 23px;
}

.schedule-page__heading p {
    margin: 7px 0 0;
    color: #7e8790;
    font-size: 13px;
}

.schedule-page__list {
    display: grid;
    gap: 16px;
}

.schedule-page__row {
    display: grid;
    grid-template-columns: 135px minmax(0, 1fr);
    gap: 24px;
    padding: 24px;
    border: 1px solid #e3e8db;
    border-radius: 16px;
    background: #fff;
}

.schedule-page__weekday {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 120px;
    padding: 20px;
    border-radius: 12px;
    background: #f1f4e9;
    color: #66774a;
    text-align: center;
}

.schedule-page__weekday i {
    font-size: 23px;
}

.schedule-page__weekday strong {
    font-size: 17px;
}

.schedule-page__body {
    min-width: 0;
    align-self: center;
}

.schedule-page__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.schedule-page__top h3 {
    margin: 0;
    color: #354257;
    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.7;
}

.schedule-page__detail {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin: 9px 0 0;
    color: #626e7b;
    font-size: 14px;
    line-height: 1.9;
}

.schedule-page__detail i {
    flex: 0 0 17px;
    margin-top: 6px;
    color: #788751;
    text-align: center;
}

.schedule-page__note,
.schedule-page__cancelled {
    margin: 16px 0 0;
    padding: 12px 15px;
    border-radius: 10px;
    background: #f5f6ef;
    color: #576b45;
    font-size: 13px;
    line-height: 1.9;
}

.schedule-page__cancelled {
    background: #fff0ef;
    color: #a23a34;
}

.schedule-page__empty {
    margin-top: 28px;
    padding: 32px;
    border: 1px solid #e3e8db;
    border-radius: 14px;
    color: #747f8a;
    text-align: center;
}

@media (max-width: 700px) {
    .home-weekly-schedule__grid {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 2px;
        overscroll-behavior-inline: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 2px 2px 12px;
    }

    .home-weekly-schedule__grid::-webkit-scrollbar {
        display: none;
    }

    .home-weekly-schedule__grid:focus-visible {
        outline: 2px solid #788751;
        outline-offset: 2px;
        border-radius: 8px;
    }

    .home-weekly-schedule__card {
        flex: 0 0 82%;
        max-width: 340px;
        scroll-snap-align: start;
        padding: 17px;
    }

    .home-weekly-schedule__title {
        font-size: 16px;
        line-height: 1.7;
    }

    .home-weekly-schedule__meta {
        gap: 8px 14px;
        font-size: 12px;
    }

    .home-weekly-schedule__scroll-tip {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        margin: 5px 0 0;
        color: #7a8590;
        font-size: 11px;
    }

    .schedule-page__hero {
        padding: 24px 20px;
        border-radius: 15px;
    }

    .schedule-page__hero p {
        font-size: 13px;
    }

    .schedule-page__row {
        grid-template-columns: minmax(0, 1fr);
        gap: 17px;
        padding: 18px;
    }

    .schedule-page__weekday {
        flex-direction: row;
        justify-content: flex-start;
        min-height: 0;
        padding: 12px 15px;
    }

    .schedule-page__weekday i {
        font-size: 18px;
    }

    .schedule-page__weekday strong {
        font-size: 15px;
    }

    .schedule-page__detail {
        font-size: 13px;
    }
}
