/* 
mobile(ultra narrow): <= 350px
mobile(xs):           351 - 575px
tablet(sm):           576 - 767px
tablet(md):           768 - 991px         navbar size
desktop(lg):          992 -               list 4 cols
desktop(ultra wide):  2000px -            disable site-cache overlay
*/

:root {
  --logo-width: 115px;
  --logo-width_desktop: 128px;
  --nav-background-color: #e8e8e8;
  --menu-color: #384047;
  --title-color: #1a1a1a;
  --subtle-color: rgb(170, 170, 170, 0.5);
  --solid-color: rgb(156, 156, 156);
}

body {
  max-width: 100%;
  overflow-x: hidden;
}

/* #region section */
.section {
  display: flex;
  flex-direction: column;
}

.section__skeleton {
  display: flex;
  flex-direction: row;
}
.section__skeleton:after {
  position: absolute;
  content: "";
  width: 30px;
  height: 100%;
  top: 0;
  right: 0;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0) 1%,
    #fff 79%,
    #fff 100%
  );
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00ffffff', endColorstr='#ffffff',GradientType=1 );
}
@keyframes shine {
  to {
    background-position: 100% 0, 0 0;
  }
}
/* #endregion */

/* #region section header */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0.5rem 1.6rem 0 !important;
}

.section-header .section__title h2 {
  color: var(--title-color);
  font-size: 2rem;
  font-weight: 400;
  margin: 0;
  padding: 10px 0;
}
@media (min-width: 576px) {
  .section-header .section__title h2 {
    font-size: 3rem;
  }
}

.section-header .section__more {
  font-size: 1.4rem;
}

.section-header .section__more:after {
  content: "";
  background: url(/res/images/arrow_r.svg) no-repeat center center;
  height: 12px;
  width: 12px;
  display: inline-block;
  position: relative;
}
/* #endregion */

/* #region carousel */
.owl-nav {
  position: absolute;
  z-index: 99999;
  width: 100%;
  height: 0;
  top: calc(50% - 20px);
}

.owl-carousel .owl-nav button.disabled {
  opacity: 0;
  cursor: auto;
}

.owl-nav .owl-prev,
.owl-nav .owl-next {
  position: absolute;
  transition: opacity 0.25s ease-in-out;
  outline: none;
}
/* #endregion */

/* #region responsive */
.desktop {
  display: none;
}
.tablet {
  display: none;
}
.mobile {
  display: block;
}
@media (min-width: 576px) {
  .mobile {
    display: none;
  }
  .tablet {
    display: block;
  }
}
@media (min-width: 992px) {
  .tablet {
    display: none;
  }
  .desktop {
    display: block;
  }
}
/* #endregion responsive */

/* Start Dark theme for video section */
.dark_theme {
  background-color: #2c282b;
}
/* End Dark theme for video section */

/* #region divider */
hr.divider {
  border-top: 0.5px solid var(--subtle-color);
  margin: 0.5rem 2rem;
}
hr.divider--compact {
  margin: 0;
}
hr.divider--full {
  margin: 0 -1rem;
}
hr.divider--solid {
  border-color: var(--solid-color);
}
/* #endregion */

/* #region header */
.navbar-wrapper {
  background-color: var(--nav-background-color);
  padding: 10px 0;
  margin-bottom: 0;
}

.navbar-wrapper .container {
  padding-left: 0;
  max-width: 100%;
}

.navbar-content {
  display: flex;
  justify-content: space-between;
}

.navbar-content .left,
.navbar-content .right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* toggler/logo */
.navbar-menu {
  width: 50px;
  border-right: solid 1px #c3c3c3;
}

.navbar-toggler {
  padding: 0.95rem 1.25rem;
  font-size: 1.25rem;
  line-height: 1;
  background: 0 0;
  border: 1px solid transparent;
  cursor: pointer;
  border-radius: 0.25rem;
}

.navbar-logo img {
  width: var(--logo-width);
}
@media (min-width: 768px) {
  .navbar-logo img {
    width: var(--logo-width_desktop);
  }
}

/* nav-badge */
@media (max-width: 350px) {
  .nav-badge {
    display: none;
  }
}
.nav-badge--merchant {
  display: none;
}
@media (min-width: 1120px) {
  .nav-badge--merchant {
    display: block;
  }
}

.nav-badge a {
  border-radius: 20px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 400;
  line-height: 24px;
  padding: 5px 10px;
  vertical-align: top;
  white-space: nowrap;
}
.nav-badge--ulapp a {
  background-color: #888794;
}
.nav-badge--merchant a {
  background-color: #4e45a3;
}

.nav-badge--ulapp i {
  background: url(/res/images/UL-appdownload-icon-white.svg) no-repeat center
    top;
  display: inline-block;
  height: 18px;
  margin-top: 2px;
  vertical-align: top;
  width: 18px;
}

