/* 水果派解说 2026-08-22：动态子分类、紧凑广告区、子页统一与播放器高度修复。 */
#header {
  height: auto;
}

.myHeader-container {
  height: 64px;
}

.site-logo-text {
  display: block;
  color: #fff;
  font-size: 38px;
  font-weight: 800;
  line-height: 64px;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, .35);
}

.search_btn {
  width: 64px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}

.search_bar {
  width: 366px;
}

.path_bar,
.word_wrapper,
.menu_container {
  height: auto;
  min-height: 55px;
}

.path_bar {
  background: #1c1c1c;
}

.word_wrapper {
  padding: 5px 15px;
}

.menu_container {
  align-content: flex-start;
}

.menu_items,
.type {
  height: 45px;
}

.type {
  padding: 0 13px;
  line-height: 45px;
}

#container {
  margin-top: 25px;
}

/* 系统会在桌面端只保留前三行图标；容器随实际可见行收缩，避免留下固定高度空白。 */
.ad-section {
  height: auto !important;
  min-height: 0;
  padding-bottom: 10px;
}

/* 广告管理器隐藏链接时，同步折叠空广告单元；全部隐藏则移除整个广告区。 */
.promo-icons li:not(:has(> a:not([data-fleet-ad-hidden="1"]))) {
  display: none !important;
}

.promo-icons:not(:has(> ul > li > a:not([data-fleet-ad-hidden="1"]))) {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.listing-section,
.listing-section .video-wrapper,
.detail-panel,
.player-panel {
  min-height: 0;
}

.listing-section .videoBox {
  color: #ffebcd;
  cursor: pointer;
}

.listing-section .videoBox:hover .title {
  color: #e98ca9;
}

.player-panel {
  padding-bottom: 20px;
}

.paging {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 24px 0 20px;
}

.paging a,
.paging .current {
  display: inline-flex;
  min-width: 38px;
  height: 36px;
  margin: 0;
  padding: 0 12px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: #e98ca9;
  color: #111;
  font-weight: 700;
  line-height: 36px;
  text-decoration: none;
}

.paging .current {
  background: #fff0f5;
  color: #b43a68;
  box-shadow: inset 0 0 0 2px #e98ca9;
}

.paging a:hover {
  background: #f2afc4;
}

.player-box,
.player-box .MacPlayer,
.player-box #playleft,
.player-box video,
.player-box iframe {
  height: 500px !important;
  min-height: 0 !important;
}

@media (max-width: 760px) {
  .myHeader-container {
    display: grid;
    grid-template-columns: minmax(120px, .8fr) minmax(0, 1.2fr);
    gap: 8px;
    width: 100%;
    height: 58px;
    padding: 0 10px;
  }

  .site-logo {
    width: auto;
    height: 58px;
    transform: none;
  }

  .site-logo-text {
    font-size: 28px;
    line-height: 58px;
  }

  .searchbar_wrapper {
    position: static;
    width: 100%;
    height: 36px;
    overflow: visible;
  }

  .searchbar_wrapper .input-group {
    width: 100%;
    transform: none;
  }

  .search_bar {
    width: calc(100% - 52px);
    height: 36px;
    padding-left: 10px;
    font-size: 14px;
  }

  .search_btn {
    width: 52px;
    height: 36px;
  }

  .path_bar {
    height: auto;
    min-height: 0;
    padding-top: 0;
  }

  .word_wrapper {
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 6px 10px;
  }

  .menu_container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 40px;
    width: 100%;
    height: auto;
    min-height: 0;
  }

  .menu_items,
  .type {
    width: auto;
    height: 40px;
  }

  .type {
    padding: 0 4px;
    line-height: 40px;
  }

  #container {
    margin-top: 18px;
  }

  .ad-section {
    height: auto !important;
  }

  .listing-section,
  .listing-section .video-wrapper,
  .detail-panel,
  .player-panel {
    min-height: 0;
  }

  .player-box,
  .player-box .MacPlayer,
  .player-box #playleft,
  .player-box video,
  .player-box iframe {
    width: 100% !important;
    height: 56.25vw !important;
    max-height: 360px !important;
  }

  .paging {
    gap: 6px;
    margin: 18px 0 16px;
  }

  .paging a,
  .paging .current {
    min-width: 32px;
    height: 34px;
    padding: 0 8px;
    font-size: 14px;
    line-height: 34px;
  }

  .paging .paging-edge {
    font-size: 13px;
  }
}

/* Bound each existing desktop shell and keep the viewport footer centered. */
@media (min-width: 761px) {
  .myHeader-container, .word_wrapper, .menu_container,
  #container, .sectionContent, .video-wrapper, .footer-container {
    max-width: 100%;
  }
  #footer { margin-left: calc((100% - 100vw) / 2); }
}
