:root {
  --bg: #0b0c10;
  --panel: #14161c;
  --panel-2: #1a1d25;
  --line: #242833;
  --fg: #e7eaf0;
  --muted: #8b93a7;
  --accent: #a855f7;
  --accent-2: #7c3aed;
  --good: #22c55e;
  --radius: 12px;
}
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg); color: var(--fg);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px;
  background: rgba(11,12,16,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 12px var(--accent);
}
.wordmark { font-weight: 700; letter-spacing: -0.3px; font-size: 16px; }
.ghost-btn {
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 12px; color: var(--muted); transition: all .15s ease;
}
.ghost-btn:hover { border-color: var(--accent); color: var(--fg); }

/* landing */
.hero {
  padding: 64px 28px 32px; max-width: 1200px; margin: 0 auto;
}
.hero h1 {
  font-size: 40px; line-height: 1.15; margin: 0 0 12px;
  font-weight: 700; letter-spacing: -0.8px;
  background: linear-gradient(135deg, #fff 0%, #b8b3ff 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p { color: var(--muted); font-size: 16px; max-width: 640px; margin: 0 0 28px; }

.course-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px; max-width: 1200px; margin: 0 auto; padding: 0 28px 64px;
}
.course-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .18s ease, border-color .18s ease;
  cursor: pointer;
}
.course-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 12px 40px rgba(168,85,247,0.15);
}
.course-card .thumb {
  height: 160px;
  background:
    radial-gradient(circle at 20% 20%, rgba(168,85,247,0.35), transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(124,58,237,0.35), transparent 60%),
    linear-gradient(135deg, #1a1d25, #101217);
  display: flex; align-items: flex-end; padding: 14px;
  position: relative;
}
.course-card .thumb .tag {
  font-size: 11px; font-weight: 600; letter-spacing: 0.4px;
  padding: 4px 8px; border-radius: 6px;
  background: rgba(0,0,0,0.55); backdrop-filter: blur(6px);
  color: #d3c7ff; border: 1px solid rgba(168,85,247,0.3);
}
.course-card .body { padding: 16px 18px; }
.course-card h3 { margin: 0 0 6px; font-size: 16px; font-weight: 600; line-height: 1.35; }
.course-card .meta { color: var(--muted); font-size: 13px; display: flex; gap: 14px; flex-wrap: wrap; }
.course-card .meta span::before { content: '• '; color: var(--accent); margin-right: 2px; }
.course-card .meta span:first-child::before { content: ''; margin-right: 0; }

/* player layout */
.player-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 0;
  min-height: calc(100vh - 61px);
}
.player-main { padding: 20px 28px 60px; min-width: 0; }
.video-shell {
  background: #000; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); position: relative;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}
.video-shell video { width: 100%; display: block; max-height: 68vh; background: #000; }
.player-title { margin: 18px 0 6px; font-size: 22px; font-weight: 600; letter-spacing: -0.3px; }
.player-sub { color: var(--muted); font-size: 13px; margin-bottom: 18px; }

.assets {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px; margin-top: 20px;
}
.asset {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  background: var(--panel); border: 1px solid var(--line);
  transition: all .15s ease; font-size: 13px;
}
.asset:hover { border-color: var(--accent); background: var(--panel-2); }
.asset .ico {
  width: 30px; height: 30px; border-radius: 6px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #2a1e4a, #1a1330);
  font-size: 14px; font-weight: 700; color: var(--accent);
}
.asset .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* sidebar */
.sidebar {
  border-left: 1px solid var(--line); background: var(--panel);
  position: sticky; top: 61px; height: calc(100vh - 61px);
  display: flex; flex-direction: column;
}
.sidebar-head {
  padding: 16px 18px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
}
.sidebar-head h2 { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: 0.2px; }
.back-link { font-size: 12px; color: var(--muted); }
.back-link:hover { color: var(--accent); }
.sidebar-body { flex: 1; overflow-y: auto; padding: 8px 0 40px; }
.sidebar-body::-webkit-scrollbar { width: 8px; }
.sidebar-body::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }

.section { border-bottom: 1px solid var(--line); }
.section-head {
  padding: 12px 18px; cursor: pointer; user-select: none;
  display: flex; align-items: center; gap: 10px;
  transition: background .12s ease;
}
.section-head:hover { background: var(--panel-2); }
.section-head .chev {
  width: 14px; height: 14px; flex-shrink: 0;
  transition: transform .18s ease;
  opacity: 0.6;
}
.section.collapsed .chev { transform: rotate(-90deg); }
.section.collapsed .lessons { display: none; }
.section-head .title { font-size: 13px; font-weight: 600; flex: 1; }
.section-head .count {
  font-size: 11px; color: var(--muted);
  padding: 2px 8px; background: var(--panel-2); border-radius: 10px;
}
.lessons { padding: 4px 0 10px; }
.lesson {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 18px 9px 42px; font-size: 13px;
  cursor: pointer; color: #c1c7d6;
  transition: background .12s ease;
  position: relative;
}
.lesson:hover { background: var(--panel-2); color: var(--fg); }
.lesson.active { background: rgba(168,85,247,0.12); color: #fff; }
.lesson.active::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--accent);
}
.lesson .play {
  width: 16px; height: 16px; flex-shrink: 0; opacity: 0.6;
}
.lesson.active .play { opacity: 1; color: var(--accent); }
.lesson .name {
  flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* misc */
.center { display: flex; align-items: center; justify-content: center; min-height: 60vh; color: var(--muted); }

@media (max-width: 980px) {
  .player-wrap { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; max-height: 50vh; }
  .hero h1 { font-size: 30px; }
}

body{
margin:0;
font-family:system-ui;
background:#0b0b0b;
color:white;
}

.hero{
padding:30px;
text-align:center;
}

.courses{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
gap:20px;
padding:20px;
}


.course-card{
background:#161616;
padding:20px;
border-radius:18px;
cursor:pointer;
}


.course-card button{
width:100%;
padding:12px;
border:0;
border-radius:10px;
}


.layout{
display:flex;
gap:20px;
padding:15px;
}


.main-player{
flex:1;
}


video{
width:100%;
max-height:70vh;
background:black;
border-radius:15px;
}


.sidebar{
width:320px;
background:#151515;
padding:15px;
border-radius:15px;
overflow:auto;
}


.item{
padding:12px;
margin:5px 0;
border-radius:10px;
cursor:pointer;
}


.item.active{
background:#2563eb;
}


.assets a{
display:inline-block;
margin:8px;
padding:10px;
background:#222;
border-radius:10px;
color:white;
text-decoration:none;
}


@media(max-width:800px){

.layout{
flex-direction:column;
}


.sidebar{
width:auto;
order:2;
}


video{
border-radius:8px;
}

.course-card{
margin:10px;
}

}

