* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #101c22;
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden; /* allow vertical scroll, prevent horizontal */
}

#app {
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.screen {
  display: none;
  flex-direction: column;
  height: 100%;
}

.screen.active {
  display: flex;
}

/* Header */
.header {
  padding: 16px;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #333;
}

.header h1 {
  font-size: 20px;
  font-weight: 600;
}

.header button {
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  padding: 4px 8px;
}

/* Content */
.content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

/* Welcome Screen */
.welcome-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  padding: 32px;
}

.welcome-content h1 {
  font-size: 32px;
  margin-bottom: 16px;
}

.welcome-content p {
  color: #888;
  margin-bottom: 32px;
  line-height: 1.6;
}

/* Buttons */
.btn {
  background: #2563eb;
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  width: 100%;
  max-width: 280px;
  margin: 8px 0;
}

.btn:active {
  transform: scale(0.98);
}

.btn-secondary {
  background: #333;
}

.btn-text {
  background: none;
  color: #2563eb;
  padding: 8px;
}

/* YouTube Player */
.youtube-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}

.youtube-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Input */
.input-group {
  margin: 16px 0;
}

.input-group label {
  display: block;
  margin-bottom: 8px;
  color: #888;
  font-size: 14px;
}

.input-group input,
.input-group textarea {
  width: 100%;
  padding: 12px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 8px;
  color: #fff;
  font-size: 16px;
}

.input-group textarea {
  resize: vertical;
  min-height: 80px;
}

/* Mark Card */
.mark-card {
  background: #1a1a1a;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid #333;
}

.mark-card h3 {
  font-size: 14px;
  color: #888;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mark-card p {
  margin: 8px 0;
  line-height: 1.4;
}

.mark-time {
  display: inline-block;
  background: #2563eb;
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  margin-right: 8px;
}

/* Bottom Navigation */
.bottom-nav {
  display: flex;
  background: #1a1a1a;
  border-top: 1px solid #333;
  padding: 8px 0;
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px;
  border: none;
  background: none;
  color: #666;
  cursor: pointer;
  font-size: 12px;
}

.nav-item.active {
  color: #2563eb;
}

.nav-item svg {
  width: 24px;
  height: 24px;
  margin-bottom: 4px;
}

/* Floating Action Button */
.fab {
  position: fixed;
  bottom: 80px;
  right: 16px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #2563eb;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  z-index: 100;
}

/* Paywall */
.paywall-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.paywall-content {
  background: #1a1a1a;
  padding: 32px;
  border-radius: 16px;
  max-width: 320px;
  width: 90%;
  text-align: center;
}

.paywall-content h2 {
  margin-bottom: 16px;
}

.paywall-content .price {
  font-size: 32px;
  color: #2563eb;
  margin: 16px 0;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 48px 24px;
}

.empty-state h2 {
  margin-bottom: 16px;
  color: #888;
}

.empty-state p {
  color: #666;
}

/* Search Bar */
.search-bar {
  padding: 12px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 8px;
  color: #fff;
  font-size: 16px;
  width: 100%;
  margin-bottom: 16px;
}

/* Settings */
.settings-item {
  padding: 16px 0;
  border-bottom: 1px solid #333;
}

.settings-item h3 {
  margin-bottom: 8px;
}

.settings-item p {
  color: #888;
  font-size: 14px;
}

.license-status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  margin-top: 8px;
}

.license-status.active {
  background: #10b981;
  color: #fff;
}

.license-status.trial {
  background: #f59e0b;
  color: #fff;
}