:root {
  --bg-1: #050308;
  --bg-2: #12061f;
  --bg-3: #2a0f45;
  --bg-4: #09030e;
  --bg-5: #3a1559;
  --surface: rgba(15, 9, 26, 0.78);
  --surface-2: rgba(26, 12, 44, 0.78);
  --line: rgba(182, 108, 255, 0.45);
  --line-soft: rgba(137, 75, 197, 0.35);
  --text: #f6efff;
  --muted: #d8c8eb;
  --accent: #cb8cff;
  --accent-2: #ffe0b2;
}

html,
body {
  min-height: 100%;
}

body,
html {
  background: linear-gradient(
    135deg,
    var(--bg-1) 0%,
    var(--bg-2) 22%,
    var(--bg-3) 48%,
    var(--bg-4) 72%,
    var(--bg-5) 100%
  );
  font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", Verdana, sans-serif;
  margin: 0;
  padding: 20px;
  color: var(--text);
}

h1 {
  margin: 0 0 12px 0;
  line-height: 1.2;
  font-size: 2.3rem;
  letter-spacing: 0.01em;
  color: #ffffff;
}

table {
  border: 1px solid var(--line);
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: 10px;
  overflow: hidden;
}

th,
td {
  padding: 0.6em 0.8em;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
  font-size: 1.08rem;
}

th {
  text-align: left;
  font-weight: 700;
  background: rgba(10, 6, 18, 0.9);
  color: #f9f5ff;
  letter-spacing: 0.02em;
}

tr:nth-child(even) {
  background: var(--surface-2);
}

tr:hover {
  background: rgba(58, 21, 89, 0.6);
}

a {
  color: var(--accent-2);
  text-decoration: none;
}

a:hover {
  color: #ffffff;
  text-decoration: underline;
}

td:first-child a {
  word-break: break-word;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent);
}

td:first-child a:hover {
  color: #ffffff;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 10px;
}

.download-link {
  display: inline-block;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(34, 16, 52, 0.9);
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.download-link:hover {
  background: rgba(58, 21, 89, 0.95);
}

@media (max-width: 760px) {
  body,
  html {
    padding: 12px;
  }

  h1 {
    font-size: 2rem;
    margin-bottom: 12px;
  }

  .table-wrap {
    overflow: visible;
  }

  table {
    border: 0;
    min-width: 0;
    background: transparent;
  }

  thead {
    display: none;
  }

  tbody {
    display: grid;
    gap: 10px;
  }

  tr,
  tr:nth-child(even) {
    display: block;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    padding: 8px;
  }

  td {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    border: 0;
    padding: 8px 5px;
    font-size: 1.05rem;
  }

  td::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--muted);
    flex-shrink: 0;
  }

  td[data-label="File Name"] {
    display: block;
  }

  td[data-label="File Name"]::before {
    display: block;
    margin-bottom: 6px;
  }

  td[data-label="File Name"] a {
    display: inline-block;
    line-height: 1.35;
    padding: 4px 0;
    font-size: 1.35rem;
  }

  .download-link {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    padding: 12px 14px;
    font-size: 1.2rem;
  }
}
