* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  background: #000;
  letter-spacing: 0;
}

body {
  color: #757575;
}

a {
  text-decoration: none;
}

.aaaaji-shell {
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.stui-header {
  min-height: 65px;
  margin: 30px 0 20px;
}

.stui-header__logo {
  width: 227px;
  margin: 0 auto;
}

.stui-header__logo .logo {
  margin: 0 auto;
}

.source-strip {
  width: 100%;
  margin-bottom: 15px;
  overflow: hidden;
  border-bottom: 1px solid #3e3e3e;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  min-height: 214px;
  padding: 0;
  background: #357b68;
}

.category-grid a {
  display: flex;
  float: none;
  width: auto;
  min-width: 0;
  height: 53.5px;
  padding: 0 6px;
  margin: 0;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2px solid #357b68;
  background: #424242;
  color: #fff;
  font-size: 16px;
  line-height: 1.3;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-grid a:hover,
.category-grid a:focus-visible {
  background: #2d047e;
}

.hot-grid,
.bottom-hot-grid {
  display: grid;
  grid-template-columns: repeat(16, minmax(0, 1fr));
  gap: 2px;
  padding: 3px;
}

.hot-grid a,
.bottom-hot-grid a {
  display: flex;
  min-width: 0;
  min-height: 30px;
  padding: 5px 3px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 10px;
  background: #357b68;
  color: #fff;
  font-size: 14px;
  line-height: 1.25;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hot-grid a:nth-last-child(-n+19),
.bottom-hot-grid a:nth-child(n+100) {
  color: #ffef0e;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 2px;
  width: 100%;
  padding: 0;
  overflow: hidden;
}

.portal-grid a {
  display: flex;
  float: none;
  width: auto;
  min-width: 0;
  height: 30px;
  padding: 0 4px;
  margin: 0;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 3px;
  background: rgba(0, 69, 76, .5);
  color: #fff;
  font-size: 16px;
  line-height: 1.25;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-grid a:hover,
.portal-grid a:focus-visible {
  background: #2d047e;
}

.portal-grid > a:nth-child(n+32) {
  display: none;
}

.search-wrap {
  padding: 0 15px;
  margin: 20px 0 29px;
}

.site-search {
  position: relative;
  width: 100%;
  height: 35px;
  margin: 0;
}

.site-search input {
  width: 100%;
  height: 35px;
  padding: 0 55px 0 12px;
  border: 0;
  outline: 0;
  background: #fff;
  color: #333;
  text-align: center;
}

.site-search input::placeholder {
  color: #aaa;
}

#searchbutton {
  position: absolute;
  top: 0;
  right: 0;
  width: 50px;
  height: 35px;
  padding: 0;
  border: 0;
  background: #ff9600;
  color: #fff;
  cursor: pointer;
  font-size: 21px;
  font-weight: 600;
}

.content-main {
  min-height: 200px;
}

.stui-vodlist {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  padding: 0;
  margin: 0;
  overflow: hidden;
  background: #357b68;
  list-style: none;
}

.stui-vodlist > li.video-item {
  float: none;
  width: 25%;
  min-width: 0;
  padding: 10px;
  overflow: hidden;
  border: 4px solid #fff;
  border-radius: 10px;
}

.stui-vodlist__box {
  min-width: 0;
  overflow: hidden;
}

.stui-vodlist__thumb {
  padding-top: 60%;
  overflow: hidden;
}

.stui-vodlist__thumb img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stui-vodlist__thumb .pic-text {
  z-index: 2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stui-vodlist__detail {
  min-height: 42px;
}

.stui-vodlist__detail .title {
  height: 22px;
  overflow: hidden;
  line-height: 22px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stui-vodlist__detail .title a {
  display: block;
  padding: 0 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stui-page__item {
  display: flex;
  min-height: 64px;
  margin: 0;
  align-items: center;
  justify-content: center;
  background: #000;
}

.stui-page__item ul {
  padding: 0;
  margin: 0;
}

.empty-state {
  padding: 45px 10px;
  margin: 0;
  background: #000;
  color: #aaa;
  text-align: center;
}

.stui-content {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 240px;
  width: 100%;
  padding: 10px;
  background: #000;
}

.stui-content__detail,
.stui-content__thumb,
.stui-content__side {
  display: block;
  min-width: 0;
}

.stui-content__thumb .pic {
  display: block;
  width: 220px;
  aspect-ratio: 5 / 3;
  overflow: hidden;
  background: #111;
}

.stui-content__thumb .pic img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stui-content__detail {
  min-height: 240px;
}

.stui-content__detail .desc {
  display: -webkit-box;
  max-height: 75px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.stui-content__detail .play-btn {
  display: flex;
  padding-left: 42px;
  flex-wrap: wrap;
  gap: 8px;
}

.source-play-line {
  display: contents;
}

.stui-content__side {
  display: flex;
  padding: 25px 15px 15px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.qr-placeholder {
  width: 150px;
  height: 150px;
  padding: 10px;
  background: #fff;
}

.stui-content__side p {
  margin: 8px 0 0;
}

.stui-vodlist__head h2 {
  margin: 0;
  color: #fff;
  font-size: 18px;
}

.related-section {
  margin-top: 18px;
}

.stui-player {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(260px, 1fr);
  width: 100%;
  padding: 10px;
  background: #000;
}

.stui-player__left,
.stui-player__side {
  float: none;
  width: auto;
  min-width: 0;
}

.stui-player__video {
  width: 100%;
  background: #000;
}

.stui-player__video iframe,
.stui-player__video video,
.stui-player__video > div {
  width: 100% !important;
  height: 100% !important;
}

.stui-player__side {
  min-height: 300px;
  overflow: hidden;
  border-left: 1px solid #2b2b2b;
}

.stui-player__side .item.active {
  display: block;
}

.stui-player__side .head h2 {
  margin: 0 0 10px;
  color: #757575;
  font-size: 16px;
}

.play-source + .play-source {
  margin-top: 18px;
}

.bottom-hot-strip {
  padding-top: 18px;
  margin-top: 10px;
}

.source-footer {
  min-height: 108px;
  padding: 0 15px;
  margin: 12px 0 20px;
  color: #757575;
  line-height: 1.4;
  text-align: center;
}

.source-footer p {
  margin: 0 0 10px;
}

.source-footer a {
  color: #757575;
}

@media (max-width: 1400px) {
  .hot-grid,
  .bottom-hot-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
}

@media (max-width: 1000px) {
  .category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    min-height: 0;
  }

  .category-grid a {
    height: 46px;
    font-size: 13px;
  }

  .portal-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .portal-grid a {
    font-size: 13px;
  }

  .stui-player {
    grid-template-columns: 1fr;
  }

  .stui-player__side {
    min-height: 0;
    border-top: 1px solid #2b2b2b;
    border-left: 0;
  }
}

@media (max-width: 767px) {
  .stui-header {
    min-height: 65px;
    margin: 20px 0 10px;
  }

  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .category-grid a {
    height: 40px;
    padding: 0 3px;
  }

  .hot-grid,
  .bottom-hot-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  .hot-grid a,
  .bottom-hot-grid a {
    min-height: 30px;
    padding: 4px 2px;
    font-size: 13px;
  }

  .search-wrap {
    padding: 0 5px;
    margin-bottom: 20px;
  }

  .stui-vodlist > li.video-item {
    width: 50%;
    padding: 5px;
  }

  .stui-vodlist__detail {
    min-height: 32px;
    padding: 5px 8px;
  }

  .stui-vodlist__detail .title {
    height: 22px;
  }

  .stui-content {
    grid-template-columns: 1fr;
    padding: 5px;
  }

  .stui-content__thumb,
  .stui-content__side {
    display: none;
  }

  .stui-content__detail {
    min-height: 0;
    padding: 20px 10px;
  }

  .stui-content__detail .play-btn {
    padding-left: 0;
  }

  .stui-player {
    padding: 5px;
  }

  .stui-player__detail {
    padding: 10px;
  }

  .source-footer {
    min-height: 128px;
    padding: 0 5px;
    font-size: 12px;
  }
}

/* BB player layout repair 20260923: keep clearfix pseudo-elements out of grid. */
.play-page .stui-player:before,.play-page .stui-player:after{content:none!important;display:none!important}
.play-page .stui-player{align-items:start;gap:16px}
.play-page .stui-player__left{grid-column:1;grid-row:1;width:100%;min-width:0}
.play-page .stui-player__side{grid-column:2;grid-row:1;width:100%;min-width:0;min-height:0;padding:0 12px}
.play-page .stui-player__video{position:relative;width:100%;height:auto!important;aspect-ratio:16/9;padding:0!important;overflow:hidden;background:#000}
.play-page .stui-player__video:before,.play-page .stui-player__video:after{content:none!important;display:none!important}
.play-page .stui-player__video .MacPlayer{position:absolute!important;inset:0;width:100%!important;height:100%!important;padding:0!important;margin:0!important}
.play-page .stui-player__video .MacPlayer table,.play-page .stui-player__video .MacPlayer tbody,.play-page .stui-player__video .MacPlayer tr,.play-page .stui-player__video #playleft{width:100%!important;height:100%!important;padding:0!important;border:0!important}
.play-page .stui-player__video #playleft{position:relative}
.play-page .stui-player__video #playleft iframe{position:absolute!important;inset:0;border:0;width:100%!important;height:100%!important}
.play-page .stui-player__detail{padding:18px 0 10px;min-height:0;overflow-wrap:anywhere}
.play-page .stui-player__detail .title{margin:0 0 10px;line-height:1.45}
@media(max-width:767px){.play-page .stui-player{grid-template-columns:minmax(0,1fr);gap:16px}.play-page .stui-player__left{grid-column:1;grid-row:1}.play-page .stui-player__side{grid-column:1;grid-row:2;border-left:0;border-top:1px solid #2b2b2b;padding:12px 0 0}.play-page .stui-player__detail{padding:12px 0}}
