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

.modown-wegame-banner {
  background: #0b0f12;
  padding: 24px 0 28px;
}

.modown-wegame-banner-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 184px;
  gap: 20px;
  width: min(100% - 56px, 1088px);
  margin: 0 auto;
}

.modown-wegame-stage {
  position: relative;
  min-height: var(--modown-wegame-banner-height, 425px);
  overflow: hidden;
  border-radius: 8px;
  background: #161b20;
}

.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.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: .98;
}

.modown-wegame-shade {
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    linear-gradient(90deg, rgba(10, 15, 18, .72) 0%, rgba(10, 15, 18, .48) 30%, rgba(10, 15, 18, .1) 65%, rgba(10, 15, 18, .34) 100%),
    linear-gradient(0deg, rgba(10, 15, 18, .58) 0%, rgba(10, 15, 18, .05) 58%);
}

.modown-wegame-content {
  position: absolute;
  left: 32px;
  bottom: 38px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: min(520px, calc(100% - 64px));
  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: 24px;
  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: 440px;
  margin-top: 10px;
  overflow: hidden;
  color: rgba(255, 255, 255, .82);
  font-size: 14px;
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -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-hot {
  background: #f39800;
  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;
  gap: 12px;
}

.modown-wegame-nav-item {
  display: flex;
  align-items: center;
  width: 100%;
  height: 48px;
  padding: 6px 10px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  text-align: left;
  transition: background .18s ease;
}

.modown-wegame-nav-item.is-active,
.modown-wegame-nav-item:hover,
.modown-wegame-nav-item:focus {
  background: rgba(255, 255, 255, .08);
  outline: none;
}

.modown-wegame-nav-item img {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  max-width: none;
  max-height: none;
  margin-right: 12px;
  border-radius: 4px;
  object-fit: cover;
}

.modown-wegame-nav-item span {
  min-width: 0;
  overflow: hidden;
  color: #fff;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}

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

  .modown-wegame-banner-inner {
    display: block;
    width: calc(100% - 20px);
  }

  .modown-wegame-stage {
    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;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .modown-wegame-nav-item {
    flex: 0 0 150px;
    height: 44px;
    padding: 5px 8px;
    background: rgba(255, 255, 255, .05);
  }

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

.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;
  }
}
