/* Film Silhouette Scorecard Styles */
* { box-sizing: border-box; }
body {
 font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
 line-height: 1.6;
 margin: 0;
 padding: 0;
 color: #222;
 background: #fff;
}
.container {
 max-width: 1200px;
 margin: 0 auto;
 padding: 1rem;
}
header {
 background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
 color: white;
 padding: 1.5rem 0;
}
header h1 {
 margin: 0 0 0.5rem 0;
 font-size: 1.8rem;
}
nav {
 display: flex;
 gap: 1rem;
 flex-wrap: wrap;
}
nav a {
 color: rgba(255,255,255,0.9);
 text-decoration: none;
 padding: 0.25rem 0.5rem;
 border-radius: 4px;
 transition: background 0.2s;
}
nav a:hover, nav a[aria-current] {
 background: rgba(255,255,255,0.2);
}
.hero {
 text-align: center;
 padding: 2rem 0;
}
.hero h2 { margin: 0 0 0.5rem 0; }
.hero p { color: #555; }
.preset-selector fieldset {
 border: 2px solid #e0e0e0;
 border-radius: 8px;
 padding: 1rem;
 margin-top: 1rem;
}
.preset-selector legend {
 font-weight: 600;
 margin-bottom: 0.5rem;
}
.preset-btn {
 background: #f5f5f5;
 border: 1px solid #ddd;
 padding: 0.5rem 1rem;
 margin: 0.25rem;
 border-radius: 4px;
 cursor: pointer;
 transition: all 0.2s;
}
.preset-btn:hover {
 background: #e0e0e0;
}
.preset-btn.active {
 background: #667eea;
 color: white;
}
.scorecard-section {
 background: #f8f9fa;
 border-radius: 12px;
 padding: 1.5rem;
 margin: 1.5rem 0;
}
scorecard-section h3 { margin-top: 0; }
.axis-group {
 margin: 1rem 0;
}
.axis-header {
 display: flex;
 justify-content: space-between;
 align-items: center;
 margin-bottom: 0.25rem;
}
.axis-label { font-weight: 500; }
.axis-value { font-weight: 600; min-width: 40px; text-align: center; }
.axis-slider { width: 100%; margin: 0 0.5rem; }
.axis-desc { font-size: 0.85rem; color: #666; margin: 0.25rem 0 0 0; }
.score-display {
 display: flex;
 gap: 2rem;
 margin: 1rem 0;
 padding: 1rem;
 background: white;
 border-radius: 8px;
}
.score-item { text-align: center; }
.score-label { font-size: 0.8rem; color: #666; }
.score-value { font-size: 1.5rem; font-weight: 700; color: #667eea; }
.action-btn {
 background: #667eea;
 color: white;
 border: none;
 padding: 0.75rem 1.5rem;
 border-radius: 6px;
 cursor: pointer;
 font-weight: 500;
 margin: 0.25rem;
 transition: background 0.2s;
}
.action-btn:hover { background: #5a6fd6; }
.action-btn.secondary {
 background: #666;
}
.action-btn.secondary:hover { background: #444; }
.examples-section, .history-section, .comparison-section {
 background: #fff;
 border-radius: 12px;
 padding: 1.5rem;
 margin: 1.5rem 0;
 border: 1px solid #eee;
}
.example-grid, .history-grid, .comparison-grid {
 display: grid;
 gap: 1rem;
}
@media (min-width: 768px) {
 .example-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
 .history-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
 .comparison-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
 .score-display { flex-direction: row; justify-content: space-around; }
}
@media (max-width: 767px) {
 .example-grid { grid-template-columns: 1fr; }
 .history-grid { grid-template-columns: 1fr; }
 .comparison-grid { grid-template-columns: 1fr; }
 .score-display { flex-direction: column; gap: 1rem; }
}
.example-card, .history-item, .comparison-item {
 background: #f8f9fa;
 padding: 1rem;
 border-radius: 8px;
}
.example-silhouette svg { width: 60px; height: 60px; }
.example-scores {
 display: flex;
 gap: 0.5rem;
 flex-wrap: wrap;
 margin-top: 0.5rem;
}
.score-badge {
 background: #667eea;
 color: white;
 padding: 0.25rem 0.5rem;
 border-radius: 4px;
 font-size: 0.75rem;
}
.history-placeholder, .comparison-placeholder {
 text-align: center;
 color: #999;
 padding: 2rem;
}
footer {
 background: #333;
 color: #aaa;
 padding: 1.5rem 0;
 text-align: center;
}
footer a { color: #999; }
.history-item {
 display: flex;
 align-items: center;
 gap: 1rem;
}
.comparison-item {
 display: flex;
 flex-direction: column;
 gap: 0.5rem;
}
.comparison-scores {
 display: flex;
 gap: 0.25rem;
}
.comparison-score-bar {
 width: 60px;
 height: 20px;
 background: #eee;
 border-radius: 4px;
 overflow: hidden;
}
.comparison-score-fill {
 height: 100%;
 background: #667eea;
}
/* Accessibility focus styles */
:focus-visible {
 outline: 2px solid #667eea;
 outline-offset: 2px;
}
/* Print styles */
@media print {
 header, nav, .hero p, .preset-selector {
 display: none;
}
 main { padding: 0.5rem; }
 .scorecard-section, .examples-section, .history-section, .comparison-section {
 border: 1px solid #ccc;
 page-break-inside: avoid;
}
}


/* 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;
}
