/*
Theme Name: Modown Child
Template: modown
Version: 1.0.10
Description: Child theme for Modown.
*/

.modown-wegame-banner {
  background: transparent;
  padding: 26px 0 30px;
  overflow: hidden;
}

.modown-wegame-banner-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 30px;
  width: min(100%, var(--modown-wegame-container-width, 1200px));
  max-width: var(--modown-wegame-container-width, 1200px);
  margin: 0 auto;
}

.modown-wegame-stage {
  position: relative;
  height: var(--modown-wegame-banner-height, 620px);
  min-height: var(--modown-wegame-banner-height, 620px);
  overflow: hidden;
  border-radius: 6px;
  background: #eef1f4;
  box-shadow: 0 12px 34px rgba(22, 28, 34, .08);
  isolation: isolate;
}

.modown-wegame-slide {
  position: absolute;
  inset: 0;
  display: block;
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transition: opacity .24s ease, visibility 0s linear .24s;
}

.modown-wegame-slide:not(.is-active) {
  pointer-events: none;
}

.modown-wegame-slide.is-active {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.modown-wegame-image,
.modown-wegame-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
}

.modown-wegame-video {
  z-index: 2;
  opacity: 0;
  transition: opacity .2s ease;
}

.modown-wegame-video.is-ready {
  opacity: .98;
}

.modown-wegame-shade {
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    linear-gradient(90deg, rgba(4, 8, 12, .46) 0%, rgba(4, 8, 12, .2) 32%, rgba(4, 8, 12, .02) 66%),
    linear-gradient(0deg, rgba(4, 8, 12, .34) 0%, rgba(4, 8, 12, 0) 56%);
}

.modown-wegame-content {
  position: absolute;
  left: 42px;
  bottom: 48px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: min(620px, calc(100% - 84px));
  color: #fff;
}

.modown-wegame-subtitle {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, .66);
  font-size: 14px;
  line-height: 20px;
}

.modown-wegame-title {
  color: #fff;
  font-size: 28px;
  line-height: 1.35;
  font-weight: 800;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}

.modown-wegame-desc {
  display: -webkit-box;
  max-width: 560px;
  margin-top: 10px;
  overflow: hidden;
  color: rgba(255, 255, 255, .82);
  font-size: 14px;
  line-height: 1.6;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.modown-wegame-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.modown-wegame-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  background: rgba(255, 255, 255, .22);
  color: #fff;
  font-size: 13px;
  line-height: 28px;
  font-weight: 700;
}

.modown-wegame-tag.is-primary,
.modown-wegame-tag.is-hot {
  background: #f39800;
  color: #fff;
}

.modown-wegame-tag.is-free {
  background: #5cb85c;
  color: #fff;
}

.modown-wegame-tag.is-vip {
  background: #e0bf73;
  color: #4e342e;
}

.modown-wegame-tag.is-tuan {
  background: #03c8d4;
  color: #fff;
}

.modown-wegame-note {
  margin-top: 20px;
  color: rgba(255, 255, 255, .62);
  font-size: 14px;
  line-height: 20px;
}

.modown-wegame-nav {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--modown-wegame-banner-height, 620px);
  padding: 0;
}

.modown-wegame-nav-item {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 72px;
  padding: 12px 14px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #242a31;
  cursor: pointer;
  isolation: isolate;
  text-align: left;
  overflow: hidden;
  transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.modown-wegame-nav-item:hover,
.modown-wegame-nav-item:focus {
  background: #f7f8fa;
  outline: none;
}

.modown-wegame-nav-item.is-active {
  background: #f2f4f6;
  box-shadow: inset 0 0 0 1px rgba(20, 28, 36, .05);
  outline: none;
}

.modown-wegame-nav-item:before {
  content: "";
  position: absolute;
  inset: 0;
  width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(214, 222, 230, .58) 0%, rgba(226, 231, 236, .44) 100%);
  opacity: 0;
  transform: translateZ(0) scaleX(0);
  transform-origin: left center;
  pointer-events: none;
  z-index: 0;
  will-change: transform, opacity;
}

.modown-wegame-nav-item.is-active:before {
  opacity: 1;
  animation: modown-wegame-progress var(--modown-wegame-banner-interval, 5000ms) linear forwards;
}

