:root {
  --g-bg: #080c12;
  --g-panel: #111720;
  --g-line: #293443;
  --g-text: #f3f6fb;
  --g-muted: #8d98a8;
  --g-accent: #ff5ea8;
  --g-purple: #b889ff;
}

html, body {
  min-height: 100%;
  background: radial-gradient(900px 480px at 80% -120px,rgba(92,115,177,.14),transparent 60%),radial-gradient(760px 420px at 10% 0,rgba(255,94,168,.08),transparent 60%),linear-gradient(180deg,#0d121a,#080c12 45%,#070a0f);
  color: var(--g-text);
}

body {
  margin: 0;
  font-family: Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
}

.g-shell {
  width: min(1480px,calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.g-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 4px 2px 20px;
  border-bottom: 1px solid rgba(255,255,255,.04);
}

.g-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  color: inherit;
}

.g-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(145deg,rgba(255,94,168,.16),rgba(184,137,255,.06));
  border: 1px solid rgba(255,94,168,.18);
}

.g-mark svg {
  width: 27px;
  height: 27px;
}

.g-kicker {
  color: #ff8fc5;
  font-size: 9px;
  letter-spacing: 2px;
}

.g-brand strong {
  display: block;
  font-size: 19px;
  margin-top: 2px;
}

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

.g-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border: 1px solid #303b4a;
  border-radius: 9px;
  background: #141b25;
  color: #edf1f7;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}

.g-actions a:hover {
  background: #1b2430;
}

.g-actions .primary {
  background: linear-gradient(180deg,#bf477f,#963568);
  border-color: #d25b94;
}

.g-hero {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 30px;
  align-items: end;
  padding: 38px 3px 24px;
}

.g-hero h1 {
  margin: 4px 0 8px;
  font-size: 42px;
  line-height: 1;
  letter-spacing: -1.2px;
}

.g-hero p {
  max-width: 720px;
  margin: 0;
  color: #8e99a8;
  font-size: 13px;
  line-height: 1.6;
}

.g-filterbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 0 18px;
}

.g-filterbar button {
  border: 1px solid #2d3847;
  background: #121923;
  color: #aeb7c4;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.g-filterbar button.active {
  color: #fff;
  background: rgba(255,94,168,.13);
  border-color: rgba(255,94,168,.36);
}

.g-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 15px;
}

.g-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--g-line);
  border-radius: 15px;
  overflow: hidden;
  background: linear-gradient(180deg,#131a24,#0d131c);
  box-shadow: 0 14px 40px rgba(0,0,0,.16);
  text-decoration: none;
  color: inherit;
  transition: transform .18s ease,border-color .18s ease;
}

.g-card:hover {
  transform: translateY(-2px);
  border-color: #455367;
}

.g-card-media {
  position: relative;
  aspect-ratio: 4/5;
  background: #080c12;
  overflow: hidden;
}

.g-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .24s ease;
}

.g-card:hover img {
  transform: scale(1.02);
}

.g-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 -60px 80px rgba(3,5,8,.22);
  pointer-events: none;
}

.g-card-body {
  padding: 13px 14px 15px;
}

.g-category {
  font-size: 8px;
  letter-spacing: 1.45px;
  color: #e98eb9;
  text-transform: uppercase;
}

.g-card h2 {
  font-size: 15px;
  margin: 4px 0 6px;
}

.g-card p {
  margin: 0;
  color: #8590a0;
  font-size: 10px;
  line-height: 1.5;
  min-height: 45px;
}

.g-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.g-tags span {
  font-size: 8px;
  color: #aeb7c4;
  background: #111821;
  border: 1px solid #293544;
  border-radius: 999px;
  padding: 4px 7px;
}

.g-card.featured {
  border-color: #3b3342;
}

.g-featured {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  padding: 5px 7px;
  border-radius: 999px;
  background: rgba(8,10,15,.72);
  border: 1px solid rgba(255,94,168,.28);
  color: #ffc0df;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .8px;
}

.g-empty {
  display: none;
  padding: 40px;
  border: 1px dashed #303b4a;
  border-radius: 14px;
  text-align: center;
  color: #7f8997;
}

.g-empty.show {
  display: block;
  grid-column: 1/-1;
}

.g-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 30px;
  padding: 20px 2px;
  border-top: 1px solid rgba(255,255,255,.04);
  color: #667181;
  font-size: 10px;
}

.g-footer strong {
  color: #aab3c0;
  letter-spacing: 1px;
}

.g-dialog {
  width: min(1020px,calc(100% - 28px));
  padding: 0;
  border: 1px solid #344153;
  border-radius: 16px;
  background: #0c121a;
  color: #f4f6fa;
  box-shadow: 0 28px 90px rgba(0,0,0,.55);
}

.g-dialog::backdrop {
  background: rgba(3,5,9,.8);
  backdrop-filter: blur(8px);
}

.g-dialog-grid {
  display: grid;
  grid-template-columns: minmax(0,1.25fr) minmax(290px,.75fr);
  min-height: 560px;
}

.g-dialog-image {
  background: #070a0f;
}

.g-dialog-image img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 78vh;
  object-fit: cover;
}

.g-dialog-copy {
  padding: 24px;
}

.g-dialog-copy .g-category {
  font-size: 9px;
}

.g-dialog-copy h2 {
  font-size: 28px;
  margin: 7px 0 10px;
}

.g-dialog-copy p {
  color: #9aa4b2;
  font-size: 12px;
  line-height: 1.6;
}

.g-setting {
  margin-top: 20px;
  padding: 12px;
  border: 1px solid #293544;
  border-radius: 10px;
  background: #101720;
}

.g-setting strong {
  display: block;
  margin-bottom: 5px;
  color: #e99bc0;
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.g-setting span {
  color: #b8c0cb;
  font-size: 11px;
  line-height: 1.5;
}

.g-dialog-close {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #3a4656;
  background: rgba(8,11,17,.82);
  color: #fff;
  font-size: 19px;
  cursor: pointer;
}

@media(max-width:1050px) {
  .g-grid {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
}

@media(max-width:760px) {
  .g-shell {
    width: min(100% - 24px,1480px);
    padding-top: 12px;
  }
  .g-topbar {
    align-items: flex-start;
  }
  .g-brand strong {
    font-size: 16px;
  }
  .g-actions a {
    padding: 8px 9px;
    font-size: 10px;
  }
  .g-hero {
    grid-template-columns: 1fr;
    padding-top: 28px;
  }
  .g-hero h1 {
    font-size: 34px;
  }
  .g-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 10px;
  }
  .g-dialog-grid {
    grid-template-columns: 1fr;
  }
  .g-dialog-image img {
    max-height: 54vh;
  }
  .g-dialog-copy {
    padding: 18px;
  }
  .g-footer {
    flex-direction: column;
  }
}

@media(max-width:480px) {
  .g-grid {
    grid-template-columns: 1fr;
  }
  .g-card-media {
    aspect-ratio: 4/4.4;
  }
  .g-topbar {
    gap: 10px;
  }
  .g-actions {
    flex-direction: column;
  }
  .g-hero h1 {
    font-size: 30px;
  }
}