.nav-badge--ulapp .app_text {
  display: none;
}
.nav-badge--ulapp .app_text_m {
  display: inline-block;
}
@media (min-width: 425px) {
  .nav-badge--ulapp .app_text {
    display: inline-block;
  }
  .nav-badge--ulapp .app_text_m {
    display: none;
  }
}

/* channel list */
#header .navbar-nav {
  margin: auto;
  display: none;
}
@media (min-width: 992px) {
  #header .navbar-nav {
    display: block;
  }
}

#header .channel-indicator {
  align-self: center;
}

#header .all-channels {
  display: flex;
}

#header .channel {
  width: 75px;
  text-align: center;
  border-left: 1px solid var(--subtle-color);
}

/* missing ezone style in global */
.navbar-nav .ezone a:link,
.navbar-nav .ezone a:active,
.navbar-nav .ezone a:visited {
  color: #f39801 !important;
  font-weight: 400;
  text-decoration: none;
  white-space: nowrap;
}
.navbar-nav .ezone a:hover {
  color: #f39801 !important;
  font-weight: 800;
  text-decoration: none;
}

/* user-info */
.user-info-panel {
  display: block;
  margin: 0;
  cursor: pointer;
}

.user-info-panel img {
  height: 40px;
  width: 40px;
  object-fit: cover;
}

.user-info-panel ~ .popover {
  max-width: 100%;
}

.user-info-panel ~ .popover > .popover-title {
  background-color: #757575;
  color: #ffffff;
  text-align: center;
  font-size: 17px;
  padding: 10px 0;
}
/* #endregion */

/* #region slider */
.with--sidebar {
  overflow: hidden;
}

.with--sidebar #slider {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 100;
  transition: left 0.2s ease-in-out;
}

#slider {
  height: 100%;
  left: -575px;
  position: fixed;
  transition: left 0.2s ease-in-out;
  width: 100%;
}
@media (min-width: 576px) {
  #slider {
    width: 420px;
  }
}

#slider .sections {
  width: 100%;
  background-color: #e8e8e8;
  overflow-x: hidden;
  overflow-y: auto;
  height: 95%;
}

#slider ul {
  margin: 0;
  padding: 10px 14px;
}

#slider li i {
  display: none;
  height: 25px;
  width: 25px;
  background-repeat: no-repeat;
  background-size: 100%;
  margin-right: 10px;
}

/* slider channel */
#slider .channel-section {
  padding: 20px 0;
}

#slider .channel-section .ugo {
  display: block !important;
}
#slider .channel-section .community {
  display: block !important;
}

#slider .channel-section [title~="Ugo"] {
  color: #00b6e1;
}
#slider .channel-section [title~="Community"] {
  color: #00c991;
}
#slider .channel-section [title~="HK"] {
  color: #197cbc;
}
#slider .channel-section [title~="Travel"] {
  color: #65b145;
}
#slider .channel-section [title~="Food"] {
  color: #ec9729;
}
#slider .channel-section [title~="Beauty"] {
  color: #df1b80;
}
#slider .channel-section [title~="Blog"] {
  color: #bfa780;
}
#slider .channel-section [title~="Sky"] {
  color: #fcc800;
}
#slider .channel-section [title~="e-zone"] {
  color: #f39801;
}

#slider .channel-section a {
  padding-left: 14px;
  font-size: 32px;
  font-weight: 600;
  line-height: 56px;
  text-decoration: none;
  height: 56px;
}

/* slider content */
#slider .content-section a {
  font-size: 16px;
  font-weight: 600;
  color: #353b41;
  height: 49px;
  line-height: 49px;
}

/* slider other */
#slider .other-section {
  padding-bottom: 12px;
}

#slider .other-section a {
  font-size: 16px;
  font-weight: 400;
  color: #4e45a3;
  height: 30px;
  line-height: 30px;
}

/* slider promo */
#slider .promo-section {
  background: #fff;
}

#slider .section-header .section__title h2 {
  font-size: 16px;
  font-weight: 400;
  height: 30px;
  line-height: 30px;
}

/* slider footer */
#slider .footer-section {
  background-color: #bababa;
  padding: 20px 14px 40px 14px;
}

#slider .footer-section .row {
  margin: 0;
}

#slider .footer-section span {
  color: #353b41;
  font-size: 12px;
  font-weight: 400;
  display: inline-block;
}

#slider .footer-section .button {
  display: inline-block;
  text-align: left;
  padding: 10px 10px 10px 0;
}

#slider .footer-section a {
  height: auto;
  display: inline-block;
  line-height: inherit;
}

