.requests-page {
  width: min(1220px, 100%);
  display: grid;
  gap: 18px;
  color: var(--text);
}

.requests-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
}

.requests-heading h1 {
  margin: 6px 0 7px;
  font-size: clamp(34px, 4vw, 62px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.requests-heading p {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
}

.request-kicker,
.request-type {
  color: var(--accent);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.request-search {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 130px;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  background: rgba(0,0,0,0.34);
}

.request-search input,
.request-search select,
.requests-heading select {
  min-height: 44px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 12px;
  background: rgba(0,0,0,0.45);
  color: var(--text);
  font: inherit;
  font-weight: 800;
  padding: 0 12px;
}

.request-search button,
.request-button,
.request-admin-actions button {
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: #031006;
  cursor: pointer;
  font: inherit;
  font-weight: 950;
  padding: 0 14px;
}

.request-status,
.request-empty {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.request-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}

.request-card,
.request-admin-card {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(9,18,18,0.84), rgba(0,0,0,0.58));
  box-shadow: 0 18px 44px rgba(0,0,0,0.24);
  overflow: hidden;
}

.request-card {
  grid-template-columns: 96px minmax(0, 1fr);
  padding: 12px;
}

.request-poster {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(0,0,0,0.45);
}

.request-poster.small {
  width: 72px;
}

.request-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.request-card-body,
.request-admin-main {
  min-width: 0;
}

.request-card h3,
.request-admin-card h3 {
  margin: 5px 0 4px;
  font-size: 18px;
  line-height: 1.08;
}

.request-meta {
  color: rgba(255,255,255,0.58);
  font-size: 12px;
  font-weight: 800;
}

.request-card p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 54px;
  margin: 10px 0;
  color: rgba(255,255,255,0.66);
  font-size: 13px;
  line-height: 1.35;
}

.request-section-title {
  margin: 12px 0 0;
  font-size: 22px;
}

.request-admin-list {
  display: grid;
  gap: 12px;
}

.request-admin-card {
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  padding: 12px;
}

.request-admin-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.request-admin-actions button:last-child {
  background: rgba(255,255,255,0.14);
  color: var(--text);
}

@media (max-width: 760px) {
  .request-search,
  .request-card,
  .request-admin-card {
    grid-template-columns: 1fr;
  }

  .request-poster,
  .request-poster.small {
    width: 120px;
  }
}

/* v0.0.175 — requested row and request cache UI */
.request-open-section {
  display: grid;
  gap: 10px;
}

.request-row-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.request-row-actions {
  display: flex;
  gap: 8px;
}

.request-row-actions button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  background: rgba(0,0,0,0.45);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 24px;
  font-weight: 950;
  line-height: 1;
}

.request-poster-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  scroll-behavior: smooth;
}

.request-poster-card {
  flex: 0 0 142px;
  display: grid;
  gap: 6px;
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(9,18,18,0.84), rgba(0,0,0,0.58));
  padding: 10px;
  box-shadow: 0 18px 44px rgba(0,0,0,0.22);
}

.request-poster-card .request-poster {
  width: 100%;
}

.request-poster-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 950;
}

.request-poster-meta {
  color: rgba(255,255,255,0.56);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.request-poster-status {
  color: var(--accent);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* v0.0.184 — admin request lookup panel */
.request-admin-lookup {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

.request-lookup-group {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  background: rgba(0,0,0,0.24);
}

.request-lookup-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--text);
  font-size: 13px;
}

.request-lookup-label {
  display: grid;
  gap: 5px;
  color: rgba(255,255,255,0.62);
  font-size: 12px;
  font-weight: 850;
}

.request-lookup-label select {
  min-height: 38px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  background: rgba(0,0,0,0.45);
  color: var(--text);
  font: inherit;
  font-weight: 800;
  padding: 0 10px;
}

.request-lookup-results {
  display: grid;
  gap: 8px;
}

.request-lookup-result {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

/* v0.0.187 — clean admin release table */
.request-release-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
}

.request-release-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  font-size: 12px;
}

.request-release-table th,
.request-release-table td {
  padding: 9px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-align: left;
  vertical-align: middle;
}

