/* Lesson Lab — original stylesheet (not derived from any third party) */

* { margin: 0; padding: 0; box-sizing: border-box }

:root {
    --bg: #14161a;
    --panel: #1d2026;
    --line: rgba(255, 255, 255, .08);
    --text: #f2f4f8;
    --muted: #8b93a7;
    --teal: #2dd4bf;
    --sky: #38bdf8;
    --radius: 16px;
}

html { scroll-behavior: smooth }

body {
    font-family: "Nunito", system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ambient glows */
.glow-a, .glow-b {
    position: fixed; inset: auto; z-index: 0; pointer-events: none;
    width: 55vw; height: 55vw; border-radius: 50%; filter: blur(120px); opacity: .16;
}
.glow-a { top: -20vw; left: -15vw; background: var(--teal) }
.glow-b { bottom: -25vw; right: -15vw; background: #3b82f6 }

/* ---------- nav ---------- */
.nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(20, 22, 26, .75);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.nav-inner {
    max-width: 1300px; margin: 0 auto; padding: 10px 20px;
    display: flex; align-items: center; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); margin-right: auto }
.brand-icon { font-size: 26px }
.brand-text { display: flex; flex-direction: column; line-height: 1.1 }
.brand-text strong { font-size: 22px; font-weight: 900; letter-spacing: -.5px }
.brand-text small { color: var(--muted); font-size: 11px; font-weight: 600 }

.nav-links { display: flex; gap: 4px }
.nav-links a {
    color: var(--muted); text-decoration: none; font-weight: 700; font-size: 14px;
    padding: 8px 14px; border-radius: 10px; transition: .2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,.06) }
.nav-links a.panic { color: #fca5a5 }
.nav-links a.panic:hover { background: rgba(248,113,113,.12) }

.burger { display: none; background: none; border: 0; color: var(--text); font-size: 22px; cursor: pointer }

/* ---------- layout ---------- */
.page { position: relative; z-index: 1; max-width: 1300px; margin: 0 auto; padding: 0 20px 40px }

/* ---------- hero ---------- */
.hero { text-align: center; padding: 48px 0 8px }
.hero h1 { font-size: clamp(40px, 7vw, 64px); font-weight: 900; letter-spacing: -2px }
.hero .tagline { color: var(--muted); font-size: 17px; font-weight: 600; margin-top: 4px }

.cta {
    margin: 26px auto 0; display: inline-block;
    font: inherit; font-size: 20px; font-weight: 900;
    padding: 16px 42px; border: 0; border-radius: 999px; cursor: pointer;
    color: #06202a; background: linear-gradient(100deg, var(--teal), var(--sky));
    box-shadow: 0 12px 34px rgba(45,212,191,.28);
    transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s;
}
.cta:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 18px 44px rgba(45,212,191,.4) }
.cta:active { transform: translateY(-1px) scale(.99) }

