* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #101217;
  color: #f4f4f5;
}

.wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0;
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 8px;
  color: #9ca3af;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(28px, 5vw, 48px);
}

.desc {
  margin: 12px 0 0;
  color: #cbd5e1;
}

.count-box {
  min-width: 150px;
  padding: 24px;
  border-radius: 20px;
  background: #1f2937;
  display: grid;
  place-items: center;
  text-align: center;
}

.count-box strong {
  display: block;
  font-size: 40px;
}

.count-box span {
  color: #cbd5e1;
}

.controls {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 12px;
  margin-bottom: 16px;
}

input, select, button {
  border: 1px solid #374151;
  border-radius: 14px;
  background: #171b22;
  color: #f4f4f5;
  padding: 14px 16px;
  font-size: 16px;
}

input, select {
  width: 100%;
}

button {
  cursor: pointer;
}

.genre-filter-card {
  border: 1px solid #2f3746;
  border-radius: 20px;
  background: #171b22;
  padding: 16px;
  margin-bottom: 16px;
}

.genre-filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.genre-filter-head button {
  padding: 8px 12px;
  font-size: 14px;
}

.genre-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.genre-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #374151;
  border-radius: 999px;
  padding: 8px 12px;
  background: #101722;
  color: #dbeafe;
  user-select: none;
  cursor: pointer;
}

.genre-check input {
  width: auto;
  margin: 0;
  accent-color: #f4f4f5;
}

.table-card {
  overflow: auto;
  border: 1px solid #2f3746;
  border-radius: 20px;
  background: #171b22;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}

th, td {
  padding: 14px 16px;
  border-bottom: 1px solid #2f3746;
  text-align: left;
  vertical-align: middle;
}

th {
  color: #cbd5e1;
  background: #1f2937;
  font-weight: 700;
}

tr:hover td {
  background: #1c2230;
}

a.watch {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f4f4f5;
  color: #111827;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.genre {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #293242;
  color: #dbeafe;
}

.note {
  color: #aab2c0;
  margin-top: 18px;
}

code {
  color: #ffffff;
  background: #273142;
  padding: 2px 6px;
  border-radius: 6px;
}

@media (max-width: 720px) {
  .hero {
    display: block;
  }

  .count-box {
    margin-top: 16px;
  }

  .controls {
    grid-template-columns: 1fr;
  }

  .genre-filter-head {
    align-items: flex-start;
    flex-direction: column;
  }
}
