/* Edition page styles for the search bar and lookup table. */

.topbar-row--stacked {
  align-items: center;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.95rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.back-link:hover,
.back-link:focus-visible {
  text-decoration: underline;
  outline: none;
}

.search-card {
  margin-top: 1rem;
  padding: 0.75rem 0.85rem;
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.search-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: 999px;
  background: var(--wa-search);
  color: var(--wa-muted);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.search-icon {
  flex: 0 0 auto;
  width: 1.1rem;
  height: 1.1rem;
  color: var(--wa-muted);
}

.search-input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 0;
  background: transparent;
  color: var(--wa-text);
  font: inherit;
  font-size: 1rem;
}

.search-input::placeholder {
  color: #7a8a96;
}

.summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
  padding: 0 0.15rem;
  color: var(--wa-muted);
  font-size: 0.92rem;
}

.summary strong {
  color: var(--wa-text);
}

.result-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.78rem;
  border-radius: 999px;
  background: rgba(18, 140, 126, 0.12);
  color: var(--wa-green);
  font-weight: 700;
}

.list-shell {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 1.4rem;
  background: var(--wa-surface);
  backdrop-filter: blur(12px);
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead th {
  padding: 0.95rem 1rem;
  background: rgba(255, 255, 255, 0.82);
  color: var(--wa-muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
  border-bottom: 1px solid var(--wa-line);
}

tbody tr {
  transition: background 180ms ease;
}

tbody tr:nth-child(odd) {
  background: rgba(255, 255, 255, 0.48);
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.82);
}

tbody td {
  padding: 0.95rem 1rem;
  vertical-align: top;
  border-bottom: 1px solid var(--wa-line);
}

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

.id-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  padding: 0.48rem 0.8rem;
  border-radius: 999px;
  background: rgba(18, 140, 126, 0.12);
  color: var(--wa-green);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.year-cell strong {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.title-cell strong {
  display: block;
  margin-bottom: 0.22rem;
  font-size: 1rem;
}

.artist {
  color: var(--wa-muted);
}

.empty-state {
  display: none;
  padding: 2rem 1.2rem 2.25rem;
  text-align: center;
  background: var(--wa-surface-strong);
}

.empty-state.show {
  display: block;
}

.empty-state strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
}

@media (max-width: 720px) {
  thead th:nth-child(2),
  tbody td:nth-child(2) {
    width: 5.8rem;
  }

  thead th,
  tbody td {
    padding-left: 0.8rem;
    padding-right: 0.8rem;
  }
}

@media (max-width: 560px) {
  thead th:nth-child(2),
  tbody td:nth-child(2) {
    width: auto;
  }
}
