/* Page-specific presentation for catalog.html. Keep behavior in assets/js. */
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #07080f;
  color: #f8f9ff;
  font-family: Manrope, Arial, sans-serif;
}
.shell {
  max-width: 1240px;
  margin: auto;
  padding: 0 28px;
}
.topline {
  background: #b8ffda;
  color: #072317;
  font:
    500 11px/1 'DM Mono',
    monospace;
  letter-spacing: 0.08em;
  text-align: center;
  padding: 12px 18px;
}
nav {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  color: white;
  text-decoration: none;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.055em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.mark {
  display: grid;
  place-items: center;
  background: #b8ffda;
  color: #081224;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 14px;
}
.links {
  display: flex;
  gap: 28px;
}
.links a {
  color: #c8cad4;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.links a.active {
  color: #b8ffda;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.catalog-promo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 24px 0 0;
  padding: 14px 17px;
  border: 1px solid rgba(184, 255, 218, 0.32);
  border-radius: 12px;
  background: linear-gradient(100deg, rgba(184, 255, 218, 0.12), rgba(105, 170, 255, 0.08));
}
.catalog-promo div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.catalog-promo strong {
  color: #fff;
  font-size: 13px;
}
.catalog-promo span {
  color: #aeb3c0;
  font-size: 12px;
}
.catalog-promo b {
  color: #b8ffda;
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.04em;
}
.catalog-promo a {
  flex: 0 0 auto;
  color: #b8ffda;
  font: 700 12px Manrope, sans-serif;
  text-decoration: none;
}
.catalog-promo a:hover {
  color: #fff;
}
.login {
  color: white;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}
.join,
.cart,
.logout,
.account-link {
  border: 0;
  border-radius: 10px;
  background: #b8ffda;
  color: #092117;
  text-decoration: none;
  padding: 13px 17px;
  font: 800 13px Manrope;
}
.account-link[hidden] {
  display: none !important;
}
.account-link {
  background: #171a26;
  color: #b8ffda;
  border: 1px solid #b8ffda44;
}
.cart {
  position: relative;
  background: #171a26;
  color: white;
}
.badge {
  display: none;
  position: absolute;
  right: -7px;
  top: -7px;
  background: #ff7b92;
  color: #26050c;
  border-radius: 50%;
  font: 800 10px Manrope;
  width: 18px;
  height: 18px;
  place-items: center;
}
.hero {
  padding: 45px 0 35px;
  border-top: 1px solid #ffffff17;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: end;
}
.eyebrow {
  color: #b8ffda;
  font:
    11px 'DM Mono',
    monospace;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.eyebrow:before {
  content: '●';
  font-size: 9px;
  margin-right: 9px;
}
h1 {
  margin: 12px 0 0;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 0.96;
  letter-spacing: -0.075em;
}
.hero p {
  max-width: 360px;
  color: #aeb3c0;
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
}
.tools {
  padding: 21px 0;
  border-top: 1px solid #ffffff17;
  border-bottom: 1px solid #ffffff17;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
}
.catalog-controls {
  display: grid;
  gap: 12px;
  width: min(100%, 620px);
}
.catalog-search span {
  display: block;
  margin-bottom: 6px;
  color: #989eaf;
  font:
    10px 'DM Mono',
    monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.catalog-search input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ffffff20;
  border-radius: 10px;
  outline: 0;
  color: #fff;
  background: #11131d;
  font: 600 13px Manrope;
}
.catalog-search input:focus {
  border-color: #b8ffda;
  box-shadow: 0 0 0 3px #b8ffda18;
}
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter {
  border: 1px solid #ffffff20;
  background: #11131d;
  color: #aeb3c0;
  border-radius: 99px;
  padding: 9px 13px;
  font: 600 12px Manrope;
  cursor: pointer;
}
.join[hidden],
.login[hidden],
.logout[hidden] {
  display: none !important;
}
.filter.active,
.filter:hover {
  border-color: #b8ffda;
  background: #b8ffda;
  color: #082018;
}
.count {
  font:
    12px 'DM Mono',
    monospace;
  color: #aeb3c0;
}
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 28px 0 70px;
}
.card {
  background: #11131d;
  border: 1px solid #ffffff18;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  transition: 0.2s;
}
.card:hover {
  transform: translateY(-5px);
  border-color: #89b7ff;
}
.cover {
  display: block;
  width: 100%;
  height: 245px;
  object-fit: cover;
  object-position: center top;
  background: #202431;
}
.tag {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 6px 8px;
  border-radius: 6px;
  background: #090b11dd;
  color: #b8ffda;
  font:
    10px 'DM Mono',
    monospace;
}
.info {
  padding: 14px;
}
.genre {
  font:
    10px 'DM Mono',
    monospace;
  color: #989eaf;
  text-transform: uppercase;
}
.title {
  font-size: 15px;
  letter-spacing: -0.04em;
  margin: 7px 0 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.price {
  font-size: 13px;
  color: #b8ffda;
  font-weight: 800;
}
.price small {
  font-size: 10px;
  color: #8e94a4;
  font-weight: 500;
}
.rent {
  border: 1px solid #ffffff20;
  background: transparent;
  color: #fff;
  padding: 8px 10px;
  border-radius: 7px;
  font: 800 11px Manrope;
  cursor: pointer;
}
.rent:hover {
  background: #b8ffda;
  color: #082018;
  border-color: #b8ffda;
}
.empty {
  display: none;
  text-align: center;
  color: #aeb3c0;
  padding: 70px 0;
}
.site-footer {
  border-top: 1px solid #ffffff17;
  margin-top: 55px;
  padding: 45px 0 22px;
  background: linear-gradient(180deg, #0d1019, #080910);
  color: #868b9a;
  font-size: 12px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.65fr 1.2fr 1fr;
  gap: 36px;
}
.footer-brand strong,
.footer-links strong,
.footer-note strong {
  color: #fff;
  font-size: 13px;
}
.footer-brand p,
.footer-note p {
  color: #9ba1b0;
  line-height: 1.6;
  max-width: 260px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links a {
  color: #a9afbe;
  text-decoration: none;
}
.footer-links a:hover {
  color: #b8ffda;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 32px;
  padding-top: 19px;
  border-top: 1px solid #ffffff17;
}
@media (max-width: 850px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .links {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero {
    padding-top: 30px;
  }
}
@media (max-width: 580px) {
  .catalog-promo {
    align-items: flex-start;
    flex-direction: column;
  }
  .shell {
    padding: 0 18px;
  }
  nav {
    height: 72px;
    gap: 8px;
  }
  .brand {
    font-size: 16px;
  }
  .nav-actions {
    gap: 6px;
  }
  .cart,
  .logout,
  .account-link {
    min-height: 44px;
    padding: 10px;
    font-size: 11px;
  }
  .join {
    display: none;
  }
  .hero {
    display: block;
  }
  .hero p {
    margin-top: 22px;
  }
  .tools {
    align-items: flex-start;
    flex-direction: column;
  }
  .count {
    padding-top: 10px;
  }
  .catalog-search input {
    min-height: 46px;
    font-size: 16px;
  }
  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .cover {
    height: 190px;
  }
  .card {
    border-radius: 12px;
  }
  .info {
    padding: 11px;
  }
  .title {
    font-size: 13px;
    margin: 6px 0 11px;
  }
  .rent {
    min-height: 42px;
    padding: 7px;
  }
  .login {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 26px 18px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 7px;
  }
}
@media (max-width: 430px) {
  .shell {
    padding-inline: 14px;
  }
  .topline {
    padding-inline: 10px;
    font-size: 9px;
  }
  .brand {
    font-size: 0;
  }
  .mark {
    font-size: 14px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .cover {
    height: min(390px, 112vw);
  }
  .info {
    padding: 14px;
  }
  .title {
    font-size: 15px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
