.wallpaper-page {
  --wallpaper-ink: #0f172a;
  --wallpaper-muted: #64748b;
  --wallpaper-line: #eef0f4;
  --wallpaper-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
  color: var(--wallpaper-ink);
}

.wallpaper-page * {
  box-sizing: border-box;
}

.wallpaper-grid {
  width: 100%;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.wallpaper-hero {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  color: #fff;
  margin-bottom: 24px;
  background: linear-gradient(135deg, rgba(49, 24, 82, 0.82) 0%, rgba(116, 35, 74, 0.76) 45%, rgba(141, 70, 24, 0.68) 100%), url(../images/wallpaper/wc2026.jpg) center / cover no-repeat;
}


.wallpaper-hero-inner {
  position: relative;
  z-index: 1;
  width: min(100% - 36px, 620px);
  padding: 48px 0;
}

.wallpaper-hero h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: 0;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .25);
}

.wallpaper-hero-sub {
  margin: 14px 0 0;
  font-size: 16px;
  font-weight: 600;
}

.wallpaper-hero-desc {
  max-width: 680px;
  margin: 22px auto 0;
  font-size: 14px;
  font-weight: 500;
  opacity: .88;
}

.wallpaper-hero-meta {
  display: flex;
  gap: 8px 14px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin: 18px 0 0;
  font-size: 13px;
  font-weight: 500;
  opacity: .86;
}

.wallpaper-hero-meta strong {
  font-weight: 700;
}

.wallpaper-block {
  padding: 24px 0;
}

.wallpaper-head {
  margin-bottom: 26px;
  text-align: center;
}

.wallpaper-head h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: 0;
}

.wallpaper-head span {
  display: block;
  width: 64px;
  height: 3px;
  margin: 14px auto 0;
  border-radius: 3px;
  background-image: url("../images/wallpaper/rule-bg.svg");
  background-size: 100% 100%;
}

.wallpaper-head p {
  margin: 12px 0 0;
  color: var(--wallpaper-muted);
  font-size: 14px;
  line-height: 1.45;
}

.wallpaper-highlight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.wallpaper-highlight-card,
.wallpaper-team-card,
.wallpaper-venue-card {
  border: 1px solid var(--wallpaper-line);
  box-shadow: var(--wallpaper-shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}

.wallpaper-highlight-card:hover,
.wallpaper-team-card:hover,
.wallpaper-venue-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, .12);
}

.wallpaper-highlight-card {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 10px;
  border-radius: 16px;
}

.wallpaper-highlight-thumb {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border-radius: 12px;
}

.wallpaper-highlight-thumb img,
.wallpaper-team-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wallpaper-card-text,
.wallpaper-team-body {
  min-width: 0;
}

.wallpaper-card-text strong,
.wallpaper-card-text em,
.wallpaper-team-body strong,
.wallpaper-team-meta em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-style: normal;
}

.wallpaper-card-text strong {
  font-size: 15px;
  line-height: 1.25;
  font-weight: 700;
}

.wallpaper-card-text em {
  margin-top: 3px;
  font-size: 12px;
  color: var(--wallpaper-muted);
}

.wallpaper-team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.wallpaper-team-card {
  display: block;
  min-width: 0;
  overflow: hidden;
  border-radius: 16px;
}

.wallpaper-team-cover {
  display: block;
  height: 104px;
  overflow: hidden;
}

.wallpaper-team-body {
  display: block;
  padding: 12px 14px 14px;
}

.wallpaper-team-body strong {
  font-size: 15px;
  line-height: 1.25;
  font-weight: 700;
}

.wallpaper-team-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 5px;
  min-width: 0;
}

.wallpaper-team-meta img {
  flex: 0 0 14px;
  width: 14px;
  height: 10px;
  border-radius: 1px;
}

.wallpaper-team-meta em {
  min-width: 0;
  font-size: 12px;
  color: var(--wallpaper-muted);
}

.wallpaper-az-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
}

.wallpaper-az-card {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 11px 14px;
  border-radius: 10px;
  color: var(--wallpaper-ink);
  text-decoration: none;
  transition: background .12s ease;
}

