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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #1a1a2e;
  color: #e0e0e0;
  min-height: 100vh;
  padding: 2rem;
}

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

header h1 {
  font-size: 2rem;
  color: #ff66ab;
}

.subtitle {
  color: #888;
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

#search {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: 1px solid #333;
  border-radius: 4px;
  background: #16213e;
  color: #e0e0e0;
  font-size: 0.9rem;
}

#search::placeholder {
  color: #666;
}

.status {
  font-size: 0.8rem;
  color: #888;
  white-space: nowrap;
}

main {
  max-width: 100%;
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
  table-layout: auto;
}

th, td {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid #2a2a4a;
}

th {
  background: #16213e;
  color: #ff66ab;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

tr:hover td {
  background: #16213e;
}

td:first-child {
  font-family: monospace;
}

td:first-child a {
  color: #ff66ab;
  text-decoration: none;
}

td:first-child a:hover {
  text-decoration: underline;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.pagination button {
  padding: 0.4rem 0.8rem;
  border: 1px solid #333;
  border-radius: 4px;
  background: #16213e;
  color: #e0e0e0;
  cursor: pointer;
  font-size: 0.85rem;
}

.pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination button:not(:disabled):hover {
  background: #1a1a4e;
  border-color: #ff66ab;
}

#page-info {
  font-size: 0.85rem;
  color: #888;
}

@media (max-width: 600px) {
  body {
    padding: 1rem;
  }

  .controls {
    flex-direction: column;
    align-items: stretch;
  }

  th {
    letter-spacing: normal;
  }

  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }

  th, td {
    padding: 0.4rem 0.5rem;
    font-size: 0.8rem;
    white-space: nowrap;
  }

  td:first-child {
    font-size: 0.75rem;
  }
}
