
:root { --bg: #0b1120; --surface: #111827; --surface-2: #1e293b; --border: #273449; --text: #f1f5f9; --muted: #94a3b8; --primary: #6366f1; --primary-hover: #818cf8; --accent: #06b6d4; --success: #10b981; --danger: #f87171; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }
.container { max-width: 1360px; margin: 0 auto; padding: 0 20px; }
.navbar { position: sticky; inset-block-start: 0; z-index: 40; background: rgba(11, 17, 32, 0.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; padding: 8px 20px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-badge { width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(135deg, var(--primary), var(--accent)); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.95rem; color: #fff; }
.brand-text { display: flex; flex-direction: column; }
.brand-title { font-weight: 700; font-size: 1.02rem; letter-spacing: -0.01em; }
.brand-sub { font-size: 0.75rem; color: var(--muted); }
.nav-links { display: flex; gap: 20px; font-size: 0.9rem; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.header-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.search-wrap input { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; color: var(--text); padding: 8px 14px; width: 230px; font-size: 0.88rem; outline: none; }
.search-wrap input:focus { border-color: var(--primary); }
.auth-actions { display: flex; align-items: center; gap: 8px; }
.btn-primary, .btn-ghost, .btn-outline { border-radius: 8px; padding: 8px 15px; font-size: 0.86rem; font-weight: 600; cursor: pointer; border: 1px solid transparent; transition: background 0.15s, border-color 0.15s; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: #475569; background: var(--surface); }
.btn-outline { background: rgba(15, 23, 42, 0.8); color: var(--text); border-color: #475569; }
.btn-outline:hover { border-color: var(--primary); }
.full-width { width: 100%; padding: 11px 16px; font-size: 0.95rem; }
.user-pill { display: inline-flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1px solid var(--border); padding: 6px 12px; border-radius: 999px; font-size: 0.84rem; font-weight: 600; }
.user-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.theater-section { padding: 28px 0 36px; border-bottom: 1px solid var(--border); }
.theater-grid { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(310px, 1fr); gap: 24px; align-items: start; }
.video-frame { position: relative; background: #000; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.48); aspect-ratio: 16 / 9; }
.video-frame video, .poster-preview { width: 100%; height: 100%; display: block; object-fit: contain; background: #000; }
.poster-preview { position: absolute; inset: 0; object-fit: cover; filter: brightness(0.42) blur(1px); }
.auth-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 20px; background: radial-gradient(circle at center, rgba(15, 23, 42, 0.55), rgba(2, 6, 23, 0.85)); }
.overlay-card { max-width: 440px; text-align: center; background: rgba(17, 24, 39, 0.92); border: 1px solid #334155; border-radius: 14px; padding: 24px 26px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6); }
.lock-icon { width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 50%; background: rgba(99, 102, 241, 0.16); color: #a5b4fc; display: flex; align-items: center; justify-content: center; }
.overlay-card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.overlay-card p { margin: 0 0 18px; font-size: 0.88rem; color: var(--muted); }
.overlay-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.now-playing-card { margin-block-start: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px 24px; }
.now-meta-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pill { display: inline-block; font-size: 0.78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(99, 102, 241, 0.16); color: #a5b4fc; border: 1px solid rgba(99, 102, 241, 0.35); }
.meta-text { font-size: 0.84rem; color: var(--muted); }
.btn-complete { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 6px 14px; font-size: 0.83rem; font-weight: 600; cursor: pointer; }
.btn-complete:hover { border-color: var(--primary); }
.btn-complete.done { background: rgba(16, 185, 129, 0.16); border-color: var(--success); color: #6ee7b7; }
.active-title { margin: 12px 0 6px; font-size: 1.4rem; line-height: 1.3; }
.instructor-line { font-size: 0.85rem; color: var(--accent); margin-bottom: 10px; font-weight: 500; }
.active-desc { margin: 0 0 16px; color: var(--muted); font-size: 0.94rem; }
.takeaways-box { background: rgba(15, 23, 42, 0.7); border: 1px solid var(--border); border-radius: 10px; padding: 14px 18px; }
.takeaways-box h3 { margin: 0 0 8px; font-size: 0.92rem; color: #cbd5e1; }
.topic-list { margin: 0; padding-left: 20px; color: var(--muted); font-size: 0.88rem; }
.topic-list li { margin-bottom: 4px; }
.queue-column { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px; max-height: 760px; display: flex; flex-direction: column; }
.queue-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.queue-header h2 { margin: 0; font-size: 1.05rem; }
.queue-sub-label { font-size: 0.76rem; color: var(--muted); }
.progress-badge { font-size: 0.8rem; color: var(--accent); font-weight: 600; }
.queue-list { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; padding-right: 4px; }
.queue-item { display: flex; gap: 11px; padding: 8px; border-radius: 10px; border: 1px solid transparent; background: rgba(30, 41, 59, 0.42); cursor: pointer; }
.queue-item:hover { background: var(--surface-2); border-color: var(--border); }
.queue-item.active { background: rgba(99, 102, 241, 0.14); border-color: var(--primary); }
.queue-thumb { width: 106px; height: 60px; border-radius: 6px; object-fit: cover; flex-shrink: 0; background: #000; }
.queue-info { min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.queue-title { font-size: 0.84rem; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.queue-sub { font-size: 0.74rem; color: var(--muted); margin-block-start: 4px; }
.catalog-section { padding: 40px 0; border-bottom: 1px solid var(--border); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.section-head h2 { margin: 0 0 6px; font-size: 1.35rem; }
.section-sub { margin: 0; color: var(--muted); font-size: 0.93rem; max-width: 760px; }
.filter-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-btn { background: var(--surface); color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 7px 14px; font-size: 0.82rem; font-weight: 600; cursor: pointer; }
.filter-btn:hover { color: var(--text); border-color: #475569; }
.filter-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.course-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; cursor: pointer; transition: transform 0.16s, border-color 0.16s; display: flex; flex-direction: column; }
.course-card:hover { transform: translateY(-3px); border-color: var(--primary); }
.card-poster-wrap { position: relative; aspect-ratio: 16 / 9; background: #000; }
.card-poster-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.duration-tag { position: absolute; right: 8px; bottom: 8px; background: rgba(0, 0, 0, 0.82); color: #fff; font-size: 0.74rem; font-weight: 600; padding: 2px 8px; border-radius: 6px; }
.lock-badge { position: absolute; left: 8px; inset-block-start: 8px; background: rgba(15, 23, 42, 0.82); color: #cbd5e1; font-size: 0.72rem; font-weight: 600; padding: 2px 8px; border-radius: 6px; border: 1px solid #334155; }
.card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.card-cat { font-size: 0.74rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.04em; }
.card-title { margin: 6px 0 8px; font-size: 1rem; font-weight: 700; line-height: 1.35; }
.card-desc { margin: 0; font-size: 0.85rem; color: var(--muted); flex: 1; }
.card-footer { margin-block-start: 14px; padding-block-start: 12px; border-block-start: 1px solid var(--border); display: flex; justify-content: space-between; font-size: 0.79rem; color: var(--muted); }
.roadmap-section, .faq-section { padding: 40px 0; border-bottom: 1px solid var(--border); }
.roadmap-section h2, .faq-section h2 { margin: 0 0 20px; font-size: 1.35rem; }
.roadmap-grid, .faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.roadmap-card, .faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px; }
.step-num { font-size: 0.76rem; font-weight: 700; color: var(--primary-hover); text-transform: uppercase; }
.roadmap-card h3, .faq-item h3 { margin: 6px 0 8px; font-size: 1.03rem; }
.roadmap-card p, .faq-item p { margin: 0; font-size: 0.87rem; color: var(--muted); }
.site-footer { padding: 24px 0 36px; font-size: 0.84rem; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-license a { color: var(--accent); text-decoration: underline; }
.modal-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(2, 6, 23, 0.78); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-card { position: relative; width: 100%; max-width: 420px; background: var(--surface); border: 1px solid #334155; border-radius: 16px; padding: 24px 26px 28px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65); }
.modal-close { position: absolute; right: 14px; inset-block-start: 12px; background: transparent; border: none; color: var(--muted); font-size: 1.6rem; cursor: pointer; line-height: 1; }
.modal-close:hover { color: var(--text); }
.modal-tabs { display: flex; gap: 8px; margin-bottom: 18px; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
.modal-tab { background: transparent; border: none; color: var(--muted); font-weight: 700; font-size: 0.92rem; cursor: pointer; padding: 6px 12px; border-radius: 8px; }
.modal-tab.active { background: rgba(99, 102, 241, 0.16); color: #a5b4fc; }
.auth-form h2 { margin: 0 0 4px; font-size: 1.25rem; }
.modal-sub { margin: 0 0 16px; font-size: 0.84rem; color: var(--muted); }
.auth-form label { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; font-size: 0.84rem; color: #cbd5e1; }
.auth-form input { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; color: var(--text); padding: 10px 12px; font-size: 0.92rem; outline: none; }
.auth-form input:focus { border-color: var(--primary); }
.captcha-row { display: flex; align-items: center; gap: 10px; }
.captcha-svg { cursor: pointer; flex-shrink: 0; line-height: 0; }
.captcha-row input { flex: 1; min-width: 0; }
.form-error { background: rgba(248, 113, 113, 0.12); border: 1px solid rgba(248, 113, 113, 0.4); color: var(--danger); font-size: 0.84rem; padding: 8px 12px; border-radius: 8px; margin-bottom: 14px; }
@media (max-width: 980px) { .theater-grid { grid-template-columns: 1fr; } .queue-column { max-height: 420px; } }
