* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: #f5f5f0;
  color: #333;
  min-height: 100vh;
}

/* Login */
.login-container {
  max-width: 360px;
  margin: 120px auto;
  padding: 40px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  text-align: center;
}
.login-container h1 { color: #7c5cbf; margin-bottom: 8px; }
.login-container p { color: #888; margin-bottom: 24px; font-size: 14px; }
.login-container input {
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
}
.login-container button {
  width: 100%;
  padding: 12px;
  background: #7c5cbf;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
}
.login-container button:hover { background: #6a4daa; }
.error { color: #e74c3c; margin-top: 12px; font-size: 14px; }

/* Header */
.header {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header h1 { font-size: 20px; color: #7c5cbf; }
.header .search-box {
  display: flex;
  gap: 8px;
}
.header input {
  padding: 8px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  width: 280px;
}
.header .btn-search {
  padding: 8px 16px;
  background: #7c5cbf;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}

/* Container */
.container { max-width: 1100px; margin: 24px auto; padding: 0 24px; }

/* Cards */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.course-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
  cursor: pointer;
  transition: box-shadow 0.2s;
}
.course-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.course-card h3 { color: #333; margin-bottom: 8px; }
.course-card .meta { color: #888; font-size: 13px; }
.course-card .badge {
  display: inline-block;
  background: #f0ebfa;
  color: #7c5cbf;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  margin-top: 8px;
}

/* Lesson list */
.breadcrumb {
  margin-bottom: 16px;
  font-size: 14px;
  color: #888;
}
.breadcrumb a { color: #7c5cbf; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.lesson-list { display: flex; flex-direction: column; gap: 8px; }
.lesson-item {
  background: #fff;
  border-radius: 10px;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  transition: background 0.15s;
}
.lesson-item:hover { background: #f8f6fc; }
.lesson-item .info h4 { margin-bottom: 4px; }
.lesson-item .info .sub { color: #888; font-size: 13px; }
.lesson-item .dur { color: #aaa; font-size: 13px; }

/* Lesson detail */
.lesson-detail { background: #fff; border-radius: 12px; padding: 32px; box-shadow: 0 1px 6px rgba(0,0,0,0.06); }
.lesson-detail h2 { color: #7c5cbf; margin-bottom: 4px; }
.lesson-detail .meta-line { color: #888; font-size: 14px; margin-bottom: 24px; }

.tabs { display: flex; gap: 4px; margin-bottom: 20px; border-bottom: 1px solid #eee; }
.tab {
  padding: 10px 20px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 14px;
  color: #888;
  border-bottom: 2px solid transparent;
}
.tab.active { color: #7c5cbf; border-bottom-color: #7c5cbf; }

.tab-content { display: none; }
.tab-content.active { display: block; }

.section-title { font-size: 16px; color: #7c5cbf; margin: 20px 0 10px; }
.insight-list { list-style: none; }
.insight-list li {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
  line-height: 1.5;
}
.insight-list li:last-child { border-bottom: none; }

.transcription-box {
  background: #fafafa;
  border-radius: 8px;
  padding: 20px;
  font-size: 14px;
  line-height: 1.8;
  white-space: pre-wrap;
  max-height: 600px;
  overflow-y: auto;
}

.tag { display: inline-block; background: #f0ebfa; color: #7c5cbf; padding: 3px 10px; border-radius: 10px; font-size: 12px; margin: 2px; }

/* Search results */
.search-results { display: flex; flex-direction: column; gap: 8px; }
.search-result {
  background: #fff;
  border-radius: 10px;
  padding: 16px 20px;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.search-result:hover { background: #f8f6fc; }
.search-result h4 { margin-bottom: 4px; }
.search-result .sub { color: #888; font-size: 13px; }

/* Empty state */
.empty { text-align: center; padding: 60px; color: #bbb; font-size: 15px; }

/* Back button */
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #7c5cbf;
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 16px;
  cursor: pointer;
  background: none;
  border: none;
}
.btn-back:hover { text-decoration: underline; }
