/* ==========================================================================
   Λυσάρια: σελίδα μαθήματος και κεφαλαίου
   ========================================================================== */
.lys-head { padding-block: clamp(2rem, 5vw, 3.5rem); }
.lys-head__inner { display: grid; gap: .9rem; justify-items: start; max-width: 880px; }
.lys-head__title { font-size: clamp(1.8rem, 1.2rem + 2.2vw, 2.8rem); }
.lys-head__sub { font-weight: 600; color: var(--c-muted); }
.lys-head__sub a { color: var(--c-teal); }
.lys-head__sub a:hover { text-decoration: underline; text-underline-offset: 3px; }
.lys-badge {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .3rem .8rem; border-radius: var(--r-pill);
    background: var(--c-peach); color: var(--c-orange-600);
    font-size: var(--fs-xs); font-weight: 800;
}
.lys-stats { display: flex; flex-wrap: wrap; gap: .5rem; margin: .25rem 0 0; padding: 0; list-style: none; }
.lys-stats li {
    padding: .45rem .9rem; border: 1px solid var(--c-line); border-radius: var(--r-pill);
    background: rgb(255 255 255 / .85); font-size: var(--fs-sm); color: var(--c-muted);
}
.lys-stats strong { color: var(--c-dark); }

/* Layout */
.lys-layout {
    display: grid; grid-template-columns: minmax(0, 1fr) 320px; align-items: start;
    gap: clamp(1.5rem, 4vw, 3rem);
    padding-block: clamp(2rem, 4vw, 3rem) var(--section-y);
}
.lys-layout--chapter { padding-top: clamp(1.5rem, 3vw, 2rem); }
.lys-aside { position: sticky; top: 1.5rem; display: grid; gap: 1rem; }
.lys-box { padding: 1.35rem; border: 1px solid var(--c-line); border-radius: var(--r-lg); background: var(--c-white); }
.lys-box__title { margin-bottom: .85rem; font-size: var(--fs-xs); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); }
.lys-intro { margin-bottom: 2rem; }
.lys-empty { color: var(--c-muted); }

/* Ενότητες και κεφάλαια */
.lys-unit + .lys-unit { margin-top: 2rem; }
.lys-unit__title { margin-bottom: .75rem; font-size: var(--fs-h4); color: var(--c-teal); }
.lys-chapters { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.lys-chapter {
    display: flex; align-items: center; gap: .9rem;
    padding: .8rem 1rem; border: 1px solid var(--c-line); border-radius: var(--r-md);
    background: var(--c-white);
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.lys-chapter:hover { border-color: var(--c-teal); box-shadow: var(--shadow-card); }
.lys-chapter__num {
    display: grid; place-items: center; flex: none;
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--c-mint); color: var(--c-teal); font-size: var(--fs-xs); font-weight: 800;
}
.lys-chapter__body { display: grid; gap: .1rem; min-width: 0; }
.lys-chapter__body strong { font-size: var(--fs-sm); color: var(--c-dark); line-height: 1.35; }
.lys-chapter__body small { font-size: var(--fs-xs); font-weight: 600; color: var(--c-muted); }
.lys-chapter__play {
    display: grid; place-items: center; flex: none; margin-left: auto;
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--c-orange); color: var(--c-white); font-size: .8rem;
    opacity: .85; transition: opacity .2s var(--ease), scale .2s var(--ease);
}
.lys-chapter:hover .lys-chapter__play { opacity: 1; scale: 1.08; }

.lys-links { display: grid; margin: 0; padding: 0; list-style: none; }
.lys-links li + li { border-top: 1px solid var(--c-line); }
.lys-links a { display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-height: 44px; font-size: var(--fs-sm); font-weight: 700; color: var(--c-dark); }
.lys-links a:hover { color: var(--c-teal); }
.lys-links .icon { color: var(--c-teal); }

/* Promo courses */
.lys-promo { display: grid; gap: .6rem; border: 0; background: var(--c-dark); color: rgb(255 255 255 / .82); }
.lys-promo__eyebrow { font-size: var(--fs-xs); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--c-yellow); }
.lys-promo__title { font-size: var(--fs-lg); font-weight: 800; line-height: 1.3; color: var(--c-white); }
.lys-promo__title .hl { color: var(--c-yellow); }
.lys-promo__text { font-size: var(--fs-sm); }
.lys-promo .btn { margin-top: .4rem; gap: .5rem; }

/* Player + λίστα */
.lys-watch {
    display: grid; grid-template-columns: minmax(0, 1fr) 360px; align-items: start;
    gap: 1.25rem; margin-top: clamp(1.5rem, 3vw, 2rem);
}
.lys-player__frame {
    position: relative; aspect-ratio: 16 / 9; overflow: hidden;
    border-radius: var(--r-lg); background: var(--c-dark); box-shadow: var(--shadow-lift);
}
.lys-player__frame iframe,
.lys-player__frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lys-player__soon { display: grid; place-content: center; justify-items: center; gap: .75rem; height: 100%; padding: 1.5rem; text-align: center; color: rgb(255 255 255 / .8); font-weight: 600; }
.lys-player__soon .icon { font-size: 2.5rem; color: var(--c-yellow); }
.lys-player__now { margin-top: .75rem; font-weight: 800; color: var(--c-dark); }

.lys-playlist { max-height: min(70vh, 560px); overflow-y: auto; padding: 1rem; border: 1px solid var(--c-line); border-radius: var(--r-lg); background: var(--c-white); }
.lys-playlist__list { display: grid; gap: .25rem; margin: 0; padding: 0; list-style: none; }
.lys-item {
    display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: .6rem;
    width: 100%; min-height: 44px; padding: .45rem .6rem;
    border: 0; border-radius: var(--r-sm); background: none;
    font-size: var(--fs-sm); text-align: left; color: var(--c-dark);
}
button.lys-item:hover,
a.lys-item:hover { background: var(--c-mint-50); }
.lys-item.is-active { background: var(--c-mint); }
.lys-item__icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--c-mint-50); color: var(--c-teal); font-size: .75rem; }
.lys-item.is-active .lys-item__icon { background: var(--c-teal); color: var(--c-white); }
.lys-item__title { font-weight: 600; line-height: 1.35; }
.lys-item__time { font-size: var(--fs-xs); font-weight: 700; color: var(--c-muted); white-space: nowrap; }
.lys-item.is-soon { color: var(--c-muted); }
.lys-item--file .lys-item__time .icon { rotate: 45deg; }

/* Pager */
.lys-pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.lys-pager__link { display: grid; gap: .2rem; padding: 1rem 1.15rem; border: 1px solid var(--c-line); border-radius: var(--r-md); background: var(--c-white); }
.lys-pager__link:hover { border-color: var(--c-teal); }
.lys-pager__link small { font-size: var(--fs-xs); font-weight: 700; color: var(--c-muted); }
.lys-pager__link strong { font-size: var(--fs-sm); color: var(--c-dark); line-height: 1.35; }
.lys-pager__link--next { grid-column: 2; text-align: right; }
.lys-back { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; margin-top: 1.25rem; font-weight: 700; color: var(--c-teal); }
.lys-back:hover { color: var(--c-orange); }
.lys-back__icon { rotate: 180deg; }

@media (max-width: 960px) {
    .lys-layout, .lys-watch { grid-template-columns: 1fr; }
    .lys-aside { position: static; }
    .lys-playlist { max-height: none; }
}
@media (max-width: 560px) {
    .lys-pager { grid-template-columns: 1fr; }
    .lys-pager__link--next { grid-column: auto; }
}
