/* 手机的页头和底栏留在可视区，只有 main 接收页面滚动。 */
:root { --top: 44px; }
html, body.tv { height: 100%; overflow: hidden; }
body.tv {
  height: 100dvh;
  min-height: 0;
  padding: env(safe-area-inset-top, 0px) 0 calc(56px + var(--safe-b));
}
.tv-app { height: 100%; min-height: 0; }
.tv-mobile-header { flex: 0 0 var(--top); }
.tv-chan {
  position: static;
  flex: 0 0 36px;
  align-items: center;
  gap: 12px;
  padding: 0 var(--gut);
}
.tv-chan__item {
  padding: 0 2px;
  font-size: 14px;
  font-weight: 400;
  line-height: 36px;
}
.tv-chan__item.is-active { font-size: 16px; font-weight: 600; }
.tv-chan__item.is-active::after { content: none; }
.tv-main[data-tv-scroll] {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
}
.tv-foot { display: none; }
.tv-webfs .tv-main[data-tv-scroll] { overflow: hidden; }
.tv-webfs .tv-tabbar { visibility: hidden; }
.tv-player.is-webfs { height: 100dvh; margin: 0; }

/* 播放页和排行榜在手机横屏时也使用这份样式。 */
@media (min-width: 768px) {
  body.tv-page-play, body.tv-page-rank {
    --sb: 0px;
    --gut: 12px;
    padding-bottom: calc(36px + var(--safe-b));
  }
  .tv-side, .tv-app > .tv-top { display: none; }
  .tv-tabbar {
    position: fixed;
    inset: auto 0 0;
    display: flex;
    height: calc(36px + var(--safe-b));
    padding-bottom: var(--safe-b);
    background: var(--bg);
    border-top: 1px solid var(--line);
  }
  .tv-tabbar__item { display: flex; align-items: center; justify-content: center; flex: 1; gap: 6px; font-size: 12px; }
  .tv-tabbar__item .tv-ico { width: 18px; height: 18px; }
  .tv-tabbar__item.is-active { color: var(--accent); }
}
