/* ========== Hero μαθήματος ========== */
.sec-course-hero { --stats-overlap: 0px; padding: 0; }
.sec-course-hero.has-stats { --stats-overlap: 64px; }

.ch__band {
    background: var(--c-dark);
    color: var(--c-white);
    padding-block: clamp(3rem, 6vw, 4.5rem) calc(clamp(3rem, 6vw, 4.5rem) + var(--stats-overlap));
}

.ch {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 4rem);
}

.ch__content .eyebrow { color: var(--c-yellow); margin-bottom: 1rem; }
.ch__title { font-size: clamp(2rem, 1.35rem + 2.6vw, 3.25rem); color: var(--c-white); }
.ch__title .hl { color: var(--c-yellow); }
.ch__lead { margin-top: 1.25rem; max-width: 520px; font-size: var(--fs-lg); color: rgb(255 255 255 / .85); }
.ch__content .btn-row { margin-top: 2rem; }
.ch__note { margin-top: 1rem; font-size: var(--fs-sm); color: rgb(255 255 255 / .72); }

.ch__shot img { width: 100%; border-radius: var(--r-lg); box-shadow: 0 24px 60px rgb(0 0 0 / .35); }

/* ---------- Mockup του player ---------- */
.player {
    padding: 1rem;
    border-radius: var(--r-lg);
    background: var(--c-white);
    color: var(--c-text);
    box-shadow: 0 24px 60px rgb(0 0 0 / .35);
}
.player__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .5rem .75rem;
    padding: .15rem .25rem .9rem;
}
.player__course { font-size: var(--fs-sm); font-weight: 800; color: var(--c-dark); }
.player__chip {
    padding: .25rem .75rem;
    border-radius: var(--r-pill);
    background: var(--c-mint);
    color: var(--c-teal);
    font-size: var(--fs-xs);
    font-weight: 700;
}

.player__body { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: .9rem; }

.player__screen {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    min-height: 236px;
    padding: 1.25rem;
    border-radius: var(--r-md);
    background: var(--c-teal);
    color: var(--c-white);
}
.player__label { font-size: var(--fs-xs); font-weight: 700; color: var(--c-mint); }
.player__formula { font-size: clamp(1.4rem, 1rem + 1.4vw, 1.9rem); font-weight: 800; letter-spacing: .02em; line-height: 1.2; }
.player__formula .hl { color: var(--c-yellow); }

.player__bar { display: flex; align-items: center; gap: .75rem; }
.player__play {
    flex: none;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--c-orange);
    color: var(--c-white);
}
.player__play .icon { width: 16px; height: 16px; }
.player__track { flex: 1; height: 6px; overflow: hidden; border-radius: var(--r-pill); background: rgb(255 255 255 / .28); }
.player__track span { display: block; height: 100%; background: var(--c-yellow); }

.player__title { margin-top: .6rem; font-size: var(--fs-sm); font-weight: 700; color: var(--c-dark); }

.player__list { display: grid; align-content: start; gap: .5rem; font-size: .8125rem; line-height: 1.35; }
.player__item {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .7rem .75rem;
    border: 1px solid var(--c-line);
    border-radius: 10px;
}
.player__item .player__state { width: 18px; height: 18px; }
.player__item--done .player__state { color: var(--c-teal); }
.player__item--current { border-color: transparent; background: var(--c-peach); font-weight: 700; }
.player__item--current .player__state { color: var(--c-orange); }
.player__item--todo .player__state { color: #9db3b3; }
.player__item--locked { border-color: transparent; background: var(--c-mint-50); color: #4a5d64; }

/* ---------- Παραλλαγή «ζωντανό μάθημα» ---------- */
.player__course { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.player__live {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .2rem .6rem;
    border-radius: var(--r-pill);
    background: #fde4e4;
    color: #b42318;
    font-size: var(--fs-xs);
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.player__live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #d92d20; animation: ch-pulse 1.6s ease-in-out infinite; }
@keyframes ch-pulse { 50% { opacity: .35; } }

.player__seats { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; }
.player__avatars { display: flex; }
.player__avatar {
    display: grid;
    place-items: end center;
    width: 34px;
    height: 34px;
    margin-left: -8px;
    overflow: hidden;
    border: 2px solid var(--c-teal);
    border-radius: 50%;
    background: var(--c-mint);
    color: var(--c-teal-600);
}
.player__avatar:first-child { margin-left: 0; }
.player__avatar:nth-child(3n + 2) { background: var(--c-peach); color: var(--c-orange-600); }
.player__avatar:nth-child(3n) { background: #fff1c2; color: #c28e00; }
.player__avatar svg { width: 26px; height: 26px; }
.player__seats-label { font-size: var(--fs-xs); font-weight: 700; color: var(--c-mint); }

/* ---------- Stats ---------- */
.ch__stats {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(.75rem, 2vw, 1.25rem);
    margin-top: calc(-1 * var(--stats-overlap));
}
.ch-stat {
    display: grid;
    align-content: center;
    gap: .5rem;
    min-height: 112px;
    padding: 1.5rem 1rem;
    border-radius: var(--r-md);
    background: var(--c-white);
    box-shadow: var(--shadow-card);
    text-align: center;
}
.ch-stat__num { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); font-weight: 800; line-height: 1; letter-spacing: -.02em; color: var(--c-teal); }
.ch-stat__label { font-size: var(--fs-sm); font-weight: 600; line-height: 1.35; color: var(--c-dark); }
.ch-stat--orange .ch-stat__num { color: var(--c-orange); }
.ch-stat--yellow .ch-stat__num { color: #c28e00; }

/* Το επόμενο section δεν χρειάζεται τόσο μεγάλο κενό πάνω, τα stats κάνουν ήδη απόσταση. */
.sec-course-hero.has-stats + .section { padding-top: calc(var(--section-y) * .75); }

@media (max-width: 1023px) {
    .ch { grid-template-columns: 1fr; }
    .ch__media { max-width: 620px; }
}
@media (max-width: 767px) {
    .ch__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
    .player__body { grid-template-columns: 1fr; }
    .player__screen { min-height: 200px; }
}