.modown-wegame-nav-item img {
  position: relative;
  z-index: 2;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  max-width: none;
  max-height: none;
  margin-right: 12px;
  border-radius: 4px;
  object-fit: cover;
}

.modown-wegame-nav-title {
  position: relative;
  z-index: 2;
  min-width: 0;
  overflow: hidden;
  color: #20262d;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.modown-wegame-banner.is-paused .modown-wegame-nav-item.is-active:before {
  animation-play-state: paused;
}

@keyframes modown-wegame-progress {
  from {
    transform: translateZ(0) scaleX(0);
  }

  to {
    transform: translateZ(0) scaleX(1);
  }
}

@media (max-width: 768px) {
  .modown-wegame-banner {
    padding: 10px 0 16px;
  }

  .modown-wegame-banner-inner {
    display: block;
    width: auto;
  }

  .modown-wegame-stage {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .modown-wegame-content {
    left: 18px;
    bottom: 18px;
    width: calc(100% - 36px);
  }

  .modown-wegame-title {
    font-size: 18px;
  }

  .modown-wegame-desc {
    display: none;
  }

  .modown-wegame-tags {
    gap: 6px;
    margin-top: 12px;
  }

  .modown-wegame-tag {
    min-height: 24px;
    padding: 0 8px;
    font-size: 12px;
    line-height: 24px;
  }

  .modown-wegame-note {
    display: none;
  }

  .modown-wegame-nav {
    flex-direction: row;
    justify-content: flex-start;
    align-items: stretch;
    gap: 8px;
    height: 50px;
    min-height: 0;
    max-height: 50px;
    margin-top: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .modown-wegame-nav-item {
    flex: 0 0 150px;
    width: 150px;
    max-width: 150px;
    height: 48px;
    min-height: 48px;
    padding: 5px 8px;
    background: #f2f4f6;
    scroll-snap-align: start;
  }

  .modown-wegame-nav-item img {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    max-width: none;
    max-height: none;
    margin-right: 8px;
  }

  .modown-wegame-nav-title {
    font-size: 12px;
    line-height: 18px;
  }

}

.grids .grid .grid-video,
.lists .list .grid-video {
  display: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  background: #000;
  z-index: 2;
}

.grids .grid .grid-video video,
.grids .grid .grid-video iframe,
.lists .list .grid-video video,
.lists .list .grid-video iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.grids .grid .img,
.lists .list .img {
  position: relative;
  overflow: hidden;
}

.grids .grid.modown-hover-preview {
  position: relative;
  z-index: 1;
}

.grids .grid.modown-hover-preview:hover {
  z-index: 30;
}

.modown-hover-card {
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  width: 100%;
  background: #eaeaea;
  color: #333;
  border-radius: 6px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .24);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scaleY(.98);
  transform-origin: top center;
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
  overflow: hidden;
  z-index: 20;
}

.modown-hover-preview:hover .modown-hover-card {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scaleY(1);
  transition-delay: 0s;
}

.modown-hover-link,
.modown-hover-link:hover {
  display: block;
  color: inherit;
}

.modown-hover-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #d8d8d8;
  overflow: hidden;
}

.modown-hover-media img,
.modown-hover-media video,
.modown-hover-media iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

.modown-hover-media video,
.modown-hover-media iframe {
  z-index: 2;
}

.modown-hover-media .img-cat {
  position: absolute;
  left: 15px;
  top: 15px;
  display: inline-block;
  font-size: 12px;
  z-index: 11;
  background: rgba(0, 0, 0, .3);
  color: #fff;
  padding: 1px 6px 2px;
  border-radius: 2px;
}

.modown-hover-media .img-cat:empty {
  display: none;
}

.modown-hover-media .img-cat a {
  display: inline-block;
  height: auto;
  color: #fff;
}

.modown-hover-card > .vip-tag {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  z-index: 21;
  background: #e0bf73;
  background-image: linear-gradient(90deg, rgba(240, 214, 141, 1) 0%, rgba(224, 191, 115, 1) 100%);
  color: #4e342e;
  padding: 0 4px;
  font-size: 12px;
  border-radius: var(--theme-radius) 0 var(--theme-radius) 0;
  min-width: 32px;
  text-align: center;
}

.modown-hover-card > .vip-tag i {
  font-style: normal;
}

.modown-hover-card > .free-tag {
  background: #5cb85c !important;
  background-image: none;
  color: #fff !important;
}