#slider .footer-section .button i {
  font-size: 24px;
  color: #212529;
  background-color: #fff;
  border-radius: 3px;
  display: inline-block;
  width: 40px;
  height: 40px;
  vertical-align: middle;
  border-radius: 50%;
  padding: 8px;
  text-align: center;
}

#slider .footer-section .apps-download a {
  padding: 10px 10px 10px 0;
}

#slider .footer-section .apps-download img {
  width: auto;
  max-height: 30px;
  padding: 0 1px;
}

/* #endregion slider */

/* #region menu-bar section */
#menu-bar {
  background: white;
  padding: 0 1rem;
}

#menu-bar .container {
  max-width: 100%;
}

#menu-bar > div:first-child {
  margin-top: 0;
  padding: 0;
}

#menu-bar .owl-stage-outer {
  margin: 0 1rem;
}

#menu-bar .owl-stage {
  display: flex;
}

#menu-bar .item {
  white-space: nowrap;
  padding: 1rem;
  position: relative;
  cursor: pointer;
}
@media (min-width: 576px) {
  #menu-bar .item {
    margin: 0 1rem;
  }
}
@media (min-width: 992px) {
  #menu-bar .item {
    margin: 0 2rem;
  }
}

#menu-bar .item:after {
  background: #333;
  bottom: 0;
  content: "";
  height: 3px;
  left: 0;
  position: absolute;
  transition: all 0.15s ease-out;
  width: 0;
}

/* disable hover effect on mobile/tablet */
@media (min-width: 992px) {
  #menu-bar .item:hover > a {
    color: var(--title-color);
    font-weight: 600;
    text-decoration: none;
  }
  #menu-bar .item:hover:after {
    width: 100%;
  }
}

#menu-bar .item.active > a {
  color: var(--title-color);
  font-weight: 600;
  text-decoration: none;
}
#menu-bar .item.active:after {
  width: 100%;
}

#menu-bar a {
  font-size: 1.6rem;
  color: var(--menu-color);
  font-weight: 400;
}
@media (min-width: 576px) {
  #menu-bar a {
    font-size: 1.8rem;
  }
}
#menu-bar a:hover {
  text-decoration: none;
}

#menu-bar .owl-prev,
#menu-bar .owl-next {
  height: 42px;
  top: 0;
  width: 21px;
}

#menu-bar .owl-prev {
  left: -5px;
}

#menu-bar .owl-next {
  right: -10px;
}

#menu-bar .owl-prev img,
#menu-bar .owl-next img {
  width: 7px;
  margin-left: 5px;
}

#menu-bar .section__skeleton .item {
  align-items: center;
  height: 44px;
  padding: 10px 5px;
}
#menu-bar .section__skeleton .item .label {
  border-radius: 2px;
  display: flex;
  width: 32px;
  height: 16px;
  margin: 5px 20px;
  background: linear-gradient(
      to right,
      rgba(255, 255, 255, 0),
      rgba(255, 255, 255, 0.5) 50%,
      rgba(255, 255, 255, 0) 80%
    ),
    lightgray;
  background-repeat: repeat-y;
  background-size: 50px 200px;
  background-position: 0 0;
  animation: shine 1s infinite;
}
/* #endregion */

/* #region site container */
.site-container {
  overflow: hidden;
}

.site-pusher {
  position: relative;
  left: 0;
  transition: left 0.2s ease-in-out;
}

.with--sidebar .site-pusher {
  left: 100%;
}
@media (min-width: 576px) {
  .with--sidebar .site-pusher {
    left: 420px;
  }
}
@media (min-width: 2000px) {
  .with--sidebar .site-pusher {
    left: 0;
  }
}

.site-content {
  padding: 0;
}
@media (max-width: 575px) {
  .site-content {
    padding: 0;
  }
}
#menu-bar ~ .site-content {
  margin-top: 45px;
}

.with--sidebar .site-cache {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 90;
}
@media (min-width: 2000px) {
  .with--sidebar .site-cache {
    display: none;
  }
}
/* #endregion */

/* #region promo section */
.hot-tags .section__more {
  display: none;
}

.section.foot .fb-page-wrapper {
  padding: 0 15px;
}

.site-content .tag-list {
  padding: 0 1.5rem;
}
@media (min-width: 992px) {
  .site-content .tag-list {
    padding: 0;
  }
}
/* #endregion */

/* #region ad */
.ad-zone {
  margin: 10px auto;
  text-align: center;
  text-align: -webkit-center;
}

#overview-article .ad-zone {
  padding: 0;
  margin: 0;
}

#overview-ad3-desktop {
  text-align: start;
  display: none;
}
@media (min-width: 992px) {
  #overview-article .list-content .ad-zone {
    display: none;
  }
  #overview-ad3-desktop {
    display: block;
  }
  #overview-ad3-mobile {
    display: none;
  }
}
/* #endregion */
