/* rmwbwg floating gray layout */
:root {
  --rm-bg: #0d1014;
  --rm-panel: #15191f;
  --rm-panel-soft: #1b2028;
  --rm-line: rgba(226, 232, 240, .13);
  --rm-text: #eef2f6;
  --rm-muted: #a1aab7;
  --rm-accent: #d8dde5;
  --rm-accent-2: #8e98a7;
}

html,
body {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .035), transparent 220px),
    radial-gradient(circle at 16% 0, rgba(214, 221, 232, .08), transparent 30rem),
    #0d1014 !important;
}

.container {
  width: min(1320px, calc(100% - 24px)) !important;
}

.header-container,
.section-menu,
.video-box,
.hy-layout,
.film_info,
.play-body,
.next-page,
.cat_pos,
.text-list-html,
.footer-container {
  border: 1px solid var(--rm-line) !important;
  border-radius: 8px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .025)),
    rgba(18, 22, 28, .94) !important;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .28) !important;
}

.header-container {
  display: block;
  padding: 16px 18px !important;
}

.header_title {
  color: #f4f6f8 !important;
  font-size: clamp(22px, 2.4vw, 32px) !important;
  font-weight: 800;
}

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

.section-menu {
  padding: 14px !important;
}

.search-box form > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 86px;
  gap: 8px;
}

.search-input {
  height: 40px !important;
  border: 1px solid rgba(238, 242, 246, .18) !important;
  border-radius: 8px !important;
  color: #101317 !important;
  background: #eef2f6 !important;
}

.search-button,
.btn,
.btn-default,
.playlist a,
.rm-section-more {
  border: 1px solid rgba(238, 242, 246, .24) !important;
  border-radius: 8px !important;
  color: #f7f9fb !important;
  background: linear-gradient(135deg, #505965, #2b313a) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .24);
}

.row-item {
  grid-template-columns: 112px minmax(0, 1fr);
  border-radius: 8px;
  background: rgba(255, 255, 255, .025);
}

.row-item-title,
.bg_red {
  background: rgba(255, 255, 255, .055) !important;
}

.row-item-title a,
.c_white {
  color: #f0b85a !important;
}

.row-item-content .item,
.navnav a,
.toplinks a,
.search-cloud1 a {
  border: 1px solid transparent;
  color: var(--rm-text) !important;
  background: transparent;
}

.row-item-content .item:hover,
.navnav a:hover,
.toplinks a:hover,
.search-cloud1 a:hover {
  border-color: rgba(238, 242, 246, .16);
  color: #f0b85a !important;
  background: rgba(255, 255, 255, .055);
}

.photo-two,
.navnav,
.toplinks,
.search-cloud1 {
  border-radius: 8px;
  background: rgba(255, 255, 255, .025);
}

.rm-home {
  padding-top: 16px !important;
}

.video-box,
.hy-layout,
.film_info,
.play-body {
  padding: 14px !important;
}

.box-title,
.hy-switch-tabs,
.nav-row .cat_pos {
  margin-bottom: 12px !important;
  border-bottom-color: rgba(238, 242, 246, .1);
}

.box-title h3,
.hy-switch-tabs a {
  color: #f4f6f8 !important;
  font-size: 19px !important;
  letter-spacing: 0;
}

.box-title h3:before,
.hy-switch-tabs a:before {
  background: linear-gradient(180deg, #d8dde5, #687382);
}

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

.content-item {
  border-radius: 8px;
  border-color: rgba(238, 242, 246, .1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .03)),
    #15191f !important;
  box-shadow: 0 15px 34px rgba(0, 0, 0, .28) !important;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.content-item:hover {
  transform: translateY(-3px);
  border-color: rgba(238, 242, 246, .26);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .04)),
    #171c23 !important;
  box-shadow: 0 24px 54px rgba(0, 0, 0, .36) !important;
}

.video-pic {
  border-radius: 7px 7px 0 0;
  background: #090c11;
}

.video-pic .player {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(0, 0, 0, .48);
}

.note {
  color: #11151a !important;
  background: rgba(216, 221, 229, .92) !important;
}

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

