*{box-sizing:border-box}
html{color-scheme:dark}
body{margin:0;background:#0f0f0f;color:#f2f2f2;font-family:Arial,"Microsoft YaHei",sans-serif}
a{color:inherit;text-decoration:none}
.shell{width:min(1240px,calc(100% - 32px));margin:0 auto}
.site-header{position:sticky;top:0;z-index:20;background:rgba(20,20,20,.96);border-bottom:1px solid #2a2a2a;backdrop-filter:blur(10px)}
.header-top{border-bottom:1px solid #262626}
.header-main-row{min-height:72px;display:flex;align-items:center;justify-content:space-between;gap:32px}
.brand{font-weight:800;font-size:23px;display:flex;align-items:center;white-space:nowrap;flex:0 0 auto}
.brand-mark{margin-left:4px;background:#f4a024;color:#111;padding:3px 7px;border-radius:4px}
.header-nav-bar{background:#171717}
.main-nav{min-height:46px;display:flex;gap:24px;align-items:center;overflow-x:auto;overflow-y:hidden;scrollbar-width:none}
.main-nav::-webkit-scrollbar{display:none}
.main-nav a{font-size:14px;color:#d0d0d0;white-space:nowrap;flex:0 0 auto}
.main-nav a:hover,.section-head a:hover{color:#f4a024}
.search-box{display:flex;width:min(460px,48vw);min-width:290px;position:relative}
.search-box input{width:100%;background:#282828;border:1px solid #383838;border-right:0;color:#fff;padding:10px 12px;border-radius:5px 0 0 5px;outline:none}
.search-box button{border:0;background:#f4a024;color:#111;font-weight:700;padding:0 16px;border-radius:0 5px 5px 0;cursor:pointer}

.search-autocomplete{position:absolute;left:0;right:0;top:calc(100% + 7px);z-index:80;background:#1b1b1b;border:1px solid #373737;border-radius:9px;box-shadow:0 14px 34px rgba(0,0,0,.45);overflow:hidden;max-height:360px;overflow-y:auto}
.search-autocomplete[hidden]{display:none}
.search-autocomplete a{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:11px 13px;border-bottom:1px solid #292929;color:#e9e9e9;font-size:14px}
.search-autocomplete a:last-child{border-bottom:0}
.search-autocomplete a:hover,.search-autocomplete a.is-active{background:#292929;color:#f4a024}
.search-autocomplete .search-suggest-meta{flex:0 0 auto;color:#8f8f8f;font-size:12px}
.search-autocomplete .search-suggest-empty{padding:12px 13px;color:#8f8f8f;font-size:13px}
.search-record-panels{display:grid;grid-template-columns:1fr;gap:14px;margin:18px 0 26px}
.search-record-panel{min-width:0;background:#171717;border:1px solid #292929;border-radius:10px;padding:14px;display:flex;align-items:center;gap:10px}
.search-record-title{font-size:14px;font-weight:700;margin:0;color:#d8d8d8;white-space:nowrap;flex:0 0 auto}
.search-record-list{display:flex;flex:1 1 auto;min-width:0;flex-wrap:nowrap;gap:8px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.search-record-list::-webkit-scrollbar{display:none}
.search-record-list a{display:inline-flex;align-items:center;gap:7px;max-width:100%;padding:7px 10px;background:#232323;border:1px solid #303030;border-radius:999px;font-size:13px;flex:0 0 auto}
.search-record-list a span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.search-record-list a small{color:#8f8f8f;white-space:nowrap}
.search-record-list a:hover{border-color:#f4a024;color:#f4a024}
.page-space{padding:30px 0 48px}
.hero-strip{display:flex;justify-content:space-between;gap:24px;align-items:flex-end;padding:26px;border:1px solid #292929;border-radius:12px;background:linear-gradient(135deg,#171717,#202020);margin-bottom:30px}
.hero-strip h1,.page-heading h1{margin:6px 0 8px;font-size:30px}
.hero-strip p,.page-heading p{margin:0;color:#a9a9a9}
.eyebrow{font-size:12px;font-weight:800;letter-spacing:.16em;color:#f4a024}

.rank-links{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  align-items:center;
}
.rank-links a{
  min-width:0;
  text-align:center;
  white-space:nowrap;
  background:#272727;
  border:1px solid #333;
  padding:9px 12px;
  border-radius:999px;
  font-size:13px !important;
  line-height:1.4;
}
.rank-links a:hover{
  background:#f4a024;
  color:#111;
  border-color:#f4a024;
}
.tag-cloud a{
  background:#272727;
  border:1px solid #333;
  padding:9px 12px;
  border-radius:999px;
}

/* 手机端：只缩小文字 */
@media(max-width:760px){
  .rank-links{gap:6px}
  .rank-links a{
    font-size:11px !important;
    padding:9px 6px;
  }
}

.rank-links a:hover,.tag-cloud a:hover{background:#f4a024;color:#111;border-color:#f4a024}
.section-head{display:flex;align-items:center;justify-content:space-between;margin:26px 0 14px}
.section-head h2{margin:0;font-size:21px}
.section-head a{font-size:14px;color:#bdbdbd}

/* 视频推荐：桌面端一行 4 个 */
.video-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:20px 14px;
}
.video-card{min-width:0}
.thumb{display:block;position:relative;background:#1c1c1c;aspect-ratio:16/10;border-radius:8px;overflow:hidden;display:flex;align-items:center;justify-content:center;}
.thumb img{width:100%;height:100%;display:block;object-fit:contain;transition:transform .2s ease}
.video-card:hover .thumb img{transform:scale(1.025)}
.badge{position:absolute;right:7px;bottom:7px;background:rgba(0,0,0,.72);padding:3px 6px;border-radius:4px;font-size:11px}
.card-body{padding-top:9px}
.video-title{font-size:15px;font-weight:700;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.meta{display:flex;gap:9px;flex-wrap:wrap;color:#8f8f8f;font-size:12px;margin-top:6px}

.tag-section{margin-top:36px}
.tag-cloud{display:flex;flex-wrap:wrap;gap:9px}
.muted-tags a{color:#c8c8c8}
.page-heading{padding:8px 0 24px;border-bottom:1px solid #282828;margin-bottom:22px}
.pager{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin:34px 0 5px}
.pager a{min-width:38px;text-align:center;padding:9px 12px;border-radius:5px;background:#242424}
.pager a.active,.pager a:hover{background:#f4a024;color:#111}

.player-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:26px}
.player-shell{background:#000;min-height:480px;border-radius:8px;overflow:hidden}
.player-shell iframe,.player-shell video{width:100%;min-height:480px;border:0}
.play-title h1{font-size:25px;margin:18px 0 0}
.summary{color:#b5b5b5;line-height:1.75}
.side-panel{background:#181818;border:1px solid #292929;border-radius:8px;padding:15px;height:max-content}
.side-panel h2{margin:0 0 12px;font-size:18px}
.side-item{display:grid;grid-template-columns:105px 1fr;gap:10px;align-items:center;padding:8px 0;border-top:1px solid #282828;font-size:13px}
.side-item img{width:105px;height:66px;object-fit:contain;border-radius:4px}
.ranking-list{list-style:none;margin:0;padding:0;border-top:1px solid #2b2b2b}
.ranking-list li{display:grid;grid-template-columns:48px 150px 1fr;gap:15px;align-items:center;padding:14px 0;border-bottom:1px solid #252525}
.rank-no{font-size:24px;font-weight:800;color:#f4a024;text-align:center}
.rank-thumb img{width:150px;height:90px;object-fit:contain;border-radius:6px;display:block}
.rank-info>a{font-size:17px;font-weight:700}
.site-footer{border-top:1px solid #262626;color:#777;padding:28px 0 40px;margin-top:30px;font-size:13px}

@media(max-width:1050px){
  .video-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  .header-main-row{gap:20px}
  .search-box{width:min(420px,55vw);margin-left:auto}
  .main-nav{gap:20px}
  .player-layout{grid-template-columns:1fr}
  .side-panel{display:grid;grid-template-columns:repeat(2,1fr);gap:0 15px}
  .side-panel h2{grid-column:1/-1}
}

@media(max-width:760px){
  .shell{width:min(100% - 22px,1240px)}
  .header-main-row{min-height:auto;padding:10px 0;gap:12px}
  .brand{font-size:19px;max-width:42%;overflow:hidden}
  .brand-main{overflow:hidden;text-overflow:ellipsis}
  .search-box{width:auto;min-width:0;flex:1;margin-left:0}
  .search-box input{min-width:0;padding:9px 10px}
  .search-box button{padding:0 12px}
  .main-nav{min-height:42px;gap:18px}
  .main-nav a{font-size:13px}
  .hero-strip{align-items:flex-start;flex-direction:column}
  .video-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 10px}
  .player-shell,.player-shell iframe,.player-shell video{min-height:240px}
  .side-panel{display:block}
  .ranking-list li{grid-template-columns:34px 110px 1fr;gap:10px}
  .rank-thumb img{width:110px;height:68px}
  .rank-no{font-size:18px}
  .rank-info>a{font-size:14px}
}

/* ===== Responsive refinement: desktop original layout, mobile related below ===== */
.mobile-header,.mobile-search-panel,.mobile-quick-links{display:none}

/* Desktop: preserve original two-column player layout; only restyle right recommendations */
.related-panel{display:block}
.related-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 10px}
.related-card{min-width:0}
.related-thumb{display:block;aspect-ratio:16/10;border-radius:6px;overflow:hidden;background:#1c1c1c}
.related-thumb img{display:block;width:100%;height:100%;object-fit:contain}
.related-title{display:block;margin-top:7px;font-size:13px;font-weight:700;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

@media(max-width:1050px) and (min-width:761px){
  .player-layout{grid-template-columns:minmax(0,1fr) 300px}
  .side-panel.related-panel{display:block}
  .related-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* Mobile header + recommendations under player */
@media(max-width:760px){
  .desktop-header-top{display:none}
  .mobile-header{min-height:54px;display:grid;grid-template-columns:72px minmax(0,1fr) 72px;align-items:center;gap:8px}
  .mobile-header-action{appearance:none;border:0;background:transparent;color:#f2f2f2;font:inherit;font-size:14px;padding:10px 6px;cursor:pointer}
  .mobile-menu-btn{text-align:left}
  .mobile-search-btn{text-align:right}
  .mobile-brand{min-width:0;text-align:center;font-size:18px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

  .header-nav-bar{display:none}
  .header-nav-bar.mobile-nav-open{display:block}
  .main-nav{min-height:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;padding:8px 0 12px;overflow:visible}
  .main-nav a{font-size:14px;text-align:center;padding:10px 4px}

  .mobile-search-panel{display:block;background:#171717;border-top:1px solid #262626;padding:10px 0}
  .mobile-search-panel[hidden]{display:none}
  .mobile-search-box{display:flex;width:100%;min-width:0;margin:0}
  .mobile-search-box input{min-width:0}

  .player-layout{display:flex;flex-direction:column;grid-template-columns:none;gap:0}
  .side-panel.related-panel{display:block;margin-top:28px;padding:0;background:transparent;border:0}
  .side-panel.related-panel h2{margin:0 0 14px;font-size:20px}
  .related-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 10px}
  .related-title{font-size:14px;margin-top:7px}
}

/* ===== Final play page recommendation rules ===== */

/* Desktop right-side recommendations */
.desktop-related{display:block}
.desktop-related .related-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px 10px
}
.desktop-related .related-card{min-width:0}
.desktop-related .related-thumb{
  display:block;
  aspect-ratio:16/10;
  border-radius:6px;
  overflow:hidden;
  background:#1c1c1c
}
.desktop-related .related-thumb img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain
}
.desktop-related .related-title{
  display:block;
  margin-top:7px;
  font-size:13px;
  font-weight:700;
  line-height:1.4;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis
}

/* Guess You Like: 20 random items below player */
.guess-section{margin-top:34px}
.guess-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:24px 18px
}
.guess-card{min-width:0}
.guess-thumb{
  display:block;
  aspect-ratio:16/10;
  border-radius:8px;
  overflow:hidden;
  background:#1c1c1c
}
.guess-thumb img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  transition:transform .2s ease
}
.guess-card:hover .guess-thumb img{transform:scale(1.025)}
.guess-title{
  display:block;
  margin-top:8px;
  font-size:15px;
  font-weight:700;
  line-height:1.4;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis
}

@media(max-width:1050px) and (min-width:761px){
  .guess-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}

/* Mobile: no right-side recommendations; only 猜你喜欢 below player */
@media(max-width:760px){
  .desktop-related{display:none !important}
  .player-layout{display:block !important}
  .guess-section{margin-top:28px}
  .guess-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:18px 10px
  }
  .guess-title{
    margin-top:7px;
    font-size:14px
  }
}

/* ===== Requested desktop polish: centered larger search + one related item per row ===== */
@media(min-width:761px){
  .desktop-related .related-grid{
    display:grid;
    grid-template-columns:1fr;
    gap:14px;
  }

  .desktop-related .related-card{
    display:block;
  }

  .desktop-related .related-thumb{
    display:block;
    width:100%;
    aspect-ratio:16/10;
    overflow:hidden;
    border-radius:6px;
  }

  .desktop-related .related-thumb img{
    width:100%;
    height:100%;
    object-fit:contain;
    display:block;
  }

  .desktop-related .related-title{
    display:block;
    margin-top:7px;
    font-size:14px;
    line-height:1.4;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
}

/* Guess section: desktop 3 cards per row, 24 total; mobile shows 20 total */
@media (min-width:769px){
  .guess-grid{
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  }
}

@media (max-width:768px){
  .guess-grid .guess-card:nth-child(n+21){
    display:none !important;
  }
}

/* ===== Mobile header buttons, logo and collapsible category navigation ===== */
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.mobile-nav-panel,.mobile-nav-backdrop{display:none}

@media(max-width:760px){
  /* Do not lock body scrolling here. A fixed nav inside the sticky/backdrop-filter header
     can become a zero-height containing block on some mobile browsers. */
  html.mobile-menu-visible,html.mobile-menu-visible body{overscroll-behavior:none}

  .mobile-header{
    min-height:64px;
    grid-template-columns:minmax(76px,auto) minmax(0,1fr) minmax(76px,auto);
    gap:8px;
    padding:8px 0
  }

  .mobile-header-action{
    min-width:76px;
    height:42px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    padding:0 10px;
    border:1px solid #414141;
    border-radius:12px;
    background:linear-gradient(180deg,#363636,#292929);
    color:#e7e7e7;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 4px 14px rgba(0,0,0,.16);
    font-size:15px;
    line-height:1;
    transition:border-color .2s ease,background .2s ease,color .2s ease,transform .2s ease
  }

  .mobile-header-action:active{transform:scale(.97)}
  .mobile-header-action.is-active{border-color:rgba(244,160,36,.72);background:#3a3022;color:#ffc15d}
  .mobile-action-icon{width:22px;height:22px;flex:0 0 auto}
  .mobile-menu-btn,.mobile-search-btn{text-align:center}

  .mobile-header .brand{
    justify-self:center;
    min-width:0;
    max-width:100%;
    overflow:hidden;
    font-size:17px;
    font-weight:900;
    letter-spacing:-.02em
  }
  .mobile-header .brand-main{min-width:0;overflow:hidden;text-overflow:ellipsis}
  .mobile-header .brand-mark{flex:0 0 auto;margin-left:4px;padding:3px 6px;border-radius:4px;font-size:11px;letter-spacing:0}

  .mobile-quick-links{
    min-height:42px;
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    align-items:center;
    gap:8px;
    padding:0 0 8px
  }
  .mobile-quick-links a{
    min-width:0;
    height:34px;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:0 8px;
    overflow:hidden;
    border:1px solid #343434;
    border-radius:10px;
    background:#222;
    color:#e4e4e4;
    font-size:13px;
    font-weight:700;
    line-height:1;
    text-overflow:ellipsis;
    white-space:nowrap
  }
  .mobile-quick-links a:active{background:#303030;color:#fff}

  .mobile-search-panel{padding:11px 0 12px;background:#171717;border-top:1px solid #292929;box-shadow:0 12px 28px rgba(0,0,0,.3)}
  .mobile-search-box{display:grid;grid-template-columns:minmax(0,1fr) 64px;gap:8px;width:100%;min-width:0;margin:0}
  .mobile-search-field{position:relative;display:block;min-width:0}
  .mobile-search-field svg{position:absolute;left:12px;top:50%;width:20px;height:20px;transform:translateY(-50%);color:#9d9d9d;pointer-events:none}

  .mobile-search-box .mobile-search-field input{
    height:44px;
    width:100%;
    min-width:0;
    padding:0 12px 0 40px;
    border:1px solid #3b3b3b;
    border-radius:12px;
    background:#242424;
    color:#fff;
    outline:none
  }

  .mobile-search-box .mobile-search-field input:focus{border-color:#f4a024;box-shadow:0 0 0 3px rgba(244,160,36,.12)}
  .mobile-search-box>button{height:44px;padding:0;border-radius:12px;background:#f4a024;color:#18110a}

  .header-nav-bar{display:none}
  .header-nav-bar.mobile-nav-open{
    display:block;
    position:absolute;
    top:100%;
    right:0;
    left:0;
    z-index:30;
    background:transparent
  }

  .desktop-main-nav{display:none!important}

  .mobile-nav-backdrop{
    display:block;
    position:fixed;
    inset:106px 0 0;
    z-index:0;
    width:100%;
    height:auto;
    padding:0;
    border:0;
    background:rgba(0,0,0,.62);
    backdrop-filter:blur(2px)
  }

  .mobile-nav-panel{
    position:relative;
    z-index:1;
    display:block;
    width:100%;
    max-height:calc(100dvh - 106px);
    max-height:calc(100vh - 106px);
    padding:12px 11px calc(18px + env(safe-area-inset-bottom));
    overflow-x:hidden;
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
    touch-action:pan-y;
    overscroll-behavior:contain;
    background:linear-gradient(180deg,#181818 0%,#121212 100%);
    border-top:1px solid #292929;
    border-bottom:1px solid #303030;
    box-shadow:0 18px 40px rgba(0,0,0,.46);
    scrollbar-width:thin
  }

  .mobile-nav-shortcuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:12px}

  .mobile-nav-shortcut{
    min-height:44px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    padding:0 12px;
    border:1px solid #343434;
    border-radius:12px;
    background:#222;
    color:#e7e7e7;
    font-size:14px;
    font-weight:700
  }

  .mobile-nav-shortcut svg{width:19px;height:19px;color:#f4a024}
  .mobile-nav-shortcut:active{background:#2d2d2d}

  .mobile-nav-groups{display:grid;gap:8px}
  .mobile-nav-group{overflow:hidden;border:1px solid #303030;border-radius:13px;background:#1d1d1d;box-shadow:0 5px 16px rgba(0,0,0,.12)}
  .mobile-nav-parent-row{display:flex;align-items:stretch;min-height:50px}
  .mobile-nav-parent-link{min-width:0;flex:1;display:flex;align-items:center;gap:10px;padding:0 14px;font-size:15px;font-weight:800;color:#ededed}
  .mobile-nav-parent-link>span:last-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .mobile-nav-parent-dot{width:7px;height:7px;flex:0 0 auto;border-radius:50%;background:#f4a024;box-shadow:0 0 0 4px rgba(244,160,36,.1)}
  .mobile-nav-toggle{width:50px;flex:0 0 50px;display:grid;place-items:center;padding:0;border:0;border-left:1px solid #303030;background:transparent;color:#a9a9a9;cursor:pointer}
  .mobile-nav-toggle svg{width:20px;height:20px;transition:transform .24s ease,color .24s ease}
  .mobile-nav-group.is-open{border-color:#3b3428;background:#20201f}
  .mobile-nav-group.is-open .mobile-nav-parent-row{background:linear-gradient(90deg,rgba(244,160,36,.08),transparent)}
  .mobile-nav-group.is-open .mobile-nav-toggle{color:#f4a024}
  .mobile-nav-group.is-open .mobile-nav-toggle svg{transform:rotate(180deg)}

  .mobile-nav-children{display:grid;grid-template-rows:0fr;transition:grid-template-rows .24s ease}
  .mobile-nav-children-inner{min-height:0;overflow:hidden;border-top:1px solid transparent;transition:border-color .24s ease}
  .mobile-nav-group.is-open .mobile-nav-children{grid-template-rows:1fr}
  .mobile-nav-group.is-open .mobile-nav-children-inner{border-top-color:#303030}
  .mobile-nav-child-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:11px 12px 13px}

  .mobile-nav-child-grid a{
    min-width:0;
    padding:9px 7px;
    overflow:hidden;
    border:1px solid #353535;
    border-radius:9px;
    background:#292929;
    color:#cfcfcf;
    font-size:13px;
    line-height:1.2;
    text-align:center;
    text-overflow:ellipsis;
    white-space:nowrap
  }

  .mobile-nav-child-grid a:active{background:#343434;color:#fff}
  .mobile-nav-child-grid .mobile-nav-all{border-color:rgba(244,160,36,.34);background:rgba(244,160,36,.09);color:#ffc15d;font-weight:700}
}

@media(max-width:380px){
  .mobile-header{grid-template-columns:72px minmax(0,1fr) 72px;gap:6px}
  .mobile-header-action{min-width:72px;padding:0 7px;font-size:14px}
  .mobile-action-icon{width:20px;height:20px}
  .mobile-header .brand{font-size:16px}
  .mobile-nav-child-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
/* ===== Desktop search: centered + keep “搜索” on one line ===== */
@media(min-width:761px){
  .header-main-row{
    position:relative;
    justify-content:flex-start;
  }

  .header-main-row > .search-box{
    position:absolute;
    left:50%;
    top:50%;
    transform:translate(-50%,-50%);
    width:min(560px,52vw);
    min-width:360px;
    margin:0;
  }

  .header-main-row > .search-box input{
    min-width:0;
  }

  .header-main-row > .search-box button{
    flex:0 0 auto;
    min-width:72px;
    padding:0 18px;
    white-space:nowrap;
    word-break:keep-all;
    writing-mode:horizontal-tb;
    line-height:1;
  }
}

/* ===== PWA install controls ===== */
.pwa-install-button[hidden],.mobile-pwa-install[hidden]{display:none!important}
.pwa-install-button{
  appearance:none;
  min-height:40px;
  margin-left:auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:0 14px;
  border:1px solid rgba(244,160,36,.55);
  border-radius:9px;
  background:rgba(244,160,36,.12);
  color:#ffc15d;
  font:inherit;
  font-size:14px;
  font-weight:800;
  cursor:pointer;
  white-space:nowrap;
  transition:background .2s ease,border-color .2s ease,transform .2s ease
}
.pwa-install-button:hover{background:#f4a024;border-color:#f4a024;color:#17110a}
.pwa-install-button:active{transform:scale(.98)}
.pwa-install-button svg{width:19px;height:19px;flex:0 0 auto}
.mobile-pwa-install{grid-column:1/-1;width:100%;font-family:inherit;cursor:pointer}
@media(max-width:940px) and (min-width:761px){
  .pwa-install-button span{display:none}
  .pwa-install-button{width:42px;padding:0}
}
@media(display-mode:standalone){body{padding-top:env(titlebar-area-height,0px)}}


/* Full image display override */
.poster img,.bt-poster,.thumb img{max-width:100%;max-height:100%;object-fit:contain;}


/* 首页分类展示优化 */
.category-section.category-card{
    margin-bottom:42px;
}
.category-title{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    margin-bottom:18px;
}
.category-title-left{
    display:flex;
    align-items:center;
    gap:24px;
    flex-wrap:wrap;
}
.category-title h2{
    margin:0;
    font-size:28px;
}
.category-links{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}
.category-links a{
    padding:6px 14px;
    border-radius:18px;
    background:#202020;
    color:#ddd;
    font-size:14px;
    text-decoration:none;
}
.category-links a:hover{
    background:#333;
}
.more-link{
    white-space:nowrap;
}

@media(max-width:760px){
  .search-record-panels{grid-template-columns:1fr;margin-top:14px}
  .search-autocomplete{top:calc(100% + 8px)}
}


/* Mobile: simplify home/category navigation blocks */
@media(max-width:760px){
  .home-category-section .category-links,
  .home-category-section .more-link,
  .home-mobile-extra,
  .category-subcategory-section{
    display:none!important;
  }
}

/* ===== Desktop two-row header refinement ===== */
@media(min-width:761px){
  .site-header{
    background:rgba(17,17,17,.97);
    border-bottom:1px solid #292929;
    box-shadow:0 7px 24px rgba(0,0,0,.14);
  }

  .header-top{
    background:#111;
    border-bottom:1px solid #242424;
  }

  .header-main-row{
    min-height:86px;
    gap:28px;
  }

  .header-main-row > .brand{
    font-size:25px;
    letter-spacing:-.025em;
  }

  .header-main-row > .brand .brand-mark{
    margin-left:7px;
    padding:5px 9px;
    border-radius:7px;
    font-size:.92em;
    line-height:1;
    box-shadow:0 4px 12px rgba(244,160,36,.12);
  }

  .header-main-row > .search-box{
    width:min(640px,52vw);
    min-width:420px;
    height:44px;
  }

  .header-main-row > .search-box input{
    height:44px;
    padding:0 16px;
    border:1px solid #3a3a3a;
    border-right:0;
    border-radius:8px 0 0 8px;
    background:#252525;
    font-size:14px;
    transition:border-color .2s ease,background .2s ease,box-shadow .2s ease;
  }

  .header-main-row > .search-box input:focus{
    background:#292929;
    border-color:#4a4a4a;
    box-shadow:0 0 0 3px rgba(244,160,36,.07);
  }

  .header-main-row > .search-box button{
    min-width:88px;
    height:44px;
    padding:0 20px;
    border-radius:0 8px 8px 0;
    font-size:14px;
    transition:background .2s ease,transform .16s ease;
  }

  .header-main-row > .search-box button:hover{background:#ffad2f}
  .header-main-row > .search-box button:active{transform:translateY(1px)}

  .header-nav-bar{
    background:#161616;
    border-top:0;
    box-shadow:inset 0 -1px 0 #292929;
  }

  .desktop-main-nav{
    min-height:54px;
    gap:36px;
    overflow:visible;
  }

  .desktop-main-nav a{
    position:relative;
    height:54px;
    display:inline-flex;
    align-items:center;
    padding:1px 0 0;
    color:#d8d8d8;
    font-size:15px;
    font-weight:500;
    line-height:1;
    transition:color .2s ease;
  }

  .desktop-main-nav a::after{
    content:"";
    position:absolute;
    left:50%;
    bottom:0;
    width:0;
    height:3px;
    border-radius:3px 3px 0 0;
    background:#f4a024;
    transform:translateX(-50%);
    transition:width .2s ease;
  }

  .desktop-main-nav a:hover,
  .desktop-main-nav a[aria-current="page"]{
    color:#f6aa35;
  }

  .desktop-main-nav a:hover::after{width:18px}
  .desktop-main-nav a[aria-current="page"]::after{width:26px}
}

@media(max-width:940px) and (min-width:761px){
  .header-main-row > .search-box{
    width:min(520px,54vw);
    min-width:340px;
  }
  .desktop-main-nav{gap:28px}
}


/* ===== Unified content pages polish: category / ranking / tag / search / play ===== */
.thumb{overflow:hidden;display:flex;align-items:center;justify-content:center}
.content-page{padding-top:24px}
.page-heading--compact{padding:4px 0 20px;margin-bottom:18px}
.page-heading--compact h1{margin:5px 0 7px;font-size:28px;line-height:1.2;letter-spacing:-.02em}
.page-heading--compact p{font-size:14px;color:#999}
.heading-title-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.heading-title-row h1{margin-right:0}
.keyword-chip{display:inline-flex;align-items:center;max-width:min(520px,70vw);padding:6px 10px;border:1px solid rgba(244,160,36,.34);border-radius:8px;background:rgba(244,160,36,.08);color:#f6ac3e;font-size:13px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.content-section{margin-top:24px}
.section-head--clean{margin:0 0 14px;padding:0}
.section-head--clean h2{font-size:19px}
.section-note{color:#777;font-size:12px}

/* Category filter */
.filter-panel{margin:0 0 26px;padding:14px 16px;border:1px solid #292929;border-radius:10px;background:#171717}
.filter-row{display:flex;align-items:flex-start;gap:16px}
.filter-label{flex:0 0 auto;padding-top:8px;color:#8f8f8f;font-size:13px;font-weight:700}
.filter-options{gap:8px}
.filter-options a,.tag-cloud.filter-options a{padding:7px 12px;border-radius:8px;background:#222;border:1px solid #303030;color:#d3d3d3;font-size:13px;line-height:1.2;transition:background .18s ease,border-color .18s ease,color .18s ease}
.filter-options a:hover,.filter-options a.active{background:#f4a024;border-color:#f4a024;color:#15100a}

/* Ranking tabs + rank markers */
.rank-tabs{display:flex;align-items:center;gap:28px;min-height:44px;margin:0 0 26px;border-bottom:1px solid #282828;overflow-x:auto;overflow-y:hidden;scrollbar-width:none}
.rank-tabs::-webkit-scrollbar{display:none}
.rank-tabs a{position:relative;height:44px;display:inline-flex;align-items:center;flex:0 0 auto;color:#aaa;font-size:14px;font-weight:700;transition:color .18s ease}
.rank-tabs a::after{content:"";position:absolute;left:50%;bottom:-1px;width:0;height:3px;border-radius:3px 3px 0 0;background:#f4a024;transform:translateX(-50%);transition:width .18s ease}
.rank-tabs a:hover,.rank-tabs a.active{color:#f5a62f}
.rank-tabs a.active::after{width:28px}
.ranking-content{margin-top:0}
.ranking-card .thumb{position:relative}
.rank-badge{position:absolute;left:8px;top:8px;z-index:2;min-width:54px;padding:5px 8px;border:1px solid rgba(255,255,255,.12);border-radius:6px;background:rgba(14,14,14,.86);backdrop-filter:blur(6px);color:#d7d7d7;font-size:11px;font-weight:900;letter-spacing:.03em;text-align:center;box-shadow:0 4px 14px rgba(0,0,0,.25)}
.ranking-grid .ranking-card:nth-child(1) .rank-badge,.ranking-grid .ranking-card:nth-child(2) .rank-badge,.ranking-grid .ranking-card:nth-child(3) .rank-badge{background:#f4a024;border-color:#f4a024;color:#16100a}
.ranking-grid .ranking-card:nth-child(1) .thumb,.ranking-grid .ranking-card:nth-child(2) .thumb,.ranking-grid .ranking-card:nth-child(3) .thumb{box-shadow:inset 0 0 0 1px rgba(244,160,36,.26)}

/* Tag/search discovery strip */
.discovery-strip{display:flex;align-items:center;gap:14px;min-width:0;margin:0 0 26px;padding:11px 13px;border:1px solid #282828;border-radius:9px;background:#171717}
.discovery-label{flex:0 0 auto;color:#8f8f8f;font-size:12px;font-weight:800}
.discovery-links{display:flex;gap:7px;min-width:0;overflow-x:auto;overflow-y:hidden;scrollbar-width:none}
.discovery-links::-webkit-scrollbar{display:none}
.discovery-links a{flex:0 0 auto;padding:6px 10px;border:1px solid #303030;border-radius:7px;background:#222;color:#cfcfcf;font-size:12px;white-space:nowrap}
.discovery-links a:hover{border-color:#f4a024;color:#f4a024}
.search-heading strong{color:#f4a024;font-weight:800}
.empty-state{margin:12px 0 8px;padding:58px 20px;border:1px dashed #303030;border-radius:12px;background:#151515;text-align:center}
.empty-state-icon{display:grid;place-items:center;width:46px;height:46px;margin:0 auto 14px;border-radius:50%;background:#222;color:#f4a024;font-size:26px}
.empty-state h2{margin:0 0 8px;font-size:19px}
.empty-state p{margin:0;color:#858585;font-size:13px}

/* Player page */
.play-page{padding-top:20px}
.play-page-kicker{display:flex;align-items:center;gap:10px;margin:0 0 12px}
.play-now{color:#747474;font-size:12px}
.player-layout-modern{grid-template-columns:minmax(0,1fr) 270px;gap:20px;align-items:start}
.player-main-column{min-width:0}
.player-shell{position:relative;min-height:0;aspect-ratio:16/9;border:1px solid #292929;border-radius:10px;background:#050505;box-shadow:0 14px 40px rgba(0,0,0,.24)}
.player-shell .play-wrap,.player-shell .video-body,.player-shell .player-component__body{width:100%;height:100%;min-height:0}
.player-shell iframe,.player-shell video,.player-shell .player-component__frame{display:block;width:100%;height:100%;min-height:0;border:0}
.play-info-card{margin-top:14px;padding:17px 18px;border:1px solid #292929;border-radius:10px;background:#171717}
.play-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}
.play-title-row h1{margin:0 0 9px;font-size:23px;line-height:1.25;letter-spacing:-.02em}
.play-facts{display:flex;gap:7px;flex-wrap:wrap}
.play-facts span{padding:5px 8px;border-radius:6px;background:#222;color:#aaa;font-size:11px}
.score-chip{flex:0 0 auto;padding:7px 10px;border:1px solid rgba(244,160,36,.3);border-radius:7px;background:rgba(244,160,36,.08);color:#f5aa37;font-size:12px;font-weight:800}
.play-info-card .summary{margin:14px 0 0;padding-top:13px;border-top:1px solid #262626;color:#9f9f9f;font-size:13px;line-height:1.75}
.play-related-panel{padding:13px;border-radius:10px;background:#171717}
.side-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 12px}
.side-panel-heading h2{margin:0;font-size:17px}
.side-panel-heading span{color:#737373;font-size:11px}
@media(min-width:761px){
  /* Play page sidebar: one recommendation per row, image above text. */
  .desktop-related.play-related-panel .related-grid{display:grid;grid-template-columns:1fr;gap:0}
  .desktop-related.play-related-panel .related-card{display:block;min-width:0;padding:0 0 15px;margin:0 0 15px;border-bottom:1px solid #272727}
  .desktop-related.play-related-panel .related-card:last-child{padding-bottom:0;margin-bottom:0;border-bottom:0}
  .desktop-related.play-related-panel .related-thumb{display:block;width:100%;aspect-ratio:16/10;border-radius:8px;overflow:hidden;background:#101010}
  .desktop-related.play-related-panel .related-thumb img{display:block;width:100%;height:100%;object-fit:contain;transition:transform .22s ease,opacity .22s ease}
  .desktop-related.play-related-panel .related-card:hover .related-thumb img{transform:scale(1.025);opacity:.96}
  .desktop-related.play-related-panel .related-card-body{min-width:0;margin-top:9px}
  .desktop-related.play-related-panel .related-title{display:-webkit-box;margin:0;color:#eee;font-size:14px;font-weight:750;line-height:1.45;white-space:normal;overflow:hidden;text-overflow:ellipsis;-webkit-box-orient:vertical;-webkit-line-clamp:2}
  .desktop-related.play-related-panel .related-card:hover .related-title{color:#f4a024}
  .desktop-related.play-related-panel .meta{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px;color:#777;font-size:11px;line-height:1.4}
  .desktop-related.play-related-panel .meta span+span::before{content:"·";margin-right:6px;color:#555}
}
.play-guess-section{margin-top:30px;padding-top:24px;border-top:1px solid #282828}
.play-guess-section .guess-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:20px 14px}
.play-guess-section .guess-thumb{border-radius:7px}
.play-guess-section .guess-title{font-size:14px}

@media(max-width:1050px) and (min-width:761px){
  .player-layout-modern{grid-template-columns:minmax(0,1fr) 250px;gap:16px}
  .play-guess-section .guess-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
}

@media(max-width:760px){
  .content-page,.play-page{padding-top:18px}
  .page-heading--compact{padding:0 0 16px;margin-bottom:14px}
  .page-heading--compact h1{font-size:24px}
  .page-heading--compact p{font-size:13px}
  .heading-title-row{gap:9px}
  .keyword-chip{max-width:68vw;padding:5px 8px;font-size:12px}
  .section-head--clean h2{font-size:18px}
  .section-note{display:none}

  .filter-panel{padding:12px;margin-bottom:20px}
  .filter-row{display:block}
  .filter-label{display:block;padding:0 0 8px}

  .rank-tabs{gap:22px;min-height:42px;margin-bottom:20px}
  .rank-tabs a{height:42px;font-size:13px}
  .rank-badge{left:6px;top:6px;min-width:48px;padding:4px 6px;font-size:10px}

  .discovery-strip{gap:10px;margin-bottom:20px;padding:10px 11px}
  .discovery-label{font-size:11px}
  .discovery-links a{padding:6px 9px;font-size:11px}
  .empty-state{padding:44px 16px}

  .play-page-kicker{margin-bottom:10px}
  .player-layout-modern{display:block}
  .player-shell{aspect-ratio:16/9;min-height:0;border-radius:8px}
  .player-shell iframe,.player-shell video{min-height:0}
  .play-info-card{margin-top:10px;padding:14px;border-radius:9px}
  .play-title-row{display:block}
  .play-title-row h1{font-size:20px;margin-bottom:8px}
  .score-chip{display:inline-flex;margin-top:10px}
  .play-info-card .summary{font-size:13px;margin-top:12px;padding-top:12px}
  .play-related-panel{display:none!important}
  .play-guess-section{margin-top:24px;padding-top:20px}
  .play-guess-section .guess-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:18px 10px}
}

/* ===== Dark / light skin switch ===== */
html[data-theme="dark"]{color-scheme:dark}
html[data-theme="light"]{color-scheme:light}
body{transition:background-color .18s ease,color .18s ease}

.header-tools{margin-left:auto;display:flex;align-items:center;gap:10px;flex:0 0 auto}
.header-tools .pwa-install-button{margin-left:0}
.theme-toggle{
  appearance:none;
  min-height:40px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:0 12px;
  border:1px solid #343434;
  border-radius:9px;
  background:#202020;
  color:#d9d9d9;
  font:inherit;
  font-size:13px;
  font-weight:700;
  cursor:pointer;
  white-space:nowrap;
  transition:background .18s ease,border-color .18s ease,color .18s ease,transform .18s ease
}
.theme-toggle:hover{border-color:rgba(244,160,36,.62);background:#29231b;color:#ffc15d}
.theme-toggle:active{transform:scale(.98)}
.theme-icon{width:18px;height:18px;flex:0 0 auto}
.theme-icon-moon{display:none}
html[data-theme="light"] .theme-icon-sun{display:none}
html[data-theme="light"] .theme-icon-moon{display:block}
.mobile-theme-toggle{font:inherit;cursor:pointer}

@media(max-width:940px) and (min-width:761px){
  .theme-toggle{width:42px;padding:0}
  .theme-toggle-label{display:none}
}

@media(max-width:760px){
  .mobile-nav-shortcuts{grid-template-columns:repeat(3,minmax(0,1fr))}
  .mobile-theme-toggle{width:100%}
}

/* Light theme: warm white surfaces keep the orange cinema accent. */
html[data-theme="light"] body{background:#f5f6f8;color:#1d1f23}
html[data-theme="light"] .site-header{background:rgba(255,255,255,.96);border-color:#e1e3e7;box-shadow:0 7px 24px rgba(27,31,36,.07)}
html[data-theme="light"] .header-top{background:#fff;border-color:#e8e9ec}
html[data-theme="light"] .header-nav-bar{background:#fafafa;box-shadow:inset 0 -1px 0 #e3e5e8}
html[data-theme="light"] .desktop-main-nav a,
html[data-theme="light"] .main-nav a{color:#4f535a}
html[data-theme="light"] .desktop-main-nav a:hover,
html[data-theme="light"] .desktop-main-nav a[aria-current="page"],
html[data-theme="light"] .main-nav a:hover{color:#e78d09}
html[data-theme="light"] .brand{color:#17191c}

html[data-theme="light"] .search-box input,
html[data-theme="light"] .header-main-row > .search-box input{background:#f0f1f3;border-color:#d9dce1;color:#1e2024}
html[data-theme="light"] .header-main-row > .search-box input:focus{background:#fff;border-color:#c8ccd2;box-shadow:0 0 0 3px rgba(244,160,36,.11)}
html[data-theme="light"] .search-box input::placeholder{color:#969ba3}
html[data-theme="light"] .search-autocomplete{background:#fff;border-color:#dddfe4;box-shadow:0 14px 34px rgba(35,39,45,.13)}
html[data-theme="light"] .search-autocomplete a{border-color:#eceef1;color:#282b30}
html[data-theme="light"] .search-autocomplete a:hover,
html[data-theme="light"] .search-autocomplete a.is-active{background:#fff5e5;color:#df8708}
html[data-theme="light"] .search-autocomplete .search-suggest-meta,
html[data-theme="light"] .search-autocomplete .search-suggest-empty{color:#858a92}

html[data-theme="light"] .theme-toggle{background:#f4f5f7;border-color:#d9dce1;color:#44484f}
html[data-theme="light"] .theme-toggle:hover{background:#fff5e5;border-color:#f0b45b;color:#c97800}
html[data-theme="light"] .pwa-install-button{background:#fff6e9;color:#b86c00;border-color:#efbc70}
html[data-theme="light"] .pwa-install-button:hover{background:#f4a024;color:#17110a;border-color:#f4a024}

html[data-theme="light"] .hero-strip{background:linear-gradient(135deg,#fff,#f7f8fa);border-color:#e1e3e7}
html[data-theme="light"] .hero-strip p,
html[data-theme="light"] .page-heading p,
html[data-theme="light"] .page-heading--compact p{color:#71767e}
html[data-theme="light"] .page-heading{border-color:#e2e4e8}
html[data-theme="light"] .section-head a{color:#666b73}
html[data-theme="light"] .section-note{color:#858a92}

html[data-theme="light"] .rank-links a,
html[data-theme="light"] .tag-cloud a,
html[data-theme="light"] .category-links a{background:#fff;border-color:#dfe2e6;color:#4b5058}
html[data-theme="light"] .rank-links a:hover,
html[data-theme="light"] .tag-cloud a:hover,
html[data-theme="light"] .category-links a:hover{background:#fff2dc;border-color:#f4a024;color:#c87500}
html[data-theme="light"] .muted-tags a{color:#5f646c}

html[data-theme="light"] .thumb,
html[data-theme="light"] .related-thumb,
html[data-theme="light"] .desktop-related .related-thumb,
html[data-theme="light"] .guess-thumb{background:#eceef1}
html[data-theme="light"] .meta{color:#858a92}
html[data-theme="light"] .badge{background:rgba(22,24,27,.76);color:#fff}
html[data-theme="light"] .video-title,
html[data-theme="light"] .guess-title,
html[data-theme="light"] .related-title{color:#22252a}

html[data-theme="light"] .search-record-panel{background:#fff;border-color:#e1e3e7}
html[data-theme="light"] .search-record-title{color:#42464d}
html[data-theme="light"] .search-record-list a{background:#f4f5f7;border-color:#e0e2e6;color:#41464d}
html[data-theme="light"] .search-record-list a small{color:#8a8f97}
html[data-theme="light"] .search-record-list a:hover{background:#fff5e5;border-color:#f4a024;color:#c97800}

html[data-theme="light"] .filter-panel,
html[data-theme="light"] .discovery-strip,
html[data-theme="light"] .play-info-card,
html[data-theme="light"] .play-related-panel,
html[data-theme="light"] .side-panel{background:#fff;border-color:#e1e3e7}
html[data-theme="light"] .filter-label,
html[data-theme="light"] .discovery-label{color:#737981}
html[data-theme="light"] .filter-options a,
html[data-theme="light"] .tag-cloud.filter-options a,
html[data-theme="light"] .discovery-links a{background:#f4f5f7;border-color:#e0e2e6;color:#4d5259}
html[data-theme="light"] .filter-options a:hover,
html[data-theme="light"] .filter-options a.active{background:#f4a024;border-color:#f4a024;color:#201509}
html[data-theme="light"] .discovery-links a:hover{background:#fff5e5;border-color:#f4a024;color:#c97800}
html[data-theme="light"] .keyword-chip,
html[data-theme="light"] .score-chip{background:#fff5e5;border-color:#f0bd72;color:#b96d00}

html[data-theme="light"] .rank-tabs{border-color:#e1e3e7}
html[data-theme="light"] .rank-tabs a{color:#71767e}
html[data-theme="light"] .rank-tabs a:hover,
html[data-theme="light"] .rank-tabs a.active{color:#d98100}
html[data-theme="light"] .rank-badge{background:rgba(24,26,29,.82);border-color:rgba(255,255,255,.2);color:#fff}
html[data-theme="light"] .ranking-grid .ranking-card:nth-child(1) .rank-badge,
html[data-theme="light"] .ranking-grid .ranking-card:nth-child(2) .rank-badge,
html[data-theme="light"] .ranking-grid .ranking-card:nth-child(3) .rank-badge{background:#f4a024;border-color:#f4a024;color:#211609}

html[data-theme="light"] .empty-state{background:#fff;border-color:#d9dce1}
html[data-theme="light"] .empty-state-icon{background:#fff3df;color:#dc8300}
html[data-theme="light"] .empty-state p{color:#7c8189}
html[data-theme="light"] .pager a{background:#fff;border:1px solid #dfe2e6;color:#4c5158}
html[data-theme="light"] .pager a.active,
html[data-theme="light"] .pager a:hover{background:#f4a024;border-color:#f4a024;color:#1f1509}

/* The video canvas stays black in both themes for viewing comfort. */
html[data-theme="light"] .player-shell{background:#050505;border-color:#d9dce1;box-shadow:0 14px 40px rgba(27,31,36,.12)}
html[data-theme="light"] .play-title-row h1{color:#202328}
html[data-theme="light"] .play-facts span{background:#f2f3f5;color:#666c74}
html[data-theme="light"] .play-info-card .summary{border-color:#e4e6e9;color:#666c74}
html[data-theme="light"] .side-panel-heading span,
html[data-theme="light"] .play-now{color:#858a92}
html[data-theme="light"] .desktop-related.play-related-panel .related-card{border-color:#e6e8eb}
html[data-theme="light"] .play-guess-section{border-color:#e1e3e7}

html[data-theme="light"] .ranking-list{border-color:#e0e2e6}
html[data-theme="light"] .ranking-list li,
html[data-theme="light"] .side-item{border-color:#e6e8eb}
html[data-theme="light"] .summary{color:#666c74}
html[data-theme="light"] .site-footer{border-color:#e0e2e6;color:#7c8189}

@media(max-width:760px){
  html[data-theme="light"] .mobile-header-action{background:linear-gradient(180deg,#fff,#f0f1f3);border-color:#d9dce1;color:#41464d;box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 4px 14px rgba(35,39,45,.08)}
  html[data-theme="light"] .mobile-header-action.is-active{background:#fff3df;border-color:#efb65f;color:#bd7000}
  html[data-theme="light"] .mobile-search-panel{background:#fff;border-color:#e1e3e7;box-shadow:0 12px 28px rgba(35,39,45,.12)}
  html[data-theme="light"] .mobile-search-box .mobile-search-field input{background:#f3f4f6;border-color:#d9dce1;color:#202328}
  html[data-theme="light"] .mobile-search-field svg{color:#7d828a}
  html[data-theme="light"] .mobile-nav-backdrop{background:rgba(20,24,29,.42)}
  html[data-theme="light"] .mobile-nav-panel{background:linear-gradient(180deg,#fff 0%,#f5f6f8 100%);border-color:#dfe2e6;box-shadow:0 18px 40px rgba(30,34,39,.18)}
  html[data-theme="light"] .mobile-nav-shortcut{background:#fff;border-color:#dfe2e6;color:#3f444b}
  html[data-theme="light"] .mobile-nav-shortcut:active{background:#f0f1f3}
  html[data-theme="light"] .mobile-nav-group{background:#fff;border-color:#e0e2e6;box-shadow:0 5px 16px rgba(35,39,45,.07)}
  html[data-theme="light"] .mobile-nav-parent-link{color:#292d32}
  html[data-theme="light"] .mobile-nav-toggle{border-color:#e1e3e7;color:#777d85}
  html[data-theme="light"] .mobile-nav-group.is-open{background:#fffbf5;border-color:#efcf9f}
  html[data-theme="light"] .mobile-nav-group.is-open .mobile-nav-children-inner{border-color:#eadfce}
  html[data-theme="light"] .mobile-nav-child-grid a{background:#f4f5f7;border-color:#e0e2e6;color:#50555c}
  html[data-theme="light"] .mobile-nav-child-grid a:active{background:#e9ebee;color:#22252a}
  html[data-theme="light"] .mobile-nav-child-grid .mobile-nav-all{background:#fff4e2;border-color:#efc27d;color:#b86b00}
}

/* ===== Mobile-only infinite lists + mobile total-ranking layout ===== */
.mobile-infinite-status{display:none}

@media(max-width:760px){
  /* Mobile uses auto-loading; classic previous/page/next controls stay out of view. */
  .mobile-infinite-pager{display:none!important}

  /* Total ranking is special only on phones: one item per row, image above title.
     Desktop keeps the original 4-column ranking cards. */
  .hot-ranking-grid{grid-template-columns:minmax(0,1fr)!important;gap:20px}
  .hot-ranking-grid .hot-ranking-card{min-width:0}
  .hot-ranking-grid .thumb{width:100%;aspect-ratio:16/9;border-radius:8px}
  .hot-ranking-grid .thumb img{width:100%;height:100%;object-fit:cover}
  .hot-ranking-grid .rank-badge{display:none!important}
  .hot-ranking-grid .card-body{padding-top:8px}
  .hot-ranking-grid .video-title{font-size:15px;line-height:1.45;white-space:nowrap;display:block;overflow:hidden;text-overflow:ellipsis}
  .hot-ranking-grid .meta{display:none!important}

  .mobile-infinite-status{display:block;min-height:42px;padding:14px 0 4px;text-align:center;color:#777;font-size:12px}
  .mobile-infinite-status.is-loading::after{content:"正在加载更多…"}
  .mobile-infinite-status.is-done::after{content:"已经到底了"}
  .mobile-infinite-status.is-error::after{content:"加载失败，继续下滑重试"}
}

html[data-theme="light"] .mobile-infinite-status{color:#858a92}


/* ===== Address announcement modal ===== */
.address-modal[hidden]{display:none!important}
.address-modal{position:fixed;inset:0;z-index:100000;display:flex;align-items:center;justify-content:center;padding:20px}
.address-modal-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.76);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}
.address-modal-card{position:relative;z-index:1;width:min(520px,100%);padding:28px;border:1px solid rgba(255,255,255,.12);border-radius:18px;background:#17191d;box-shadow:0 24px 80px rgba(0,0,0,.5);color:#f5f5f5}
.address-modal-x{position:absolute;top:12px;right:14px;width:36px;height:36px;border:0;border-radius:50%;background:rgba(255,255,255,.08);color:#ddd;font-size:25px;line-height:1;cursor:pointer}
.address-modal-x:hover{background:rgba(255,255,255,.14);color:#fff}
.address-modal-badge{display:inline-flex;align-items:center;min-height:28px;padding:0 10px;border-radius:999px;background:rgba(244,160,36,.14);border:1px solid rgba(244,160,36,.34);color:#f5ab40;font-size:12px;font-weight:700}
.address-modal-card h2{margin:14px 0 8px;font-size:24px;line-height:1.25}
.address-modal-tip{margin:0 0 20px;color:#aeb2b9;font-size:14px;line-height:1.7}
.address-modal-list{display:grid;gap:10px}
.address-modal-row{display:flex;align-items:center;gap:14px;min-width:0;padding:12px 14px;border:1px solid #30343a;border-radius:10px;background:#202329}
.address-modal-row-permanent{border-color:rgba(244,160,36,.42);background:rgba(244,160,36,.07)}
.address-modal-label{flex:0 0 82px;color:#9ea3ab;font-size:13px}
.address-modal-row a,.address-modal-email-text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#f2a53a;font-size:14px;font-weight:700;text-decoration:none}
.address-modal-row a:hover{text-decoration:underline}
.address-modal-email-text{display:block;flex:1}
.address-modal-value{display:flex;align-items:center;gap:10px;min-width:0;flex:1}
.address-modal-value a{flex:1;min-width:0}
.address-modal-email{min-width:0;flex:1}
.address-modal-email-tip{margin-top:4px;color:#9ea3ab;font-size:12px;line-height:1.5}
.address-copy-btn{flex:0 0 auto;padding:6px 10px;border:1px solid #454a52;border-radius:7px;background:#2b2f35;color:#d8dbe0;font-size:12px;font-weight:700;line-height:1.2;cursor:pointer;transition:.16s ease}
.address-copy-btn:hover{border-color:#f4a024;color:#f4a024}
.address-copy-btn.is-copied{border-color:#4caf70;background:rgba(76,175,112,.12);color:#6fd18d}
.address-copy-btn.is-error{border-color:#d75b5b;background:rgba(215,91,91,.12);color:#ef8585}
.address-modal-confirm{width:100%;margin-top:18px;padding:12px 16px;border:0;border-radius:10px;background:#f4a024;color:#211609;font-size:15px;font-weight:800;cursor:pointer}
.address-modal-confirm:hover{filter:brightness(1.06)}
html.address-modal-visible,html.address-modal-visible body{overflow:hidden}
html[data-theme="light"] .address-modal-card{background:#fff;border-color:#e1e3e7;color:#23262b;box-shadow:0 24px 80px rgba(25,29,34,.24)}
html[data-theme="light"] .address-modal-x{background:#f0f1f3;color:#5e646c}
html[data-theme="light"] .address-modal-tip{color:#747a83}
html[data-theme="light"] .address-modal-row{background:#f6f7f8;border-color:#e0e3e7}
html[data-theme="light"] .address-modal-row-permanent{background:#fff8ec;border-color:#efc27d}
html[data-theme="light"] .address-copy-btn{background:#fff;border-color:#d2d6dc;color:#5e646c}
html[data-theme="light"] .address-copy-btn:hover{border-color:#d99531;color:#c37a12}
@media(max-width:560px){
  .address-modal{padding:14px}
  .address-modal-card{padding:24px 16px 18px;border-radius:14px}
  .address-modal-card h2{font-size:21px}
  .address-modal-row{display:block;padding:11px 12px}
  .address-modal-label{display:block;margin-bottom:5px}
  .address-modal-row a,.address-modal-email-text{display:block;font-size:13px}
  .address-modal-value{display:flex;align-items:center;gap:8px}
  .address-copy-btn{padding:6px 9px}
}


@media(min-width:761px){
  .search-box,
  .search-autocomplete{
    z-index:10001;
  }
  .search-autocomplete{
    position:absolute;
  }
}


/* ===== 2026-08 mobile single-feed mode (all pages except playback) ===== */
@media(max-width:760px){
  /* Navigation/discovery controls live in the hamburger drawer on phones. */
  .home-hero,
  .category-page .page-heading,
  .ranking-page .page-heading,
  .home-category-section .category-title,
  .home-mobile-extra,
  .category-page .category-subcategory-section,
  .category-page .content-section > .section-head--clean,
  .ranking-page .rank-tabs,
  .search-page .discovery-strip{
    display:none!important;
  }

  /* Every non-player video listing is one full-width card per row. */
  .video-grid{
    grid-template-columns:minmax(0,1fr)!important;
    gap:18px 0!important;
  }
  .video-grid .thumb{
    width:100%;
    height:auto;
    aspect-ratio:auto;
    display:block;
    background:transparent;
  }
  .video-grid .thumb img{
    display:block;
    width:auto;
    height:auto;
    max-width:100%;
    max-height:65vh;
    object-fit:contain;
    margin-left:auto;
    margin-right:auto;
  }
  .video-grid .card-body{padding-top:8px}
  .video-grid .video-title{
    display:block;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:15px;
    line-height:1.45;
  }

  /* Remove the visual breaks left by the desktop homepage category sections. */
  .home-category-section{margin:0!important}
  .mobile-unified-feed{margin:0;padding:0}
  .mobile-unified-feed .video-grid{margin:0}

  /* Playback page is explicitly excluded from the one-column rule. */
  .play-page .guess-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:18px 10px!important;
  }
  .play-page .guess-grid .thumb{aspect-ratio:16/10}
  .play-page .guess-grid .video-title{
    display:-webkit-box;
    white-space:normal;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
  }

  /* Ranking is now visually identical to the other mobile feeds. */
  .ranking-grid .rank-badge{display:none!important}
  .hot-ranking-grid .thumb img{object-fit:contain}

  /* Drawer shortcuts: day/month/year + theme. Home and hot live outside the drawer. */
  .mobile-nav-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .mobile-nav-shortcut{min-height:42px;padding:0 7px;font-size:13px}
}