.wallpaper-az-card:hover {
  background: #f1f3f7;
}

.wallpaper-az-flag {
  flex: 0 0 18px;
  width: 18px;
}

.wallpaper-az-flag img {
  display: block;
  width: 18px;
  height: 12px;
  object-fit: cover;
  /* border-radius: 2px; */
}

.wallpaper-az-card strong,
.wallpaper-az-card em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-style: normal;
}

.wallpaper-az-card strong {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 600;
}

.wallpaper-az-card em {
  flex: 0 0 auto;
  color: var(--wallpaper-ink);
  font-size: 14px;
  font-weight: 700;
}

.wallpaper-venue-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.wallpaper-venue-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 14px;
  border-radius: 16px;
  color: var(--wallpaper-ink);
  text-decoration: none;
}

.wallpaper-venue-cover {
  flex: 0 0 84px;
  width: 84px;
  height: 60px;
  overflow: hidden;
  border-radius: 10px;
  background: #123b4d;
}

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

.wallpaper-venue-body {
  flex: 1;
  min-width: 0;
}

.wallpaper-venue-body strong,
.wallpaper-venue-meta em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-style: normal;
}

.wallpaper-venue-body strong {
  font-size: 15px;
  line-height: 1.25;
  font-weight: 700;
}

.wallpaper-venue-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin-top: 5px;
}

.wallpaper-venue-meta img {
  flex: 0 0 14px;
  width: 14px;
  height: 10px;
  border-radius: 1px;
}

.wallpaper-venue-meta em {
  min-width: 0;
  color: var(--wallpaper-muted);
  font-size: 12px;
}

.wallpaper-venue-count {
  flex: 0 0 auto;
  padding-left: 4px;
  color: var(--wallpaper-ink);
  font-size: 14px;
  line-height: 1;
  font-style: normal;
  font-weight: 700;
}

.wallpaper-ad-wrap {
  padding: 18px 0 0;
}

.wallpaper-ad {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #cbd2dc;
  border-radius: 12px;
  background-image: url("../images/wallpaper/ad-bg.svg");
  background-size: cover;
  background-position: center;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
}

.wallpaper-category-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.wallpaper-category-intro h1 {
  color: #0f172a;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: 0;
}

.wallpaper-category-intro p {
  margin: 16px 0 0;
  color: #334155;
  font-size: 16px;
  line-height: 1.6;
}

.wallpaper-collection-link {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 6px 14px;
  min-width: 0;
  padding: 10px 14px;
  color: #fff;
  text-decoration: none;
  border-radius: 14px;
  background: linear-gradient(100deg, #8a3d1f 0%, #6a3046 48%, #402957 100%);
  box-shadow: 0 14px 30px rgba(15, 23, 42, .12);
}

.wallpaper-collection-link strong,
.wallpaper-collection-link span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wallpaper-collection-link strong {
  font-size: 16px;
  line-height: 1.2;
  font-weight: 800;
}

.wallpaper-collection-link span {
  color: rgba(255, 255, 255, .88);
  font-size: 14px;
  line-height: 1.3;
}

.wallpaper-collection-link em {
  grid-row: 1 / span 2;
  grid-column: 2;
  font-style: normal;
  font-size: 22px;
  line-height: 1;
}

.wallpaper-download-list {
  display: grid;
  gap: 20px;
}

.wallpaper-download-card {
  overflow: hidden;
  border-radius: 16px;
  /* background: #0f3d2a; */
  /* background: linear-gradient(#3aa341,#1f6e2a); */
  box-shadow: 0 12px 30px rgba(15, 23, 42, .12);
}

.wallpaper-download-cover {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #ececec;
}

.wallpaper-download-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wallpaper-download-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 16px;
  color: #fff;
}

.wallpaper-resolution {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 7px;
  background: rgba(15, 23, 42, .78);
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
}

.wallpaper-download-info h2 {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0;
  color: #333;
}

.wallpaper-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 10px;
  background: #e11d2a;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  line-height: 1;
  font-weight: 800;
}

