:root {
  color-scheme: dark;
  --bg0: #070a12;
  --bg1: #0a1124;
  --card: rgba(255, 255, 255, 0.06);
  --card2: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.12);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.72);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --accent: #4dd4ff;
  --accent2: #8b5cf6;
  --radius: 16px;
  --radius-sm: 12px;
  --max: 1060px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial,
    "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background:
    radial-gradient(1100px 600px at 30% -10%, rgba(77, 212, 255, 0.18), transparent 60%),
    radial-gradient(900px 520px at 90% 10%, rgba(139, 92, 246, 0.18), transparent 60%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
}

a {
  color: inherit;
  text-decoration: none;
}

a.link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.header {
  padding: 28px 18px 18px;
}

.brand {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand__logo {
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  background: rgba(255, 255, 255, 0.04);
}

.brand__title {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand__subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.main {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px 18px 28px;
  display: grid;
  gap: 16px;
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--card), rgba(255, 255, 255, 0.03));
  box-shadow: var(--shadow);
  padding: 18px;
}

.intro p {
  margin: 10px 0 0;
}

.section-title {
  margin: 0 0 10px;
  font-size: 16px;
  letter-spacing: -0.01em;
}

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

.table-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.search {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search__label {
  color: var(--muted);
  font-size: 13px;
}

.search__input {
  width: min(420px, 78vw);
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 10px 12px;
  outline: none;
}

.search__input:focus {
  border-color: rgba(77, 212, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(77, 212, 255, 0.14);
}

.table-wrap {
  overflow: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
}

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 660px;
}

.table thead th {
  position: sticky;
  top: 0;
  background: rgba(9, 16, 34, 0.85);
  backdrop-filter: blur(10px);
  text-align: left;
  padding: 12px 14px;
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.76);
  border-bottom: 1px solid var(--border);
}

.table tbody td {
  padding: 13px 14px;
  vertical-align: top;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.table tbody tr {
  cursor: pointer;
  transition: background 120ms ease, transform 120ms ease;
}

.table tbody tr:hover {
  background: rgba(255, 255, 255, 0.06);
}

.table tbody tr:active {
  transform: translateY(1px);
}

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

.footnote {
  margin: 10px 0 0;
  font-size: 13px;
}

.footer {
  margin-top: auto;
  padding: 18px;
}

.footer p {
  max-width: var(--max);
  margin: 0 auto;
  font-size: 13px;
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 22px 16px;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
}

.modal__panel {
  position: relative;
  width: min(760px, 100%);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(18, 26, 52, 0.96), rgba(10, 17, 36, 0.98));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.modal__header {
  padding: 14px 14px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal__titlewrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.modal__title {
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.01em;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modal__logo {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  flex: 0 0 auto;
}

.modal__body {
  padding: 14px;
  display: grid;
  gap: 10px;
}

.kv {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.kv__k {
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.kv__v {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.92);
  overflow-wrap: anywhere;
}

.button {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 9px 12px;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.button--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.14);
}

.button--ghost:hover {
  background: rgba(255, 255, 255, 0.06);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.media-item {
  display: block;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.media-item img,
.media-item video {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 560px) {
  .brand__title {
    font-size: 22px;
  }
  .card {
    padding: 14px;
  }
}
