@font-face {
  font-family: "Oxanium-Bold";
  src: url("img/font/Oxanium-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #070b13;
  --blue: #2f8cff;
  --blue-soft: #7cc1ff;
  --text: #f7fbff;
  --muted: #9aa8bd;
  --line: rgba(255, 255, 255, 0.11);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: linear-gradient(180deg, #070b13 0%, #09101d 46%, #070b13 100%);
  color: var(--text);
  font-family: "Oxanium-Bold", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 96px;
  padding: 0 34px 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 11, 19, 0.94);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.28);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand img {
  width: clamp(220px, 23vw, 360px);
  max-height: 82px;
  object-fit: contain;
  filter: drop-shadow(0 14px 26px rgba(47, 140, 255, 0.28));
}

.header-search {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  width: min(230px, 22vw);
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: #fff;
  color: #07111f;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}

.header-search svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #07111f;
  font: inherit;
  font-size: 1rem;
}

.header-search input:focus::placeholder {
  color: transparent;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 0 74px;
}

.page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.page-heading h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1;
}

.page-heading p {
  max-width: 520px;
  color: var(--muted);
  line-height: 1.6;
}

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

.models-grid > .native-model-ad {
  grid-column: 1 / -1 !important;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 1;
  min-height: 180px;
  max-height: 295px;
  overflow: hidden;
}

.models-grid > .native-model-ad > div {
  width: 100% !important;
  max-width: 100% !important;
}

.model-card {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(17, 26, 43, 0.98), rgba(10, 16, 28, 0.98));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
  isolation: isolate;
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease;
}

.model-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 62%;
  z-index: 2;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.54) 38%, rgba(0, 0, 0, 0.2) 68%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
}

.model-card:hover {
  transform: translateY(-6px);
  border-color: rgba(47, 140, 255, 0.45);
}

.model-preview {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(225, 237, 255, 0.95));
}

.model-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.model-stats {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.stat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 42px;
  height: 24px;
  padding: 0 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.48);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
  color: #f7fbff;
  font-size: 0.68rem;
  line-height: 1;
  backdrop-filter: blur(12px);
}

.stat svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.model-title {
  position: absolute;
  left: 50%;
  bottom: 16px;
  z-index: 3;
  width: max-content;
  min-width: 130px;
  max-width: calc(100% - 28px);
  padding: 0 14px;
  text-align: center;
  font-size: 1.02rem;
  text-transform: capitalize;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.85);
  transform: translateX(-50%);
}

.empty-preview,
.empty-state {
  display: grid;
  place-items: center;
  color: rgba(7, 17, 31, 0.58);
  text-align: center;
}

.empty-state {
  grid-column: 1 / -1;
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
}

  .trending-footer-ads {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    width: 100%;
    overflow: hidden;
    margin: 42px 0 24px;
  }

  .trending-footer-ad {
    flex: 0 0 300px;
    width: 300px;
    height: 250px;
    overflow: hidden;
  }

  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0;
  color: var(--muted);
}

.footer-brand {
  display: flex;
  align-items: center;
  color: var(--text);
}

.footer-brand img {
  width: clamp(190px, 18vw, 260px);
  height: auto;
  max-height: 78px;
  object-fit: contain;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  transition: color 180ms ease;
}

.footer-links a:hover {
  color: var(--blue-soft);
}

@media (max-width: 920px) {
  .models-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: 82px;
    padding: 0 12px;
    gap: 10px;
  }

  .brand img {
    width: clamp(165px, 50vw, 220px);
    max-height: 64px;
  }

  .header-search {
    width: min(38vw, 170px);
    min-height: 40px;
    padding: 0 12px;
  }

  .page-heading {
    display: block;
  }

  .page-heading p {
    margin-top: 8px;
  }

  .models-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