.modown-hover-card > .tuan-tag {
  background: #03c8d4 !important;
  background-image: none;
  color: #fff !important;
}

.modown-hover-card > .recommend-tag {
  position: absolute;
  top: -4px;
  right: 10px;
  height: 20px;
  border-radius: 2px;
  border-top-left-radius: 0;
  text-align: center;
  font-weight: 400;
  background: var(--theme-color);
  color: #fff;
  font-size: 12px;
  padding: 0 4px;
  z-index: 21;
}

.modown-hover-card > .recommend-tag:before {
  content: "";
  display: inline-block;
  position: absolute;
  left: -4px;
  vertical-align: top;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 5px 5px;
  border-color: transparent transparent var(--theme-color) transparent;
}

.modown-hover-card .vip-tag,
.modown-hover-card .recommend-tag,
.modown-hover-card .img-cat {
  display: none !important;
}

.modown-hover-preview:hover > .vip-tag,
.modown-hover-preview:hover > .recommend-tag,
.modown-hover-preview:hover > .img .img-cat {
  visibility: hidden;
}

.modown-hover-body {
  padding: 18px 18px 20px;
}

.modown-hover-title {
  color: #151515;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 700;
  margin-bottom: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modown-hover-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.modown-hover-tags span {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  background: rgba(0, 0, 0, .08);
  color: #595f66;
  font-size: 12px;
  line-height: 24px;
  border-radius: 2px;
}

.modown-hover-date,
.modown-hover-excerpt {
  color: #626970;
  font-size: 13px;
  line-height: 1.7;
}

.modown-hover-date {
  margin-bottom: 10px;
}

.modown-hover-excerpt {
  display: block;
  min-height: 22px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.modown-hover-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 18px;
  border-top: 1px solid rgba(0, 0, 0, .08);
}

.modown-hover-footer-label {
  min-width: 0;
}

.modown-hover-label {
  top: 0;
  margin-right: 0;
}

.modown-hover-zan {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #737a82;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}

.modown-hover-zan .icon {
  font-size: 22px;
}

.modown-hover-zan.active,
.modown-hover-zan:hover {
  color: var(--theme-color);
}

@media (max-width: 767px) {
  .modown-hover-card {
    display: none;
  }
}

.wegame-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  margin: 0 0 28px;
  padding: 38px;
  background: #111617;
  color: #fff;
  border-radius: 2px;
  box-sizing: border-box;
}

.wegame-hero__media {
  min-width: 0;
}

.wegame-hero__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 360px;
  overflow: hidden;
  background: #070909;
}

.wegame-hero__pane {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility 0s linear .2s;
}

.wegame-hero__pane.is-active {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.wegame-hero__pane img,
.wegame-hero__pane video,
.wegame-hero__pane iframe {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  border: 0;
  object-fit: cover;
}

.wegame-hero__pane:after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(17, 22, 23, .65), rgba(17, 22, 23, 0));
}

.wegame-hero__play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 74px;
  height: 74px;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 50%;
  background: rgba(0, 0, 0, .32);
  color: #fff;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: background .18s ease, transform .18s ease, opacity .18s ease;
}

.wegame-hero__play .icon {
  font-size: 34px;
  line-height: 1;
}

.wegame-hero__play:hover {
  background: rgba(255, 126, 18, .88);
  transform: translate(-50%, -50%) scale(1.04);
}

.wegame-hero__pane.is-playing .wegame-hero__play {
  opacity: 0;
  pointer-events: none;
}

.wegame-hero__thumbs {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

.wegame-hero__thumb {
  position: relative;
  flex: 0 0 82px;
  width: 82px;
  height: 48px;
  padding: 0;
  border: 2px solid transparent;
  background: #202526;
  cursor: pointer;
  opacity: .68;
  overflow: hidden;
  transition: border-color .18s ease, opacity .18s ease, transform .18s ease;
}

.wegame-hero__thumb img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
}

.wegame-hero__thumb span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(0, 0, 0, .28);
}

.wegame-hero__thumb.is-active,
.wegame-hero__thumb:hover {
  border-color: #ff7a18;
  opacity: 1;
}

.wegame-hero__panel {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 26px;
  background: #232728;
  color: #f5f7f8;
  box-sizing: border-box;
}

