.library-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 80% 0, #6920a633, transparent 32%),
    radial-gradient(circle at 10% 30%, #006a8b33, transparent 28%), #060b15;
  color: #f4f7ff;
}
.library-shell {
  width: min(1120px, calc(100% - 38px));
  margin: auto;
  padding: 70px 0;
}
.library-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
}
.library-hero h1 {
  font-size: clamp(48px, 8vw, 86px);
  margin: 8px 0;
}
.library-hero h1 span {
  background: linear-gradient(100deg, #3cecff, #ee4cff);
  background-clip: text;
  color: transparent;
}
.library-hero p {
  max-width: 680px;
  color: #aab8c9;
  line-height: 1.7;
}
.library-hero aside {
  min-width: 180px;
  padding: 24px;
  border: 1px solid #2d6073;
  border-radius: 18px;
  background: #0b1d2a;
  text-align: center;
}
.library-hero aside b,
.library-hero aside span {
  display: block;
}
.library-hero aside b {
  font-size: 48px;
  color: #4defff;
}
.library-hero aside span {
  font-size: 10px;
  color: #9db3c0;
}
.library-tools {
  display: flex;
  gap: 10px;
  margin: 38px 0 20px;
}
.library-tools input,
.library-tools select {
  border: 1px solid #334960;
  border-radius: 11px;
  background: #0a1320;
  color: #fff;
  padding: 13px;
}
.library-tools input {
  flex: 1;
}
.library-add {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(320px, 1.4fr);
  gap: 22px;
  margin: 0 0 24px;
  padding: 24px;
  border: 1px solid #47366e;
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0, #8e3d9f33, transparent 45%), #0b1421;
}
.library-add h2 {
  margin: 7px 0;
  font-size: 26px;
}
.library-add p {
  margin: 0;
  color: #97a9ba;
  line-height: 1.6;
  font-size: 11px;
}
.library-add form {
  display: grid;
  grid-template-columns: 1.1fr 1fr 0.75fr;
  gap: 9px;
  align-items: end;
}
.library-add label {
  display: grid;
  gap: 6px;
  color: #b8c7d7;
  font-size: 9px;
  font-weight: 800;
}
.library-add input,
.library-add select,
.library-add button {
  min-width: 0;
  border: 1px solid #3b5068;
  border-radius: 9px;
  background: #08121f;
  color: #fff;
  padding: 11px;
  font: inherit;
}
.library-add form button {
  grid-column: 1/-1;
  border-color: #35dfe8;
  background: #123c4a;
  cursor: pointer;
  font-weight: 900;
}
.steam-import {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding-top: 16px;
  border-top: 1px solid #2a384c;
}
.steam-import div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.steam-import b {
  padding: 8px;
  border-radius: 50%;
  background: #173b5b;
  color: #fff;
  font-size: 8px;
}
.steam-import span {
  color: #aab9c9;
  font-size: 10px;
}
.steam-import button {
  border-color: #5799cc;
  background: #173c5b;
  cursor: pointer;
  font-weight: 900;
}
.library-add button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.library-action-status {
  grid-column: 1/-1;
  min-height: 18px;
  color: #62eee8 !important;
}
.library-status {
  padding: 18px;
  border: 1px solid #34475c;
  border-radius: 13px;
  background: #0b1421;
  color: #aab8c9;
}
.library-status a {
  color: #4defff;
}
.library-grid {
  display: grid;
  gap: 12px;
}
.library-card {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 17px;
  border: 1px solid #263b51;
  border-radius: 15px;
  background: linear-gradient(135deg, #0e1c2a, #0c0b1d);
}
.library-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #173d53, #4c1e71);
  font-size: 25px;
}
.library-card small {
  color: #65dff0;
  font-size: 9px;
  text-transform: uppercase;
}
.library-card h2 {
  margin: 4px 0;
  font-size: 22px;
}
.library-card p {
  margin: 0;
  color: #8fa2b3;
  font-size: 10px;
}
.library-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.library-actions button {
  border: 1px solid #3d4d62;
  border-radius: 8px;
  background: #101827;
  color: #b8c3d2;
  padding: 8px 10px;
  font: inherit;
  font-size: 9px;
  cursor: pointer;
}
.library-actions button.active {
  border-color: #4eeeff;
  color: #fff;
  background: #124052;
}
.library-actions button.remove {
  border-color: #69394f;
  color: #ef9cbd;
}
.library-help {
  margin-top: 55px;
}
.library-help > div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.library-help article {
  display: flex;
  gap: 14px;
  padding: 18px;
  border: 1px solid #293a50;
  border-radius: 13px;
  background: #0b1421;
}
.library-help article b {
  color: #4defff;
  font-size: 22px;
}
.library-help article p {
  margin: 0;
  color: #9cabbc;
  line-height: 1.6;
  font-size: 10px;
}
@media (max-width: 700px) {
  .library-shell {
    padding-top: 35px;
  }
  .library-hero {
    display: block;
  }
  .library-hero aside {
    margin-top: 20px;
  }
  .library-card {
    grid-template-columns: 54px 1fr;
  }
  .library-actions {
    grid-column: 1/-1;
    justify-content: flex-start;
  }
  .library-help > div {
    grid-template-columns: 1fr;
  }
  .library-tools {
    display: grid;
  }
  .library-add {
    grid-template-columns: 1fr;
    padding: 18px;
  }
  .library-add form {
    grid-template-columns: 1fr;
  }
  .steam-import {
    grid-column: auto;
    align-items: stretch;
    flex-direction: column;
  }
}
