/* === CHANNEL TABS === */
.channel-tabs {
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #ffffff;
  border-bottom: 1px solid #e8e8e8;
  padding: 4px 8px;
  gap: 6px;
  scrollbar-width: none;
  position: sticky;
  top: 44px;
  z-index: 9;
}
.channel-tabs::-webkit-scrollbar { display: none; }
.channel-tab {
  flex-shrink: 0;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #555555;
  background: #f0f0f0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.channel-tab.active {
  color: #ffffff;
  background: #222222;
}
.channel-count {
  font-size: 10px;
  margin-left: 3px;
  opacity: 0.6;
}
.channel-empty {
  text-align: center;
  padding: 40px 16px;
  color: #999999;
  font-size: 13px;
}

/* === LOADING === */
.loading {
  text-align: center;
  padding: 32px 16px;
  color: #999999;
  font-size: 13px;
}

/* === SOURCE CREDIT === */
.source-credit {
  text-align: center;
  padding: 12px;
  font-size: 10px;
  color: #bbbbbb;
  background: #f5f5f5;
}

/* === APP FOOTER === */
.app-footer {
  background: #ffffff;
  border-top: 1px solid #e5e5e5;
  padding: 20px 16px 32px;
}
.app-footer-label {
  font-size: 10px;
  color: #999999;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.app-footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.app-footer-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  padding: 10px 12px;
  background: #f8f8f8;
  border-radius: 8px;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.15s, box-shadow 0.2s;
}
.app-footer-link:active {
  background: #f0f0f0;
  transform: scale(0.98);
}
.app-footer-link:hover {
  transform: translateY(-2px);
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.app-footer-link-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  flex-shrink: 0;
}
.app-footer-link-name {
  font-size: 13px;
  font-weight: 600;
  color: #222222;
  line-height: 1.3;
}
.app-footer-link-desc {
  font-size: 11px;
  color: #888888;
  line-height: 1.3;
}
.app-footer-legal {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 10px;
}
.app-footer-legal a {
  color: #999;
  text-decoration: none;
}
.app-footer-legal span {
  color: #ccc;
}
.app-footer-copy {
  text-align: center;
  font-size: 10px;
  color: #bbbbbb;
  margin-top: 6px;
}
/* === AUTH SCREEN === */
.auth-screen {
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-card {
  width: 100%;
  max-width: 360px;
  padding: 40px 24px;
  text-align: center;
}
.auth-logo {
  font-family: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: #333333;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.auth-logo .red { color: #dc2626; }
.auth-tagline {
  font-size: 14px;
  color: #666666;
  margin-bottom: 32px;
}
.auth-google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #333333;
  background: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}
.auth-google-btn:active { background: #f8f8f8; }
.auth-google-btn svg { width: 18px; height: 18px; }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  font-size: 12px;
  color: #bbbbbb;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e8e8e8;
}
.auth-screen input[type="email"],
.auth-screen input[type="password"] {
  display: block;
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 10px;
  font-size: 14px;
  font-family: inherit;
  border: 1px solid #dddddd;
  border-radius: 8px;
  outline: none;
  color: #333333;
}
.auth-screen input:focus { border-color: #dc2626; }
.auth-email-btn {
  display: block;
  width: 100%;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  background: #dc2626;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  margin-bottom: 8px;
  -webkit-tap-highlight-color: transparent;
}
.auth-email-btn:active { background: #b91c1c; }
.auth-email-btn.auth-signup {
  color: #dc2626;
  background: #ffffff;
  border: 1px solid #dc2626;
}
.auth-email-btn.auth-signup:active { background: #fef2f2; }
.auth-error {
  font-size: 12px;
  color: #dc2626;
  margin-top: 12px;
  min-height: 18px;
}

/* === ONBOARDING SCREEN === */
.onboarding-screen {
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
}
.onboarding-card {
  width: 100%;
  max-width: 400px;
  padding: 32px 20px;
}
.onboarding-card h2 {
  font-size: 22px;
  font-weight: 700;
  color: #222222;
  margin-bottom: 8px;
}
.onboarding-card > p {
  font-size: 13px;
  color: #666666;
  margin-bottom: 24px;
}
.onboarding-feeds {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}
.onboarding-feed-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #f8f8f8;
  border-radius: 8px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.onboarding-feed-item:active { background: #f0f0f0; }
.onboarding-feed-item input[type="checkbox"] {
  accent-color: #dc2626;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.onboarding-feed-name {
  font-size: 14px;
  font-weight: 500;
  color: #333333;
}
.onboarding-feed-cat {
  font-size: 11px;
  color: #999999;
  margin-left: auto;
}
.onboarding-start-btn {
  display: block;
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  background: #dc2626;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}
.onboarding-start-btn:active { background: #b91c1c; }

/* === HEADER USER AREA === */
.header-user {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}
.header-settings-btn {
  font-size: 18px;
  background: none;
  border: none;
  cursor: pointer;
  color: #666666;
  padding: 4px;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
}
.header-settings-btn:active { color: #dc2626; }
.header-logout-btn {
  font-size: 11px;
  font-weight: 500;
  color: #999999;
  background: none;
  border: 1px solid #dddddd;
  border-radius: 4px;
  padding: 4px 8px;
  cursor: pointer;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}
.header-logout-btn:active { color: #dc2626; border-color: #dc2626; }

/* === SETTINGS OVERLAY === */
.settings-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.settings-card {
  width: 100%;
  max-width: 420px;
  max-height: 85vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
}
.settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.settings-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: #222222;
}
.settings-close {
  font-size: 22px;
  background: none;
  border: none;
  color: #999999;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}
.settings-close:active { color: #dc2626; }
.settings-section {
  margin-bottom: 20px;
}
.settings-section h4 {
  font-size: 13px;
  font-weight: 700;
  color: #666666;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}
.settings-feed-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-bottom: 1px solid #f0f0f0;
}
.settings-feed-item input[type="checkbox"] {
  accent-color: #dc2626;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.settings-feed-item label {
  font-size: 13px;
  color: #333333;
  flex: 1;
  cursor: pointer;
}
.settings-custom-add {
  display: flex;
  gap: 8px;
}
.settings-custom-add input {
  flex: 1;
  padding: 8px 10px;
  font-size: 13px;
  font-family: inherit;
  border: 1px solid #dddddd;
  border-radius: 6px;
  outline: none;
  color: #333333;
}
.settings-custom-add input:focus { border-color: #dc2626; }
.settings-custom-add button {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  background: #dc2626;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  align-self: flex-start;
  -webkit-tap-highlight-color: transparent;
}
.settings-custom-add button:active { background: #b91c1c; }
.settings-user-feeds {
  margin-top: 12px;
}
.settings-user-feed-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-bottom: 1px solid #f0f0f0;
}
.settings-user-feed-item span {
  font-size: 13px;
  color: #333333;
}
.settings-remove-btn {
  font-size: 11px;
  color: #dc2626;
  background: none;
  border: 1px solid #dc2626;
  border-radius: 4px;
  padding: 2px 8px;
  cursor: pointer;
  font-family: inherit;
}
.settings-remove-btn:active { background: #fef2f2; }