.wegame-hero__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
}

.wegame-hero__head h1 {
  margin: 0;
  color: #fff;
  font-size: 24px;
  line-height: 1.3;
  font-weight: 800;
  word-break: break-word;
}

.wegame-hero__rate {
  min-width: 68px;
  padding-left: 16px;
  border-left: 1px solid rgba(255, 255, 255, .14);
  text-align: center;
}

.wegame-hero__rate strong {
  display: block;
  color: #fff;
  font-size: 28px;
  line-height: 1;
}

.wegame-hero__rate span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, .64);
  font-size: 12px;
}

.wegame-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

.wegame-hero__tags span {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  background: #121516;
  color: #e6e9eb;
  font-size: 12px;
  line-height: 24px;
  font-weight: 700;
}

.wegame-hero__tags span:first-child {
  background: #ff8a18;
  color: #161000;
}

.wegame-hero__metas,
.wegame-hero__makers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 18px;
  margin: 22px 0 0;
}

.wegame-hero__metas div,
.wegame-hero__makers div {
  min-width: 0;
}

.wegame-hero__metas dt,
.wegame-hero__makers dt {
  margin: 0 0 4px;
  color: rgba(255, 255, 255, .56);
  font-size: 12px;
  line-height: 18px;
}

.wegame-hero__metas dd,
.wegame-hero__makers dd {
  margin: 0;
  overflow: hidden;
  color: #eef2f3;
  font-size: 13px;
  line-height: 20px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.wegame-hero__makers {
  margin-top: 24px;
}

.wegame-hero__action {
  margin-top: auto;
  padding-top: 26px;
}

.wegame-hero__agreement {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
  line-height: 18px;
  cursor: pointer;
}

.wegame-hero__agreement input {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin: 2px 0 0;
}

.wegame-hero__agreement a {
  color: #ff9b2e;
}

.wegame-hero__download {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 3px;
  background: #ff8a18;
  color: #111;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: background .18s ease, opacity .18s ease, transform .18s ease;
}

.wegame-hero__download:hover {
  background: #ffa23a;
  transform: translateY(-1px);
}

.wegame-hero__download.is-disabled,
.wegame-hero__download:disabled {
  cursor: not-allowed;
  opacity: .48;
  transform: none;
}

.wegame-hero__tip {
  margin: 9px 0 0;
  color: rgba(255, 255, 255, .5);
  font-size: 12px;
  line-height: 18px;
}

.wegame-hero__download-source {
  display: none;
}

@media (max-width: 980px) {
  .wegame-hero {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .wegame-hero__stage {
    min-height: 0;
  }

  .wegame-hero__panel {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .wegame-hero {
    margin-right: -12px;
    margin-left: -12px;
    padding: 14px;
  }

  .wegame-hero__head {
    display: block;
  }

  .wegame-hero__head h1 {
    font-size: 20px;
  }

  .wegame-hero__rate {
    display: inline-flex;
    gap: 8px;
    align-items: baseline;
    margin-top: 12px;
    padding-left: 0;
    border-left: 0;
    text-align: left;
  }

  .wegame-hero__rate strong {
    font-size: 22px;
  }

  .wegame-hero__metas,
  .wegame-hero__makers {
    grid-template-columns: 1fr;
  }

  .wegame-hero__thumbs {
    justify-content: flex-start;
  }
}

/* WeGame-like post hero, tuned to Modown visual language. */
.wegame-hero {
  --wegame-accent: var(--theme-color, #409eff);
  --wegame-bg: #fff;
  --wegame-soft: #f6f8fa;
  --wegame-border: #edf0f2;
  --wegame-text: #20262d;
  display: block;
  width: 100%;
  margin: 0 0 26px;
  padding: 20px;
  background: var(--wegame-bg);
  color: var(--wegame-text);
  border-radius: var(--theme-radius, 6px);
  box-shadow: 0 6px 22px rgba(20, 28, 36, .05);
  box-sizing: border-box;
}

.wegame-hero__main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
}

.wegame-hero__stage {
  min-height: 360px;
  background: #eef1f4;
  border-radius: var(--theme-radius, 6px);
}

.wegame-hero__pane:after {
  height: 28%;
  background: linear-gradient(0deg, rgba(0, 0, 0, .24), rgba(0, 0, 0, 0));
}

.wegame-hero__play {
  width: 62px;
  height: 62px;
  border-color: rgba(255, 255, 255, .72);
  background: rgba(0, 0, 0, .24);
}

.wegame-hero__play .icon {
  font-size: 28px;
}

.wegame-hero__play:hover {
  background: var(--wegame-accent);
}

.wegame-hero__panel {
  padding: 24px;
  background: var(--wegame-soft);
  border: 1px solid var(--wegame-border);
  border-radius: var(--theme-radius, 6px);
  color: var(--wegame-text);
}

.wegame-hero__head h1 {
  color: var(--wegame-text);
}

.wegame-hero__rate {
  border-left-color: #e2e6ea;
}

.wegame-hero__rate strong {
  color: var(--wegame-accent);
}

.wegame-hero__rate span {
  color: #7b858f;
}

.wegame-hero__tags,
.wegame-hero__makers {
  display: none !important;
}

.wegame-hero__metas {
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
  margin-top: 24px;
}

.wegame-hero__metas dt {
  color: #838c96;
}

.wegame-hero__metas dd {
  color: #26313b;
  font-weight: 600;
}

.wegame-hero__agreement {
  display: inline-flex;
  align-items: center;
  margin: 0;
  color: #626d78;
}

.wegame-hero__agreement input {
  margin: 0;
  accent-color: var(--wegame-accent);
}

.wegame-hero__agreement-link {
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--wegame-accent);
  font-size: 12px;
  line-height: 18px;
  cursor: pointer;
}

.wegame-hero__download {
  margin-top: 14px;
  border-radius: var(--theme-radius, 6px);
  background: var(--wegame-accent);
  color: #fff;
}

.wegame-hero__download:hover {
  filter: brightness(1.05);
}

.wegame-hero__thumbbar {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  gap: 14px;
  align-items: center;
  width: min(100%, 860px);
  margin: 18px auto 0;
  padding: 14px 18px;
  background: var(--wegame-soft);
  border: 1px solid var(--wegame-border);
  border-radius: var(--theme-radius, 6px);
  box-sizing: border-box;
}

.wegame-hero__thumbs {
  gap: 14px;
  justify-content: flex-start;
  margin-top: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 0 4px;
  scroll-behavior: smooth;
}

.wegame-hero__thumbs::-webkit-scrollbar {
  height: 4px;
}

.wegame-hero__thumbs::-webkit-scrollbar-thumb {
  background: #d8dde3;
  border-radius: 999px;
}

.wegame-hero__thumb {
  border-radius: 4px;
  background: #e8edf2;
}

.wegame-hero__thumb.is-active,
.wegame-hero__thumb:hover {
  border-color: var(--wegame-accent);
}

.wegame-hero__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #6f7b86;
  box-shadow: 0 2px 8px rgba(20, 28, 36, .08);
  cursor: pointer;
}

.wegame-hero__arrow:hover {
  color: #fff;
  background: var(--wegame-accent);
}

.wegame-hero__modal[hidden] {
  display: none;
}

.wegame-hero__modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, .42);
}

.wegame-hero__modal-card {
  position: relative;
  width: min(100%, 520px);
  padding: 28px;
  background: #fff;
  color: #27313b;
  border-radius: var(--theme-radius, 6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .22);
}

.wegame-hero__modal-card h3 {
  margin: 0 0 14px;
  font-size: 20px;
  line-height: 1.3;
}

.wegame-hero__modal-card p {
  margin: 10px 0 0;
  color: #59636e;
  font-size: 14px;
  line-height: 1.7;
}

.wegame-hero__modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  color: #7b858f;
  font-size: 24px;
  line-height: 30px;
  cursor: pointer;
}

@media (max-width: 980px) {
  .wegame-hero {
    padding: 16px;
  }

  .wegame-hero__main {
    grid-template-columns: 1fr;
  }

  .wegame-hero__stage {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .wegame-hero {
    margin-right: 0;
    margin-left: 0;
    padding: 12px;
  }

  .wegame-hero__metas {
    grid-template-columns: 1fr;
  }

  .wegame-hero__thumbbar {
    grid-template-columns: 28px minmax(0, 1fr) 28px;
    gap: 8px;
    padding: 10px;
  }

  .wegame-hero__arrow {
    width: 28px;
    height: 28px;
  }
}