/* ---------- search + chips ---------- */
.searchbar { display: flex; justify-content: center; margin-top: 26px }
#search {
    width: min(540px, 92%); font: inherit; font-size: 15px; font-weight: 600;
    color: var(--text); background: var(--panel);
    border: 1px solid var(--line); border-radius: 999px;
    padding: 13px 22px; outline: none; transition: .2s;
}
#search::placeholder { color: var(--muted) }
#search:focus { border-color: rgba(45,212,191,.55); box-shadow: 0 0 0 4px rgba(45,212,191,.12) }

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px }
.chip {
    font: inherit; font-size: 13px; font-weight: 800;
    padding: 7px 16px; border-radius: 999px; cursor: pointer;
    color: var(--muted); background: rgba(255,255,255,.04);
    border: 1px solid var(--line); transition: .2s;
}
.chip:hover { color: var(--text); border-color: rgba(45,212,191,.5) }
.chip.on { color: #06202a; background: linear-gradient(100deg, var(--teal), var(--sky)); border-color: transparent }

/* ---------- tiles grid ---------- */
.tiles {
    display: grid; gap: 18px; margin-top: 34px;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}
.tile {
    display: block; text-decoration: none; border-radius: var(--radius);
    background: var(--panel); border: 1px solid var(--line);
    overflow: hidden; cursor: pointer;
    transition: transform .25s cubic-bezier(.34,1.56,.64,1), border-color .2s, box-shadow .25s;
}
.tile:hover {
    transform: translateY(-6px);
    border-color: rgba(45,212,191,.55);
    box-shadow: 0 16px 38px rgba(0,0,0,.45);
}
.tile-img { position: relative; aspect-ratio: 16/10; overflow: hidden; background: linear-gradient(135deg,#134e4a,#1e293b) }
.tile-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s }
.tile:hover .tile-img img { transform: scale(1.08) }

.tile-fb {
    width: 100%; height: 100%; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 8px;
    font-weight: 900; font-size: 15px; text-align: center; padding: 10px; line-height: 1.25;
}
.tile-fb .fv { width: 24px; height: 24px; border-radius: 6px; background: rgba(255,255,255,.92); padding: 3px; object-fit: contain }

.tile-name {
    padding: 12px 14px 14px; font-weight: 800; font-size: 14px; color: var(--text);
    text-align: center; line-height: 1.3; min-height: 3.2em;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.empty { text-align: center; color: var(--muted); padding: 60px 0; font-size: 16px; font-weight: 600 }

/* ---------- about / seo ---------- */
.about {
    margin: 60px auto 0; max-width: 860px;
    background: var(--panel); border: 1px solid var(--line);
    border-radius: 20px; padding: 34px;
}
.about h2 { font-size: 24px; font-weight: 900; margin-bottom: 14px; letter-spacing: -.5px }
.about h3 { font-size: 16px; font-weight: 800; color: #9fd9d0; margin: 22px 0 8px }
.about p, .about ul { color: #aab1c4; line-height: 1.75; font-size: 14.5px; margin-bottom: 12px }
.about ul { margin-left: 20px }

/* ---------- player ---------- */
.player-card {
    max-width: 1000px; margin: 26px auto 0;
    background: var(--panel); border: 1px solid var(--line);
    border-radius: 22px; padding: 22px;
}
.crumb {
    display: inline-block; color: var(--muted); text-decoration: none;
    font-weight: 800; font-size: 14px; padding: 9px 16px;
    border: 1px solid var(--line); border-radius: 10px; transition: .2s;
}
.crumb:hover { color: var(--text); background: rgba(255,255,255,.06); transform: translateX(-3px) }

.pill {
    display: block; width: fit-content; margin: 20px auto;
    font-size: 19px; font-weight: 800; color: #9fd9d0;
    background: rgba(255,255,255,.04); border: 1px solid var(--line);
    padding: 8px 26px; border-radius: 999px;
}

.cover-wrap { position: relative; width: min(560px, 100%); margin: 0 auto; }
.cover {
    width: 100%; aspect-ratio: 16/9; object-fit: cover;
    border-radius: var(--radius); border: 1px solid var(--line); display: block;
}
.cover-tile {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 10px; font-weight: 900; font-size: 22px; text-align: center; padding: 16px;
}

.play {
    position: absolute; inset: 0; margin: auto;
    width: 92px; height: 92px; border-radius: 50%;
    font-size: 30px; padding-left: 8px; /* optical center for ▶ */
    border: 0; cursor: pointer; color: #06202a;
    background: linear-gradient(135deg, var(--teal), var(--sky));
    box-shadow: 0 14px 40px rgba(45,212,191,.45);
    transition: transform .25s cubic-bezier(.34,1.56,.64,1);
}
.play:hover { transform: scale(1.12) }
.play:active { transform: scale(1.02) }

.stage {
    display: none; position: relative; margin-top: 18px;
    border-radius: var(--radius); overflow: hidden;
    border: 1px solid rgba(45,212,191,.35);
    background: #000; height: min(640px, 72vh);
}
.stage.live { display: block; animation: pop .35s ease }
.stage:fullscreen { height: 100%; border-radius: 0; border: 0 }
.stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0 }

@keyframes pop { from { opacity: 0; transform: translateY(14px) } to { opacity: 1; transform: none } }

.stage-bar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; margin-top: 16px; flex-wrap: wrap;
}
.stage-name { font-weight: 800; color: var(--muted); font-size: 14px }
.stage-btns { display: flex; gap: 10px; flex-wrap: wrap }
.sbtn {
    font: inherit; font-size: 14px; font-weight: 800; cursor: pointer;
    padding: 11px 22px; border-radius: 12px;
    color: #06202a; background: linear-gradient(100deg, var(--teal), var(--sky));
    border: 0; transition: .2s;
}
.sbtn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(45,212,191,.3) }
.sbtn.ghost { color: var(--text); background: rgba(255,255,255,.06); border: 1px solid var(--line) }
.sbtn.ghost:hover { background: rgba(255,255,255,.12); box-shadow: none }

/* ---------- proxy view ---------- */
.proxy-sub { text-align: center; color: var(--muted); font-size: 14px; font-weight: 600; margin: -8px 0 18px }

.proxy-bar { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap }
.proxy-bar input {
    flex: 1 1 320px; max-width: 560px;
    font: inherit; font-size: 15px; font-weight: 600;
    color: var(--text); background: rgba(255,255,255,.04);
    border: 1px solid var(--line); border-radius: 12px;
    padding: 12px 18px; outline: none; transition: .2s;
}
.proxy-bar input:focus { border-color: rgba(45,212,191,.55); box-shadow: 0 0 0 4px rgba(45,212,191,.12) }

.proxy-note { text-align: center; color: var(--muted); font-size: 12.5px; margin-top: 14px }

/* ---------- footer ---------- */
.foot { position: relative; z-index: 1; text-align: center; color: var(--muted); font-size: 13px; font-weight: 600; padding: 34px 20px }

/* ---------- toast ---------- */
.toast {
    position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%);
    background: var(--panel); border: 1px solid var(--line); color: var(--text);
    font-weight: 800; font-size: 14px; padding: 12px 22px; border-radius: 12px;
    box-shadow: 0 12px 34px rgba(0,0,0,.5); z-index: 99; transition: opacity .35s;
}

/* ---------- responsive ---------- */
@media (max-width: 760px) {
    .nav-links {
        display: none; position: absolute; top: 58px; right: 14px;
        flex-direction: column; background: var(--panel);
        border: 1px solid var(--line); border-radius: 14px; padding: 8px; width: 200px;
        box-shadow: 0 18px 40px rgba(0,0,0,.5);
    }
    .nav-links.open { display: flex }
    .burger { display: block }
    .tiles { grid-template-columns: repeat(auto-fill, minmax(135px, 1fr)); gap: 14px }
    .stage { height: 62vh }
    .about { padding: 24px }
}
