/* Final homepage overrides loaded after xy.css and custom theme variables. */
.xy-studio-heading .xy-hero-logo {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: min(440px, 72vw) !important;
  height: 150px !important;
  min-height: 0 !important;
  margin: 18px auto 0 !important;
  overflow: hidden !important;
}

.xy-studio-heading .xy-hero-logo img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
}

.xy-studio-heading .xy-hero-logo strong {
  color: #18382b !important;
  font-size: 42px !important;
  font-weight: 950 !important;
  line-height: 1.1 !important;
}

@media screen and (max-width: 768px) {
  body.xy-home-page .headerKox {
    height: 0 !important;
  }

  body.xy-home-page .headerBox {
    height: 44px !important;
    padding: 0 !important;
    background: transparent !important;
  }

  body.xy-home-page .headerBox .bg {
    display: none !important;
  }

  body.xy-home-page .headerBox .box {
    width: 100% !important;
    height: 44px !important;
    padding: 0 12px !important;
  }

  body.xy-home-page .headerBox .box .logoBox,
  body.xy-home-page .headerBox .box .search,
  body.xy-home-page .headerBox .box .navs .item,
  body.xy-home-page .headerBox .box .navs .btns {
    display: none !important;
  }

  body.xy-home-page .headerBox .box .navs {
    margin-left: auto !important;
  }

  body.xy-home-page .headerBox .box .navs .iconfont.icon-caidan {
    display: block !important;
    color: #7ba395 !important;
    font-size: 22px !important;
  }

  body.xy-home-page .homeBox {
    padding-top: 6px !important;
  }

  body.xy-home-page .homeBox::before {
    display: none !important;
  }

  body.xy-home-page .xy-studio-main {
    padding-top: 18px !important;
  }

  .xy-studio-heading .xy-hero-logo {
    width: min(280px, 74vw) !important;
    height: 92px !important;
    margin-top: 12px !important;
  }

  .xy-studio-heading .xy-hero-logo strong {
    font-size: 26px !important;
  }

  .xy-studio-stats {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-auto-flow: column !important;
    gap: 6px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .xy-studio-stats > div {
    min-width: 0 !important;
    min-height: 68px !important;
    padding: 8px 4px !important;
    box-sizing: border-box !important;
    text-align: center !important;
    overflow: hidden !important;
  }

  .xy-studio-stats span {
    font-size: 10px !important;
    white-space: nowrap !important;
  }

  .xy-studio-stats strong {
    margin-top: 5px !important;
    font-size: 16px !important;
    white-space: nowrap !important;
  }

  .xy-studio-stats em {
    display: none !important;
  }
}

@media screen and (max-width: 360px) {
  .xy-studio-heading .xy-hero-logo {
    width: min(240px, 74vw) !important;
    height: 80px !important;
  }

  .xy-studio-stats strong {
    font-size: 14px !important;
  }

  .xy-studio-stats span {
    font-size: 9px !important;
  }
}

.xy-hot-tabs-block {
  overflow: hidden !important;
}

.xy-hot-tabs-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 0 14px;
  border-bottom: 1px solid #dfeae4;
}

.xy-hot-tabs-title {
  flex: 0 0 auto;
  color: #17382b;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
}

.xy-hot-tabs {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.xy-hot-tabs::-webkit-scrollbar {
  display: none;
}

.xy-hot-tabs button {
  flex: 0 0 auto;
  height: 38px;
  padding: 0 16px;
  border: 1px solid #d5eadf;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  color: #49655a;
  cursor: pointer;
  font-size: 14px;
  font-weight: 750;
  line-height: 36px;
  box-shadow: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.xy-hot-tabs button:hover {
  border-color: #aee8c8;
  color: #0a9b5b;
}

.xy-hot-tabs button.active {
  border-color: #9be8c0;
  background: #dff8ec;
  color: #0a9b5b;
  box-shadow: 0 8px 18px rgba(25, 201, 119, 0.12);
}

.xy-hot-tabs-content {
  padding-top: 16px !important;
}

.xy-hot-tabs-block .content .list .item.drama-card {
  overflow: hidden !important;
  border: 1px solid rgba(210, 224, 216, 0.92) !important;
  border-radius: 10px !important;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbf9 100%) !important;
  box-shadow: 0 10px 24px rgba(24, 62, 44, 0.08) !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease !important;
}

.xy-hot-tabs-block .content .list .item.drama-card:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(134, 221, 174, 0.9) !important;
  box-shadow: 0 18px 34px rgba(24, 62, 44, 0.14) !important;
}

