.viewership-page {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
  font-family: 'Segoe UI', Arial, sans-serif;
}

.viewership-header {
  text-align: center;
  margin-bottom: 2rem;
}

.viewership-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.viewership-caption {
  color: #666;
  font-size: 1rem;
}

.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  padding: 2rem;
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #333;
}

.categories-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.category-btn {
  background: #f5f5f5;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  color: #333;
  text-decoration: none;
  transition: background 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.category-btn:hover {
  background: #e0e0e0;
}

.table-section {
  overflow-x: auto;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.viewership-index-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  background: #fafbfc;
  border-radius: 8px;
  overflow: hidden;
}

.viewership-index-table th,
.viewership-index-table td {
  padding: 0.75rem 1rem;
  text-align: center;
}

.viewership-index-table th {
  background: #f0f2f5;
  font-weight: 600;
  color: #222;
}

.viewership-index-table tr:nth-child(even) {
  background: #f7f7f9;
}

.viewership-index-table tr:hover {
  background: #e9f5ff;
}

@media (max-width: 800px) {
  .card {
    padding: 1rem;
  }
  .viewership-title {
    font-size: 1.5rem;
  }
  .section-title {
    font-size: 1.1rem;
  }
  .categories-grid {
    flex-direction: column;
    align-items: stretch;
  }
}