.request-release-table th {
  color: rgba(255,255,255,0.62);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.request-release-title {
  max-width: 520px;
  color: var(--text);
  font-weight: 850;
}

.request-empty-cell {
  color: rgba(255,255,255,0.62);
  text-align: center !important;
}

.request-download-arrow {
  width: 34px;
  height: 30px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 10px;
  background: rgba(217,70,239,0.18);
  color: var(--text);
  font-size: 18px;
  font-weight: 950;
  cursor: pointer;
}

.request-download-arrow:hover {
  border-color: rgba(217,70,239,0.62);
  background: rgba(217,70,239,0.32);
}


/* v0.0.189 — wider sortable release table and custom download icon */
.request-admin-card {
  width: 100%;
}

.request-admin-lookup {
  width: 100%;
}

.request-lookup-group {
  width: 100%;
}

.request-release-table-wrap {
  width: 100%;
}

.request-release-table {
  width: 100%;
  min-width: 980px;
  table-layout: fixed;
}

.request-release-table th:nth-child(1),
.request-release-table td:nth-child(1) { width: 82px; }
.request-release-table th:nth-child(2),
.request-release-table td:nth-child(2) { width: auto; }
.request-release-table th:nth-child(3),
.request-release-table td:nth-child(3) { width: 92px; }
.request-release-table th:nth-child(4),
.request-release-table td:nth-child(4) { width: 130px; }
.request-release-table th:nth-child(5),
.request-release-table td:nth-child(5) { width: 110px; }
.request-release-table th:nth-child(6),
.request-release-table td:nth-child(6) { width: 76px; text-align: center; }

.request-release-table th[data-request-sort] {
  cursor: pointer;
  user-select: none;
}

.request-release-table th[data-request-sort]::after {
  content: ' ⇅';
  opacity: 0.45;
}

.request-release-table th[data-sort-active="true"][data-sort-direction="asc"]::after {
  content: ' ↑';
  opacity: 1;
}

.request-release-table th[data-sort-active="true"][data-sort-direction="desc"]::after {
  content: ' ↓';
  opacity: 1;
}

.request-release-title {
  max-width: none;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.25;
}

.request-release-download-cell {
  text-align: center;
}

.request-download-arrow {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.request-download-arrow img {
  width: 42px;
  height: 42px;
  display: block;
  pointer-events: none;
}

.request-download-arrow:hover {
  background: transparent;
  filter: brightness(1.16);
}


/* v0.0.191 — full-width responsive release table */
.admin-requests-page .request-admin-card {
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: start;
}

.admin-requests-page .request-admin-lookup {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
}

.admin-requests-page .request-lookup-group,
.admin-requests-page .request-release-table-wrap {
  width: 100%;
  max-width: none;
  min-width: 0;
  box-sizing: border-box;
}

.admin-requests-page .request-release-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.admin-requests-page .request-release-table th:nth-child(1),
.admin-requests-page .request-release-table td:nth-child(1) { width: 72px; }
.admin-requests-page .request-release-table th:nth-child(2),
.admin-requests-page .request-release-table td:nth-child(2) { width: auto; }
.admin-requests-page .request-release-table th:nth-child(3),
.admin-requests-page .request-release-table td:nth-child(3) { width: 88px; }
.admin-requests-page .request-release-table th:nth-child(4),
.admin-requests-page .request-release-table td:nth-child(4) { width: 118px; }
.admin-requests-page .request-release-table th:nth-child(5),
.admin-requests-page .request-release-table td:nth-child(5) { width: 92px; }
.admin-requests-page .request-release-table th:nth-child(6),
.admin-requests-page .request-release-table td:nth-child(6) { width: 62px; }

.admin-requests-page .request-release-title {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 760px) {
  .admin-requests-page .request-admin-card {
    grid-template-columns: 1fr;
  }

  .admin-requests-page .request-admin-lookup {
    grid-column: 1;
  }

  .admin-requests-page .request-release-table-wrap {
    overflow-x: visible;
    border: 0;
  }

  .admin-requests-page .request-release-table,
  .admin-requests-page .request-release-table thead,
  .admin-requests-page .request-release-table tbody,
  .admin-requests-page .request-release-table tr,
  .admin-requests-page .request-release-table th,
  .admin-requests-page .request-release-table td {
    display: block;
    width: 100% !important;
    box-sizing: border-box;
  }

  .admin-requests-page .request-release-table thead {
    display: none;
  }

  .admin-requests-page .request-release-table tr {
    margin: 0 0 10px;
    padding: 10px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    background: rgba(0,0,0,0.22);
  }

  .admin-requests-page .request-release-table td {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  .admin-requests-page .request-release-table td:last-child {
    border-bottom: 0;
  }

  .admin-requests-page .request-release-table td::before {
    content: attr(data-label);
    color: rgba(255,255,255,0.58);
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }

  .admin-requests-page .request-release-download-cell {
    text-align: left;
  }
}
