@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', Arial, sans-serif;
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 20px;
  background: #f0f2f5;
  color: #1a1a2e;
  line-height: 1.6;
}

header {
  background: #ff6348;
  color: #fff;
  padding: 32px 36px;
  border-radius: 16px;
  margin-bottom: 32px;
}

header h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 4px;
}

header p {
  font-size: 0.95rem;
  opacity: 0.85;
}

.section {
  background: #ffffff;
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 24px;
}

.section h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 1rem;
  flex-shrink: 0;
}

.badge-purple { background: #ede9fe; }
.badge-blue { background: #dbeafe; }
.badge-green { background: #d1fae5; }
.badge-yellow { background: #fef3c7; }
.badge-orange { background: #ffedd5; }

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 0;
  font-size: 0.9rem;
}

thead th {
  background: #f8f9fb;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  padding: 10px 14px;
  text-align: left;
  border-bottom: 2px solid #e8ecf1;
}

thead th:first-child {
  border-radius: 8px 0 0 0;
}

thead th:last-child {
  border-radius: 0 8px 0 0;
}

tbody tr {
  transition: background 0.15s ease;
}

tbody tr:hover {
  background: #f8f9fb;
}

tbody td {
  padding: 11px 14px;
  border-bottom: 1px solid #f0f2f5;
  color: #334155;
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr:last-child td:first-child {
  border-radius: 0 0 0 8px;
}

tbody tr:last-child td:last-child {
  border-radius: 0 0 8px 0;
}

td.model-name {
  font-weight: 600;
  color: #1a1a2e;
}

td.provider-name {
  color: #ff6348;
  font-weight: 500;
}

td.score-cell {
  font-weight: 600;
  text-align: center;
}

.score-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
}

.score-high { background: #00b894; }
.score-mid { background: #fdcb6e; color: #1a1a2e; }
.score-low { background: #e17055; }

.rank-cell {
  font-weight: 700;
  color: #a0aec0;
  text-align: center;
  width: 40px;
}

.rank-1 { color: #f1c40f; }
.rank-2 { color: #95a5a6; }
.rank-3 { color: #e67e22; }

footer {
  text-align: center;
  padding: 20px 0 8px;
  font-size: 0.85rem;
  color: #94a3b8;
}

footer a {
  color: #ff6348;
  text-decoration: none;
  font-weight: 500;
}

footer a:hover {
  text-decoration: underline;
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
  body { padding: 12px 8px; }
  header { padding: 20px 16px; border-radius: 12px; margin-bottom: 20px; }
  header h1 { font-size: 1.4rem; }
  header p { font-size: 0.82rem; }
  .section { padding: 14px 12px; margin-bottom: 16px; border-radius: 10px; }
  .section h2 { font-size: 1.05rem; margin-bottom: 12px; }
  .badge { width: 26px; height: 26px; font-size: 0.85rem; }
  table { font-size: 0.78rem; min-width: 580px; }
  thead th { padding: 8px 8px; font-size: 0.65rem; }
  tbody td { padding: 8px 8px; }
  .score-pill { padding: 2px 7px; font-size: 0.72rem; }
  .rank-cell { width: 30px; }
  footer { font-size: 0.78rem; padding: 14px 0 6px; }
}

@media (max-width: 480px) {
  body { padding: 8px 6px; }
  header { padding: 16px 14px; border-radius: 10px; margin-bottom: 14px; }
  header h1 { font-size: 1.2rem; }
  .section { padding: 10px 8px; margin-bottom: 12px; }
  .section h2 { font-size: 0.95rem; gap: 6px; }
  .badge { width: 24px; height: 24px; font-size: 0.8rem; border-radius: 6px; }
  table { font-size: 0.72rem; }
  thead th { padding: 6px 6px; }
  tbody td { padding: 7px 6px; }
}
