/* TV Actor Legacy Archive Styles */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; line-height: 1.6; color: #222; background: #fff; } 
a { color: #0066cc; text-decoration: none; } 
a:hover { text-decoration: underline; }
.container { max-width: 960px; margin: 0 auto; padding: 0 1rem; }
header { background: #f5f5f5; border-bottom: 1px solid #e0e0e0; position: sticky; top: 0; z-index: 10; }
header h1 { font-size: 1.5rem; margin: 0.5rem 0; }
nav { display: flex; gap: 1.5rem; padding: 1rem 0; }
nav a { font-weight: 500; }
.hero { text-align: center; padding: 2rem 0; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; }
.hero h2 { font-size: 2rem; margin-bottom: 0.5rem; }
.intro { font-size: 1.1rem; margin-bottom: 1.5rem; max-width: 600px; margin: 0 auto 1.5rem; }
.search-box { display: flex; gap: 0.5rem; margin-bottom: 1rem; justify-content: center; }
.search-box input { flex: 1; max-width: 400px; padding: 0.75rem; border: none; border-radius: 4px; font-size: 1rem; }
.search-box button { padding: 0.75rem 1.5rem; background: #fff; color: #667eea; border: none; border-radius: 4px; cursor: pointer; font-weight: 600; }
.search-box button:hover { background: #f0f0f0; }
.presets { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; }
.preset-btn { background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.3); color: white; padding: 0.5rem 1rem; border-radius: 20px; cursor: pointer; font-size: 0.9rem; }
.preset-btn:hover { background: rgba(255,255,255,0.3); }
.hidden { display: none; }
#resultsSection, #actorPage { padding: 2rem 0; }
#resultsList { display: grid; gap: 1rem; }
.result-card { border: 1px solid #e0e0e0; border-radius: 8px; padding: 1rem; cursor: pointer; transition: all 0.2s; }
.result-card:hover { background: #f8f9fa; }
.actor-header { margin-bottom: 1.5rem; }
.actor-header h3 { font-size: 1.8rem; color: #333; margin-bottom: 0.5rem; }
#actorBio { color: #666; margin-bottom: 1rem; }
#backBtn { background: none; border: none; color: #0066cc; cursor: pointer; font-size: 0.9rem; padding: 0; margin-bottom: 1rem; }
#backBtn:hover { text-decoration: underline; }
.timeline-tabs { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.tab-btn { padding: 0.5rem 1rem; background: #f5f5f5; border: 1px solid #e0e0e0; border-radius: 4px; cursor: pointer; }
.tab-btn.active { background: #667eea; color: white; }
.tab-content { padding: 1rem; }
.timeline-item { border-left: 3px solid #667eea; padding-left: 1rem; margin-bottom: 1rem; }
.timeline-item h4 { margin-bottom: 0.25rem; font-size: 1rem; }
.timeline-item p { color: #666; font-size: 0.9rem; }
.checkbox-cell { display: flex; align-items: center; gap: 0.5rem; }
.checkbox-cell input { width: auto; }
.viewing-tools { background: #f8f9fa; border-radius: 8px; padding: 1.5rem; margin-top: 2rem; }
.viewing-tools h4 { margin-bottom: 1rem; color: #333; }
.viewing-list { max-height: 200px; overflow-y: auto; border: 1px solid #e0e0e0; border-radius: 4px; padding: 0.5rem; margin-bottom: 1rem; background: white; }
.viewing-item { padding: 0.5rem; border-bottom: 1px solid #f0f0f0; display: flex; justify-content: space-between; align-items: center; }
.viewing-item:last-child { border-bottom: none; }
.list-actions { display: flex; gap: 0.5rem; margin-top: 1rem; }
.list-actions button { padding: 0.5rem 1rem; border: 1px solid #e0e0e0; border-radius: 4px; cursor: pointer; background: white; }
.list-actions button:hover { background: #f0f0f0; }
.list-actions button.share-active { background: #667eea; color: white; border-color: #667eea; }
.how-to-use, .assumptions, .faq-section { padding: 2rem 0; }
.how-to-use h3, .assumptions h3, .faq-section h3 { margin-bottom: 1rem; color: #333; }
.faq-grid { display: grid; gap: 1rem; }
.faq-item { border: 1px solid #e0e0e0; border-radius: 8px; padding: 1rem; }
.faq-item h4 { font-size: 1rem; margin-bottom: 0.5rem; color: #333; }
.faq-item p { color: #666; font-size: 0.95rem; }
footer { background: #f5f5f5; border-top: 1px solid #e0e0e0; padding: 1rem 0; text-align: center; font-size: 0.9rem; }
footer a { color: #666; }
@media (max-width: 768px) { 
  header h1 { font-size: 1.25rem; }
  .hero h2 { font-size: 1.5rem; }
  .search-box { flex-direction: column; }
  .search-box input { max-width: 100%; }
  nav { flex-wrap: wrap; gap: 1rem; }
  .faq-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) { 
  .container { padding: 0 0.5rem; }
  .hero { padding: 1.5rem 0; }
  .viewing-tools { padding: 1rem; }
}


/* Factory-injected deployment helpers. The AI owns the site design above this block. */
.ad-unit {
  width: min(100%, 720px);
  min-height: 120px;
  margin: 24px auto;
  display: block;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}

.factory-fallback-nav {
  width: min(900px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 0.95rem;
}

.factory-fallback-nav a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