.content-item .title h5,
.content-item .title a {
  color: #eef2f6 !important;
  font-weight: 700;
}

.content-item:hover .title a {
  color: #f0b85a !important;
}

.film_info {
  grid-template-columns: 220px minmax(0, 1fr);
}

.film_info img {
  box-shadow: 0 18px 38px rgba(0, 0, 0, .32);
}

.play-body .text-list-html {
  border-radius: 8px !important;
  background: #07090d !important;
}

.pagination a,
.pagination span,
.pagination li {
  border-color: rgba(238, 242, 246, .14) !important;
  color: var(--rm-text) !important;
  background: rgba(255, 255, 255, .045) !important;
}

.pagination a:hover,
.pagination .active,
.pagination span.current {
  color: #11151a !important;
  background: #d8dde5 !important;
}

.footer-container {
  margin-top: 8px !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 minmax(0, 1fr);
  }
}

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

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

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

  .search-box form > div {
    grid-template-columns: minmax(0, 1fr) 74px;
  }

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

/* Section title bars: gray-black with white text */
.video-box .box-title,
.rm-section .box-title,
.hy-layout .hy-switch-tabs,
.box-title {
  min-height: 50px !important;
  padding: 0 12px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: linear-gradient(90deg, #303743, #1b2028) !important;
  box-shadow: inset 4px 0 0 #d8dde5;
}

.video-box .box-title h2,
.video-box .box-title h3,
.rm-section .box-title h2,
.rm-section .box-title h3,
.hy-layout .hy-switch-tabs a,
.box-title h2,
.box-title h3 {
  color: #ffffff !important;
  font-weight: 800 !important;
}

.video-box .box-title h2:before,
.video-box .box-title h3:before,
.rm-section .box-title h2:before,
.rm-section .box-title h3:before,
.hy-layout .hy-switch-tabs a:before,
.box-title h2:before,
.box-title h3:before {
  background: linear-gradient(180deg, #f8fafc, #9aa6b2) !important;
}

.rm-section-more,
.rm-more,
.box-title .rm-section-more,
.box-title .rm-more {
  color: #fff !important;
  border-color: rgba(255, 255, 255, .18) !important;
  background: linear-gradient(135deg, #4a5361, #2d343f) !important;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .22);
}

/* Video grid: four cards per row with stronger black hover shadow */
.content-list,
.video-box .content-list,
.rm-video-section .content-list {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.content-item,
.video-box .content-item {
  box-shadow: 0 12px 28px rgba(0, 0, 0, .34) !important;
}

.content-item:hover,
.video-box .content-item:hover {
  border-color: rgba(255, 255, 255, .22) !important;
  box-shadow: 0 26px 64px rgba(0, 0, 0, .82), 0 0 0 1px rgba(255, 255, 255, .08) !important;
}

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

@media (max-width: 640px) {
  .content-list,
  .video-box .content-list,
  .rm-video-section .content-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Detail/play page refinements */
.hy-layout .hy-switch-tabs,
.hy-layout .nav-tabs,
.hy-switch-tabs .nav-tabs,
.hy-switch-tabs .nav-tabs li a {
  border-color: rgba(255, 255, 255, .12) !important;
  background: transparent !important;
}

.hy-layout .hy-switch-tabs a,
.hy-switch-tabs .nav-tabs li a {
  display: inline-flex !important;
  align-items: center;
  min-height: 40px;
  padding: 0 12px !important;
  border-radius: 8px !important;
  color: #fff !important;
  background: linear-gradient(135deg, #3d4652, #242a33) !important;
  box-shadow: inset 4px 0 0 #d8dde5;
}

.hy-layout .hy-switch-tabs a:before,
.hy-switch-tabs .nav-tabs li a:before {
  display: none !important;
}

.playlist table tr,
.playlist table tr td {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
}

.playlist table tr td {
  color: transparent !important;
  font-size: 0 !important;
}

.playlist table tr td .rm-play-now,
.playlist table tr td a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  min-height: 42px;
  padding: 0 18px !important;
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 800;
  border-radius: 8px !important;
  border: 1px solid rgba(255, 255, 255, .18) !important;
  background: linear-gradient(135deg, #4a5361, #2d343f) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .28);
}

.film_info {
  grid-template-columns: 280px minmax(0, 1fr) !important;
  gap: 28px !important;
  align-items: start;
  padding: 24px !important;
}

.film_info .pull-left-mobile1,
.film_info .pull-left-mobile2 {
  width: auto !important;
  float: none !important;
}

.film_info img,
.film_info .pull-left-mobile1 img {
  width: 260px !important;
  max-width: 100% !important;
  height: auto !important;
  border-radius: 10px;
}

.film_info h2 {
  font-size: 32px !important;
  line-height: 1.25 !important;
  color: #fff !important;
}

.film_info p {
  font-size: 18px !important;
  line-height: 1.8 !important;
}

@media (max-width: 820px) {
  .film_info {
    grid-template-columns: 220px minmax(0, 1fr) !important;
  }

  .film_info img,
  .film_info .pull-left-mobile1 img {
    width: 220px !important;
  }
}

@media (max-width: 640px) {
  .film_info {
    grid-template-columns: 1fr !important;
  }

  .film_info img,
  .film_info .pull-left-mobile1 img {
    width: 100% !important;
  }
}

/* Play page breadcrumb and tab title polish */
.nav-row {
  margin: 0 0 14px !important;
  padding: 0 !important;
  background: transparent !important;
}

.nav-row .cat_pos,
.cat_pos {
  display: flex !important;
  align-items: center !important;
  min-height: 46px;
  margin: 0 !important;
  padding: 0 14px !important;
  border: 1px solid rgba(255, 255, 255, .12) !important;
  border-radius: 8px !important;
  color: #e8edf3 !important;
  background: linear-gradient(90deg, #303743, #1b2028) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .28) !important;
}

.cat_pos_l,
.cat_pos_l a,
.nav-row span,
.nav-row a,
.nav-row a:visited {
  color: #f7f9fb !important;
  font-size: 15px !important;
  font-weight: 700;
  line-height: 1.5 !important;
}

.cat_pos_l a:hover,
.nav-row a:hover {
  color: #d8dde5 !important;
}

.hy-layout .hy-switch-tabs {
  display: flex !important;
  align-items: center !important;
  min-height: 50px !important;
  margin: 0 0 14px !important;
  padding: 0 14px !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, .10) !important;
  border-radius: 0 !important;
  background: linear-gradient(90deg, #303743, #1b2028) !important;
  box-shadow: inset 4px 0 0 #d8dde5 !important;
}

.hy-switch-tabs .nav-tabs {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.hy-switch-tabs .nav-tabs li {
  display: flex !important;
  align-items: center !important;
  float: none !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
}

.hy-layout .hy-switch-tabs a,
.hy-switch-tabs .nav-tabs li a,
.hy-switch-tabs .nav-tabs > li > a,
.hy-switch-tabs .nav > li > a {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: #fff !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
  background: transparent !important;
  box-shadow: none !important;
}

.hy-layout .hy-switch-tabs a:before,
.hy-switch-tabs .nav-tabs li a:before {
  display: none !important;
  content: none !important;
}

.hy-switch-tabs .icon {
  flex: 0 0 auto;
  font-size: 16px !important;
  color: #d8dde5 !important;
}

.hy-switch-tabs .clear {
  display: none !important;
}

/* Unified video cards: four per row, title only */
.content-list,
.video-box .content-list,
.hy-layout .content-list,
.rm-video-section .content-list {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 16px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

.content-list .content-item,
.video-box .content-list .content-item,
.hy-layout .content-list .content-item,
.rm-video-section .content-list .content-item {
  float: none !important;
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 8px !important;
  border-top: 0 !important;
}

.content-item .note,
.content-item .text-bg-r,
.content-item .text-bg-l,
.content-item .remarks,
.content-item .score,
.content-item .actor,
.content-item p,
.content-item i,
.content-item em {
  display: none !important;
}

.content-item .title {
  display: block !important;
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  padding: 9px 10px 0 !important;
  overflow: hidden !important;
}

.content-item .title h5,
.content-item .title a,
.video-box .content-list .content-item .title a,
.text-overflow-2 {
  display: -webkit-box !important;
  height: 40px !important;
  max-height: 40px !important;
  overflow: hidden !important;
  color: #f7f9fb !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 20px !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.content-item:hover .title a {
  color: #d8dde5 !important;
}

@media (max-width: 900px) {
  .content-list,
  .video-box .content-list,
  .hy-layout .content-list,
  .rm-video-section .content-list {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  .content-list,
  .video-box .content-list,
  .hy-layout .content-list,
  .rm-video-section .content-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Category grid like the reference image, with single-line labels */
.section-menu > .row {
  display: grid !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 12px !important;
  border: 1px solid rgba(255, 255, 255, .10) !important;
  border-radius: 8px !important;
  background: rgba(10, 13, 18, .62) !important;
  box-shadow: 0 16px 42px rgba(0, 0, 0, .30) !important;
}

.section-menu .row-item {
  display: grid !important;
  grid-template-columns: 108px minmax(0, 1fr) !important;
  gap: 8px !important;
  align-items: stretch !important;
  width: 100% !important;
  min-height: 40px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.section-menu .row-item-title {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 40px !important;
  margin: 0 !important;
  padding: 0 10px !important;
  border: 1px solid rgba(255, 255, 255, .14) !important;
  border-radius: 8px 0 0 8px !important;
  color: #fff !important;
  background: linear-gradient(135deg, #4f5967, #2c333e) !important;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .22) !important;
  overflow: hidden !important;
}

.section-menu .row-item-title a,
.section-menu .row-item-title .c_white {
  display: block !important;
  width: 100% !important;
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  line-height: 40px !important;
  text-align: center !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.section-menu .row-item-content {
  display: grid !important;
  grid-template-columns: repeat(8, minmax(92px, 1fr)) !important;
  gap: 8px !important;
  align-items: stretch !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.section-menu .row-item-content .item {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 40px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid rgba(216, 221, 229, .34) !important;
  border-radius: 8px !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025)) !important;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .18) !important;
  overflow: hidden !important;
}

.section-menu .row-item-content .item:hover {
  border-color: rgba(255, 255, 255, .36) !important;
  background: rgba(255, 255, 255, .10) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .30) !important;
}

.section-menu .row-item-content .item a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  padding: 0 10px !important;
  color: #f7f9fb !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  text-align: center !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.section-menu .row-item-content .item:hover a {
  color: #fff !important;
}

@media (max-width: 1180px) {
  .section-menu .row-item-content {
    grid-template-columns: repeat(6, minmax(86px, 1fr)) !important;
  }
}

@media (max-width: 820px) {
  .section-menu .row-item {
    grid-template-columns: 96px minmax(0, 1fr) !important;
  }

  .section-menu .row-item-content {
    grid-template-columns: repeat(4, minmax(76px, 1fr)) !important;
  }

  .section-menu .row-item-title a,
  .section-menu .row-item-title .c_white,
  .section-menu .row-item-content .item a {
    font-size: 14px !important;
  }
}

@media (max-width: 520px) {
  .section-menu > .row {
    padding: 8px !important;
  }

  .section-menu .row-item {
    grid-template-columns: 82px minmax(0, 1fr) !important;
  }

  .section-menu .row-item-content {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Final play/detail tabs: remove the old red nav li background */
.hy-layout .hy-switch-tabs,
.hy-layout .hy-switch-tabs .nav,
.hy-layout .hy-switch-tabs .nav-tabs,
.hy-layout .hy-switch-tabs .nav-tabs > li,
.hy-layout .hy-switch-tabs .nav-tabs li {
  background: transparent !important;
  background-color: transparent !important;
}

.hy-layout .hy-switch-tabs {
  display: flex !important;
  align-items: center !important;
  min-height: 50px !important;
  padding: 0 14px !important;
  border: 1px solid rgba(255, 255, 255, .12) !important;
  border-radius: 8px !important;
  background: linear-gradient(90deg, #303743, #1b2028) !important;
  box-shadow: inset 4px 0 0 #d8dde5, 0 12px 28px rgba(0, 0, 0, .24) !important;
}

.hy-layout .hy-switch-tabs .nav-tabs > li,
.hy-layout .hy-switch-tabs .nav-tabs li {
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}

.hy-layout .hy-switch-tabs .nav-tabs > li > a,
.hy-layout .hy-switch-tabs .nav-tabs li a,
.hy-layout .hy-switch-tabs a {
  display: inline-flex !important;
  align-items: center !important;
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: #ffffff !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-shadow: none !important;
  white-space: nowrap !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

.hy-layout .hy-switch-tabs .icon,
.hy-layout .hy-switch-tabs .icon-play,
.hy-layout .hy-switch-tabs .iconfont {
  display: none !important;
}

/* Video card hover cleanup: remove the black play overlay and image dimming */
.content-item .video-pic .player,
.video-box .content-list .content-item .video-pic .player,
.content-item .video-pic .player img,
.video-box .content-list .content-item .video-pic .player img {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}

.content-item .video-pic:hover .player,
.video-box .content-list .content-item .video-pic:hover .player {
  display: none !important;
  opacity: 0 !important;
}

.content-item .video-pic img,
.content-item .video-pic:hover img,
.content-item a:hover img,
.video-box .content-list .content-item .video-pic img,
.video-box .content-list .content-item .video-pic:hover img,
.video-box .content-list .content-item a:hover img {
  opacity: 1 !important;
  filter: none !important;
}

/* Friend-link banners: top and between category rows */
.rm-top-banner,
.rm-category-banner {
  display: block !important;
  width: 100% !important;
  margin: 8px 0 !important;
  padding: 0 !important;
  border: 1px solid rgba(255, 255, 255, .12) !important;
  border-radius: 8px !important;
  background: #11161d !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .26) !important;
  overflow: hidden !important;
}

.rm-top-banner img,
.rm-category-banner img {
  display: block !important;
  width: 100% !important;
  height: 70px !important;
  object-fit: cover !important;
  opacity: 1 !important;
  filter: none !important;
}

.rm-category-banner {
  grid-column: 1 / -1 !important;
  margin: 2px 0 4px !important;
}

@media (max-width: 640px) {
  .rm-top-banner img,
  .rm-category-banner img {
    height: auto !important;
    min-height: 44px;
    object-fit: contain !important;
  }
}

/* Floating picture links: left 10-20, right 30-40, bottom 50-60 */
.rm-float-icons {
  position: fixed;
  top: 50%;
  z-index: 98;
  display: grid;
  gap: 10px;
  width: 82px;
  max-height: 72vh;
  padding: 6px;
  overflow: hidden auto;
  transform: translateY(-50%);
  pointer-events: none;
}

.rm-float-icons-left {
  left: 10px;
}

.rm-float-icons-right {
  right: 10px;
}

.rm-float-icons-bottom {
  position: fixed;
  left: 50%;
  bottom: 12px;
  z-index: 98;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: min(760px, calc(100% - 24px));
  max-height: 92px;
  overflow: hidden;
  transform: translateX(-50%);
  pointer-events: none;
}

.rm-float-icon {
  display: grid !important;
  justify-items: center;
  gap: 4px;
  width: 70px;
  min-width: 70px;
  padding: 5px 4px 6px;
  border: 1px solid rgba(255, 255, 255, .15) !important;
  border-radius: 8px !important;
  color: #f7f9fb !important;
  text-decoration: none !important;
  background: rgba(17, 22, 29, .92) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .34) !important;
  pointer-events: auto;
}

.rm-float-icon:hover {
  border-color: rgba(255, 255, 255, .30) !important;
  background: rgba(34, 41, 52, .96) !important;
  box-shadow: 0 18px 38px rgba(0, 0, 0, .48) !important;
}

.rm-float-icon img {
  display: block !important;
  width: 58px !important;
  height: 58px !important;
  border-radius: 7px !important;
  object-fit: cover !important;
  opacity: 1 !important;
  filter: none !important;
}

.rm-float-icon span {
  display: none !important;
  width: 100%;
  color: #f7f9fb !important;
  font-size: 12px;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rm-float-icon-bottom {
  width: 74px;
  min-width: 74px;
}

@media (max-width: 1100px) {
  .rm-float-icons {
    width: 68px;
    padding: 4px;
  }

  .rm-float-icon {
    width: 58px;
    min-width: 58px;
    padding: 4px 3px;
  }

  .rm-float-icon img {
    width: 48px !important;
    height: 48px !important;
  }

  .rm-float-icon span {
    font-size: 11px;
    line-height: 14px;
  }
}

@media (max-width: 760px) {
  .rm-float-icons {
    top: auto;
    bottom: 84px;
    width: 56px;
    max-height: 52vh;
    gap: 6px;
    transform: none;
  }

  .rm-float-icons-left {
    left: 4px;
  }

  .rm-float-icons-right {
    right: 4px;
  }

  .rm-float-icons-bottom {
    bottom: 8px;
    gap: 6px;
    max-height: 64px;
  }

  .rm-float-icon,
  .rm-float-icon-bottom {
    width: 50px;
    min-width: 50px;
    border-radius: 7px !important;
  }

  .rm-float-icon img {
    width: 42px !important;
    height: 42px !important;
  }

  .rm-float-icon span {
    display: none;
  }
}

/* Navigation icon links: picture link sort 600-700 */
.rm-nav-icons {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 18px;
  width: 100%;
  margin: 14px 0 2px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background: rgba(17, 22, 29, .72);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .24);
}

.rm-nav-icon {
  display: grid !important;
  justify-items: center;
  gap: 6px;
  width: 74px;
  color: #f7f9fb !important;
  text-decoration: none !important;
}

.rm-nav-icon img {
  display: block !important;
  width: 62px !important;
  height: 62px !important;
  border-radius: 8px !important;
  object-fit: cover !important;
  opacity: 1 !important;
  filter: none !important;
}

.rm-nav-icon span {
  display: block;
  width: 100%;
  color: #f7f9fb !important;
  font-size: 12px;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rm-float-icons {
  gap: 16px;
  width: 102px;
  padding: 8px;
}

.rm-float-icons-bottom {
  gap: 18px;
  width: min(1180px, calc(100% - 36px));
  max-height: 104px;
}

.rm-float-icon {
  width: 86px;
  min-width: 86px;
  padding: 7px 6px;
}

.rm-float-icon img {
  width: 72px !important;
  height: 72px !important;
}

.rm-float-icon-bottom {
  width: 82px;
  min-width: 82px;
}

@media (max-width: 1100px) {
  .rm-float-icons {
    gap: 12px;
    width: 82px;
  }

  .rm-float-icon {
    width: 70px;
    min-width: 70px;
  }

  .rm-float-icon img {
    width: 58px !important;
    height: 58px !important;
  }
}

@media (max-width: 760px) {
  .rm-nav-icons {
    gap: 10px;
    padding: 10px;
  }

  .rm-nav-icon {
    width: 58px;
  }

  .rm-nav-icon img {
    width: 48px !important;
    height: 48px !important;
  }

  .rm-nav-icon span {
    font-size: 11px;
    line-height: 14px;
  }

  .rm-float-icons {
    gap: 8px;
    width: 62px;
  }

  .rm-float-icons-bottom {
    gap: 10px;
    width: calc(100% - 18px);
  }

  .rm-float-icon,
  .rm-float-icon-bottom {
    width: 54px;
    min-width: 54px;
  }

  .rm-float-icon img {
    width: 46px !important;
    height: 46px !important;
  }
}

/* Final mobile category and floating icon spacing tune */
.rm-nav-icons {
  justify-content: flex-start !important;
  align-items: flex-start !important;
}

.rm-float-icons {
  gap: 22px !important;
}

.rm-float-icons-bottom {
  gap: 34px !important;
  width: min(1280px, calc(100% - 48px)) !important;
  max-height: 112px !important;
}

.rm-float-icon,
.rm-float-icon-bottom {
  border: 0 !important;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .40) !important;
}

.rm-float-icon:hover {
  border: 0 !important;
}

@media (max-width: 640px) {
  .section-menu > .row {
    gap: 8px !important;
    padding: 8px !important;
  }

  .section-menu .row-item {
    grid-template-columns: 84px minmax(0, 1fr) !important;
    gap: 6px !important;
    align-items: start !important;
  }

  .section-menu .row-item-title {
    min-height: 36px !important;
    padding: 0 6px !important;
  }

  .section-menu .row-item-title a,
  .section-menu .row-item-title .c_white {
    font-size: 13px !important;
    line-height: 36px !important;
  }

  .section-menu .row-item-content {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)) !important;
    gap: 6px !important;
  }

  .section-menu .row-item-content .item {
    height: 36px !important;
  }

  .section-menu .row-item-content .item a {
    padding: 0 6px !important;
    font-size: 13px !important;
    line-height: 36px !important;
  }

  .rm-nav-icons {
    justify-content: flex-start !important;
    gap: 10px 12px !important;
  }

  .rm-float-icons {
    gap: 12px !important;
  }

  .rm-float-icons-bottom {
    gap: 18px !important;
    width: calc(100% - 24px) !important;
    max-height: 76px !important;
  }
}

@media (max-width: 390px) {
  .section-menu .row-item {
    grid-template-columns: 76px minmax(0, 1fr) !important;
  }

  .section-menu .row-item-title a,
  .section-menu .row-item-title .c_white,
  .section-menu .row-item-content .item a {
    font-size: 12px !important;
  }
}

/* PC category alignment: move left a little and keep the last column visible */
@media (min-width: 821px) {
  .section-menu {
    overflow: visible !important;
  }

  .section-menu > .row {
    width: calc(100% + 16px) !important;
    max-width: none !important;
    margin-left: -16px !important;
    padding: 10px 8px !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }

  .section-menu .row-item {
    grid-template-columns: 102px minmax(0, 1fr) !important;
    gap: 8px !important;
    overflow: visible !important;
  }

  .section-menu .row-item-content {
    grid-template-columns: repeat(8, minmax(76px, 1fr)) !important;
    gap: 8px !important;
    overflow: visible !important;
  }

  .section-menu .row-item-content .item a {
    padding: 0 6px !important;
    font-size: 14px !important;
  }
}

/* Final mobile category fit and 600-700 icon sizing */
@media (max-width: 640px) {
  .section-menu,
  .section-menu > .row,
  .section-menu .row-item,
  .section-menu .row-item-content {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .section-menu {
    padding: 8px !important;
  }

  .section-menu > .row {
    width: 100% !important;
    margin-left: 0 !important;
    padding: 6px !important;
    gap: 7px !important;
  }

  .section-menu .row-item {
    grid-template-columns: 70px minmax(0, 1fr) !important;
    gap: 5px !important;
  }

  .section-menu .row-item-title {
    min-height: 32px !important;
    padding: 0 4px !important;
    border-radius: 6px 0 0 6px !important;
  }

  .section-menu .row-item-title a,
  .section-menu .row-item-title .c_white {
    font-size: 12px !important;
    line-height: 32px !important;
  }

  .section-menu .row-item-content {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 5px !important;
  }

  .section-menu .row-item-content .item {
    height: 32px !important;
    border-radius: 6px !important;
  }

  .section-menu .row-item-content .item a {
    padding: 0 4px !important;
    font-size: 12px !important;
    line-height: 32px !important;
  }

  .rm-nav-icons {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    justify-content: stretch !important;
    gap: 12px !important;
    padding: 10px !important;
  }

  .rm-nav-icon {
    width: auto !important;
    min-width: 0 !important;
  }

  .rm-nav-icon img {
    width: 100% !important;
    max-width: 76px !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    margin: 0 auto !important;
  }
}

@media (max-width: 390px) {
  .section-menu .row-item {
    grid-template-columns: 64px minmax(0, 1fr) !important;
  }

  .section-menu .row-item-title a,
  .section-menu .row-item-title .c_white,
  .section-menu .row-item-content .item a {
    font-size: 11px !important;
  }

  .rm-nav-icons {
    gap: 10px !important;
  }
}