.xy-hot-tabs-block .content .list .item.drama-card .img {
  overflow: hidden !important;
  background: linear-gradient(135deg, #eaf7f0 0%, #f7faf8 100%) !important;
}

.xy-hot-tabs-block .content .list .item.drama-card .img img {
  transition: transform 0.24s ease !important;
}

.xy-hot-tabs-block .content .list .item.drama-card:hover .img img {
  transform: scale(1.035) !important;
}

.xy-hot-tabs-block .content .list .item.drama-card .card-info {
  padding: 10px 11px 9px !important;
}

.xy-hot-tabs-block .content .list .item.drama-card .card-info .title {
  color: #16372a !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
}

.xy-hot-tabs-block .content .list .item.drama-card .card-info .desc {
  display: -webkit-box !important;
  margin: 4px 0 0 !important;
  color: #6b7d74 !important;
  line-height: 1.45 !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden !important;
}

@media screen and (max-width: 768px) {
  .xy-hot-tabs-head {
    display: block;
    padding-bottom: 12px;
  }

  .xy-hot-tabs-title {
    margin-bottom: 10px;
    font-size: 17px;
  }

  .xy-hot-tabs {
    justify-content: flex-start;
    margin: 0 -2px;
    padding: 0 2px 2px;
    gap: 8px;
  }

  .xy-hot-tabs button {
    height: 34px;
    padding: 0 13px;
    font-size: 13px;
    line-height: 32px;
  }

  .xy-hot-tabs-content {
    padding-top: 12px !important;
  }

  .xy-hot-tabs-block .content .list {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 7px !important;
    padding-top: 8px !important;
  }

  .xy-hot-tabs-block .content .list .item.drama-card {
    min-width: 0 !important;
    padding: 0 !important;
    border-radius: 9px !important;
    box-shadow: 0 7px 16px rgba(24, 62, 44, 0.08) !important;
  }

  .xy-hot-tabs-block .content .list .item.drama-card .img {
    padding-bottom: 128% !important;
    border-radius: 9px 9px 0 0 !important;
  }

  .xy-hot-tabs-block .content .list .item.drama-card .card-info {
    padding: 5px 5px 6px !important;
  }

  .xy-hot-tabs-block .content .list .item.drama-card .card-info .title {
    margin: 0 !important;
    font-size: 11px !important;
    line-height: 1.25 !important;
  }

  .xy-hot-tabs-block .content .list .item.drama-card .card-info .desc {
    display: -webkit-box !important;
    min-height: 12px !important;
    margin: 2px 0 0 !important;
    color: #718178 !important;
    font-size: 9px !important;
    line-height: 1.25 !important;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden !important;
  }

  .xy-hot-tabs-block .content .list .item.drama-card .img .badge {
    top: 4px !important;
    min-width: 17px !important;
    height: 17px !important;
    padding: 0 4px !important;
    border-radius: 5px !important;
    font-size: 8px !important;
    line-height: 17px !important;
  }

  .xy-hot-tabs-block .content .list .item.drama-card .img .badge-rank {
    left: 4px !important;
  }

  .xy-hot-tabs-block .content .list .item.drama-card .img .badge-hot {
    right: 4px !important;
    max-width: 48px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
}

@media screen and (max-width: 360px) {
  .xy-hot-tabs-block .content .list {
    gap: 6px !important;
  }

  .xy-hot-tabs-block .content .list .item.drama-card .card-info .title {
    font-size: 10px !important;
  }

  .xy-hot-tabs-block .content .list .item.drama-card .img .badge-hot {
    max-width: 40px !important;
    font-size: 7px !important;
  }
}

@media screen and (max-width: 768px) {
  body.xy-home-page .home:not(.homeNO) .xy-hot-tabs-block .xy-hot-tabs-content .xy-hot-panel .list {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 7px !important;
    padding-top: 8px !important;
  }

  body.xy-home-page .home:not(.homeNO) .xy-hot-tabs-block .xy-hot-tabs-content .xy-hot-panel .list > .item.drama-card {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
  }
}

@media screen and (max-width: 360px) {
  body.xy-home-page .home:not(.homeNO) .xy-hot-tabs-block .xy-hot-tabs-content .xy-hot-panel .list {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 5px !important;
  }
}

body.xy-list-page .listBox {
  padding-top: 16px !important;
}

body.xy-list-page .source-switch {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100%;
  margin: 0 0 12px !important;
  padding: 12px 14px !important;
  border: 1px solid rgba(211, 225, 218, 0.95) !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: 0 10px 24px rgba(24, 62, 44, 0.07) !important;
}

body.xy-list-page .source-switch h3 {
  flex: 0 0 auto;
  margin: 0 !important;
  padding: 0 !important;
  color: #17382b !important;
  font-size: 16px !important;
  font-weight: 850 !important;
  line-height: 1.2 !important;
}

body.xy-list-page .switch-items {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-width: 0;
  padding: 0 !important;
  overflow-x: auto;
  scrollbar-width: none;
}

body.xy-list-page .switch-items::-webkit-scrollbar {
  display: none;
}

body.xy-list-page .switch-items a {
  flex: 0 0 auto;
  min-width: 70px;
  padding: 8px 14px !important;
  border: 1px solid #cfe7db !important;
  border-radius: 8px !important;
  background: #f7fbf9 !important;
  color: #45665a !important;
  font-size: 14px !important;
  font-weight: 750 !important;
  line-height: 1 !important;
  text-align: center;
}

body.xy-list-page .switch-items a.active,
body.xy-list-page .switch-items a:hover {
  border-color: #97e3bb !important;
  background: #dff8ec !important;
  color: #0a9b5b !important;
}

body.xy-list-page .switch-items a.active::after {
  display: none !important;
}

body.xy-list-page .listBox .box,
body.xy-list-page .listBox .Ebox {
  border-color: rgba(211, 225, 218, 0.95) !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow: 0 14px 34px rgba(24, 62, 44, 0.08) !important;
}

body.xy-list-page .Qloading {
  display: flex;
  min-height: 128px;
  align-items: center;
  justify-content: center;
}

body.xy-list-page .Qbtn {
  padding-top: 0 !important;
  margin-bottom: 12px;
}

body.xy-list-page .Qbtn .btn {
  color: #66786f !important;
}

@media screen and (max-width: 768px) {
  body.xy-list-page .searchList {
    padding: 4px 12px 8px !important;
    background: linear-gradient(180deg, rgba(237, 248, 242, 0.96), rgba(246, 248, 251, 0.96)) !important;
  }

  body.xy-list-page .searchList .search {
    height: 56px !important;
    margin-top: 6px !important;
    border: 1px solid #dbe8e2 !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    box-shadow: 0 10px 24px rgba(24, 62, 44, 0.08) !important;
  }

  body.xy-list-page .searchList .search input {
    height: 56px !important;
    padding-left: 14px !important;
    padding-right: 112px !important;
    color: #17382b !important;
    font-size: 15px !important;
    font-weight: 650 !important;
  }

  body.xy-list-page .searchList .search .btn {
    right: 7px !important;
    width: 96px !important;
    height: 42px !important;
    margin-top: 7px !important;
    border-radius: 9px !important;
    background: #20c878 !important;
    box-shadow: 0 8px 18px rgba(32, 200, 120, 0.24) !important;
  }

  body.xy-list-page .searchList .search .btn::after {
    font-size: 14px !important;
    font-weight: 850 !important;
  }

  body.xy-list-page .listBox {
    width: 100% !important;
    min-height: auto !important;
    padding: 8px 12px 20px !important;
  }

  body.xy-list-page .source-switch {
    gap: 10px !important;
    margin-bottom: 10px !important;
    padding: 11px 12px !important;
    border-radius: 10px !important;
  }

  body.xy-list-page .source-switch h3 {
    font-size: 15px !important;
  }

  body.xy-list-page .switch-items a {
    min-width: 66px;
    padding: 8px 12px !important;
    font-size: 13px !important;
  }

  body.xy-list-page .listBox .box,
  body.xy-list-page .listBox .Ebox {
    padding: 12px !important;
    margin-top: 0 !important;
    border-radius: 10px !important;
  }
}

@media screen and (max-width: 420px) {
  body.xy-list-page .source-switch {
    display: block !important;
  }

  body.xy-list-page .source-switch h3 {
    margin-bottom: 9px !important;
  }
}
