/* rmwbwg layout refresh */
:root {
  --rm-bg: #080b10;
  --rm-panel: #111722;
  --rm-line: rgba(226, 232, 240, .12);
  --rm-text: #eef3f8;
  --rm-muted: #9aa7b8;
  --rm-accent: #34d399;
  --rm-accent-2: #f59e0b;
}

* { box-sizing: border-box; }

html,
body {
  min-height: 100%;
  background:
    radial-gradient(circle at 20% 0%, rgba(52, 211, 153, .12), transparent 28rem),
    linear-gradient(180deg, #0d1118 0%, var(--rm-bg) 46%, #090c11 100%) !important;
  color: var(--rm-text) !important;
}

body,
input,
button,
select,
textarea {
  font-family: Arial, "Microsoft YaHei", sans-serif;
}

a { color: var(--rm-text); text-decoration: none; }
a:hover { color: var(--rm-accent) !important; }

.container {
  width: min(1280px, calc(100% - 28px)) !important;
  max-width: 1280px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.maomi-content,
.header-container,
.section-menu,
.footer-container,
.main-container,
#main-container {
  background: transparent !important;
}

.header-container {
  margin-top: 16px !important;
  padding: 18px 20px !important;
  border: 1px solid var(--rm-line) !important;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(21, 29, 42, .94), rgba(14, 20, 30, .94)) !important;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .28);
}

.header_title {
  color: var(--rm-text) !important;
  font-size: clamp(24px, 3vw, 38px) !important;
  line-height: 1.15 !important;
  letter-spacing: 0 !important;
}

.c_red,
.c_pink,
.header_desc .c_red,
.text-right .c_red {
  color: var(--rm-muted) !important;
}

.section-banner { display: none !important; }

.section-menu {
  margin-top: 14px !important;
  padding: 16px !important;
  border: 1px solid var(--rm-line);
  border-radius: 12px;
  background: rgba(12, 17, 25, .9) !important;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .24);
}

.search-box { margin: 0 0 14px !important; }

.search-box form > div {
  display: flex;
  gap: 8px;
  align-items: center;
}

.search-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 42px !important;
  padding: 0 14px !important;
  border: 1px solid rgba(226, 232, 240, .18) !important;
  border-radius: 8px !important;
  color: #101317 !important;
  background: #eef3f8 !important;
  outline: none;
}

.search-input::placeholder { color: #5f6b7a; }

.search-button {
  width: 86px !important;
  height: 42px !important;
  border: 0 !important;
  border-radius: 8px !important;
  color: #07100d !important;
  font-weight: 700;
  background: linear-gradient(135deg, var(--rm-accent), #b7f7d8) !important;
  cursor: pointer;
}

.row-item {
  display: grid !important;
  grid-template-columns: 96px 1fr;
  gap: 10px;
  width: 100% !important;
  margin: 10px 0 !important;
  padding: 0 !important;
  border: 1px solid rgba(226, 232, 240, .1);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, .035);
}

.row-item-title,
.bg_red {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  background: rgba(52, 211, 153, .14) !important;
}

.row-item-title a,
.c_white {
  color: var(--rm-accent) !important;
  font-weight: 800;
}

.row-item-content {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  min-height: 44px;
  padding: 8px 10px !important;
}

.row-item-content .item,
.navnav a,
.toplinks a,
.search-cloud1 a {
  display: inline-flex !important;
  align-items: center;
  min-height: 30px;
  padding: 4px 9px !important;
  border-radius: 7px;
  color: var(--rm-text) !important;
  background: rgba(255, 255, 255, .045);
}

.row-item-content .item:hover,
.navnav a:hover,
.toplinks a:hover,
.search-cloud1 a:hover {
  background: rgba(52, 211, 153, .14);
}

.photo-two {
  width: calc(20% - 10px) !important;
  margin: 8px 5px !important;
  padding: 8px;
  border: 1px solid var(--rm-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
}

.photo-two img {
  width: 100%;
  border-radius: 8px;
}

.navnav,
.toplinks,
.search-cloud1 {
  margin-top: 12px !important;
  padding: 12px !important;
  border: 1px solid rgba(226, 232, 240, .08);
  border-radius: 10px;
  background: rgba(255, 255, 255, .03);
}

.rm-home,
.main-container {
  padding: 18px 0 28px !important;
}

.rm-hero-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
  padding: 24px;
  border: 1px solid var(--rm-line);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(52, 211, 153, .14), transparent 42%),
    linear-gradient(180deg, rgba(21, 29, 42, .96), rgba(12, 17, 25, .96));
  box-shadow: 0 20px 55px rgba(0, 0, 0, .28);
}