.wallpaper-download-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.wallpaper-back-top {
  position: fixed;
  right: 16px;
  bottom: 18px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(100deg, #8a3d1f 0%, #6a3046 48%, #402957 100%);
  /* background: #e11d2a; */
  color: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .22);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .18s ease, visibility .18s ease, transform .18s ease, background .18s ease;
}

.wallpaper-back-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.wallpaper-back-top:hover {
  /* background: #be1420; */
}

.wallpaper-back-top:focus-visible {
  /* outline: 3px solid rgba(225, 29, 42, .28); */
  outline-offset: 3px;
}

.wallpaper-back-top svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

@media (min-width: 768px) {
  .wallpaper-grid {
    max-width: 760px;
  }

  .wallpaper-hero {
    min-height: 300px;
  }

  .wallpaper-hero-inner {
    width: min(760px, calc(100% - 40px));
    padding: 56px 0;
  }
  
  .wallpaper-hero h1 {
    font-size: 46px;
  }

  .wallpaper-hero-sub {
    font-size: 19px;
  }

  .wallpaper-hero-desc {
    font-size: 15px;
  }

  .wallpaper-hero-meta {
    gap: 18px;
    font-size: 14px;
  }

  .wallpaper-hero {
    margin-bottom: 32px;
  }

  .wallpaper-block {
    padding: 32px 0;
  }

  .wallpaper-ad-wrap {
    padding: 24px 0 0;
  }

  .wallpaper-head {
    margin-bottom: 36px;
  }

  .wallpaper-head h2 {
    font-size: 30px;
  }

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

  .wallpaper-highlight-card {
    gap: 16px;
    padding: 14px;
  }

  .wallpaper-highlight-thumb {
    flex-basis: 64px;
    width: 64px;
    height: 64px;
  }

  .wallpaper-card-text strong {
    font-size: 17px;
  }
  .wallpaper-team-body strong,
  .wallpaper-venue-body strong {
    font-size: 16px;
  }
  .wallpaper-venue-count {
    font-size: 15px;
  }

  .wallpaper-card-text em,
  .wallpaper-team-meta em,
  .wallpaper-venue-meta em {
    font-size: 13px;
  }

  .wallpaper-team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }

  .wallpaper-team-cover {
    height: 128px;
  }

  .wallpaper-az-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 16px;
  }

  .wallpaper-venue-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .wallpaper-category-main {
    gap: 24px;
  }

  .wallpaper-category-intro h1 {
    font-size: 34px;
  }

  .wallpaper-category-intro p {
    font-size: 16px;
  }

  .wallpaper-collection-link {
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 14px;
  }

  .wallpaper-collection-link strong {
    font-size: 18px;
  }

  .wallpaper-collection-link span {
    font-size: 14px;
  }

  .wallpaper-collection-link em {
    grid-row: auto;
    grid-column: auto;
  }

  .wallpaper-download-list {
    gap: 24px;
  }

  .wallpaper-download-card {
    border-radius: 16px;
  }

  .wallpaper-download-info {
    flex-direction: row;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
  }

  .wallpaper-resolution {
    min-height: 28px;
    padding: 0 10px;
    font-size: 12px;
  }

  .wallpaper-download-info h2 {
    font-size: 15px;
  }

  .wallpaper-download-btn {
    flex: 0 0 auto;
    width: auto;
    min-width: 150px;
    min-height: 42px;
    font-size: 14px;
  }

  .wallpaper-back-top {
    right: 24px;
    bottom: 64px;
    width: 46px;
    height: 46px;
  }
  .wallpaper-back-top svg {
    width: 30px;
    height: 30px;
  }
}

@media (min-width: 1200px) {
  .wallpaper-side {
    position: sticky;
    top: 24px;
    align-self: start;
    width: 300px;
  }

  .wallpaper-side > * {
    width: 100%;
  }

  .wallpaper-grid {
    max-width: 1136px;
  }

  .wallpaper-hero {
    margin-bottom: 40px;
  }

  .wallpaper-block {
    padding: 40px 0;
  }

  .wallpaper-ad-wrap {
    padding: 24px 0 0;
  }

  .wallpaper-team-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .wallpaper-az-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .wallpaper-venue-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .wallpaper-back-top {
    right: 32px;
    bottom: 64px;
  }
}