.rm-hero-kicker,
.rm-hero-desc {
  margin: 0;
  color: var(--rm-muted);
}

.rm-hero-panel h1 {
  margin: 8px 0;
  color: var(--rm-text);
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.1;
  letter-spacing: 0;
}

.rm-hero-action,
.rm-section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  color: #07100d !important;
  font-weight: 800;
  background: linear-gradient(135deg, var(--rm-accent), #b7f7d8);
}

.video-box,
.hy-layout,
.film_info,
.play-body,
.next-page,
.cat_pos,
.text-list-html {
  border: 1px solid var(--rm-line) !important;
  border-radius: 12px !important;
  background: rgba(17, 23, 34, .86) !important;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .22);
}

.video-box,
.hy-layout,
.play-body,
.film_info {
  margin-bottom: 18px !important;
  padding: 16px !important;
}

.box-title,
.hy-switch-tabs,
.nav-row .cat_pos {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  margin-bottom: 14px !important;
  padding: 0 2px 12px !important;
  border-bottom: 1px solid rgba(226, 232, 240, .1);
}

.box-title h3,
.hy-switch-tabs a,
.cat_pos_l,
.cat_pos_l a {
  color: var(--rm-text) !important;
}

.box-title h3,
.hy-switch-tabs a {
  font-size: 20px !important;
  font-weight: 800 !important;
}

.box-title h3:before,
.hy-switch-tabs a:before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 18px;
  margin-right: 9px;
  border-radius: 4px;
  vertical-align: -3px;
  background: linear-gradient(180deg, var(--rm-accent), var(--rm-accent-2));
}

.share_box,
.share_img {
  color: var(--rm-muted) !important;
}

.content-list {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin: 0 !important;
  padding: 0 !important;
}

.content-item {
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, .1);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .025));
  box-shadow: 0 12px 30px rgba(0, 0, 0, .22);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.content-item:hover {
  border-color: rgba(52, 211, 153, .36);
  background: linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .035));
  box-shadow: 0 18px 42px rgba(0, 0, 0, .3);
}

.video-pic {
  position: relative;
  display: block !important;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #070a0f;
}

.content-img,
.video-pic img.content-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
}

.video-pic .player {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .52);
  backdrop-filter: blur(6px);
}

.video-pic .player img {
  width: 100%;
  height: 100%;
}

.note {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 3px 7px;
  border-radius: 6px;
  color: #07100d !important;
  background: rgba(52, 211, 153, .92) !important;
}

.content-item .title {
  min-height: 50px;
  padding: 10px 10px 12px !important;
}

.content-item .title h5,
.content-item .title a {
  margin: 0;
  color: var(--rm-text) !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
}

.pagination {
  margin-top: 18px !important;
  text-align: center;
}

.pagination a,
.pagination span,
.pagination li {
  border-radius: 8px !important;
}

.film_info {
  display: grid !important;
  grid-template-columns: 220px 1fr;
  gap: 18px;
}

.film_info img {
  width: 100%;
  max-width: 220px;
  height: auto !important;
  border-radius: 12px;
}

.film_info h2 {
  margin: 0 0 12px !important;
  color: var(--rm-text) !important;
  font-size: 28px;
}

.film_info p,
.next-page,
.next-page a,
.playlist td {
  color: var(--rm-muted) !important;
}

.btn,
.btn-default,
.playlist a {
  border: 0 !important;
  border-radius: 8px !important;
  color: #07100d !important;
  background: linear-gradient(135deg, var(--rm-accent), #b7f7d8) !important;
}

.play-body .text-list-html {
  overflow: hidden;
  padding: 10px !important;
  background: #05070b !important;
}

.footer-container {
  margin-bottom: 22px !important;
  padding: 18px 20px !important;
  border: 1px solid var(--rm-line);
  border-radius: 12px;
  color: var(--rm-muted) !important;
  background: rgba(12, 17, 25, .92) !important;
}

.footer-container .row,
.footer-container a {
  color: var(--rm-muted) !important;
}

@media (max-width: 1100px) {
  .content-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

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

  .film_info {
    grid-template-columns: 160px 1fr;
  }

  .rm-hero-panel {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .container {
    width: calc(100% - 16px) !important;
  }

  .content-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .row-item {
    grid-template-columns: 1fr;
  }

  .row-item-title {
    justify-content: flex-start;
    padding-left: 12px;
  }

  .photo-two {
    width: calc(50% - 10px) !important;
  }

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

  .search-box form > div {
    align-items: stretch;
  }
}
