/* theme-app.css — 手机端走"App 感"：紧凑列表 + 迷你播放器 + 底部 Tab */
@media (max-width:760px){
  html,body{background:#070810!important}
  body.app-shell > aside{display:none!important}

  /* 顶栏：App Bar */
  body.app-shell > main > header{
    height:52px!important;padding:0 14px!important;
    background:rgba(9,10,17,.92)!important;
    -webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);
    border-bottom:1px solid rgba(255,255,255,.07)!important;
  }
  body.app-shell > main > header #shellTitle{font-size:17px!important;font-weight:600!important;letter-spacing:.02em!important}
  body.app-shell > main > header .next-command-trigger,
  body.app-shell > main > header #refresh,
  body.app-shell > main > header #notificationPreference{display:none!important}
  body.app-shell > main > header #loginShortcut{
    height:30px!important;padding:0 12px!important;border-radius:9px!important;
    font-size:12px!important;background:#fff!important;color:#0a0a12!important;font-weight:600!important;
  }

  /* 内容：贴近 App 的密度 */
  body.app-shell > main > #surfaces{padding:0!important;background:transparent!important}
  body.next-ui.community{padding:0!important}

  /* 英雄区收缩为一张紧凑卡片 */
  body.next-ui.community .rev-heading{
    padding:16px 16px 14px!important;margin:10px 12px 12px!important;
    border-radius:16px!important;border:1px solid rgba(255,255,255,.10)!important;
    background:linear-gradient(150deg,rgba(255,255,255,.10),rgba(255,255,255,.035))!important;
    -webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);
  }
  body.next-ui.community .rev-heading > span{display:none!important}
  body.next-ui.community .rev-heading h1{font-size:20px!important;line-height:1.3!important;margin:0!important}
  body.next-ui.community .rev-heading p{display:none!important}
  body.next-ui.community .rev-heading a,body.next-ui.community .rev-heading button{
    margin-top:10px!important;height:34px!important;padding:0 14px!important;
    font-size:12px!important;border-radius:10px!important;
  }

  /* 风格筛选：横滑小胶囊 */
  body.next-ui.community .style-tabs{
    margin:0 0 10px!important;padding:0 12px!important;gap:6px!important;
    overflow-x:auto!important;flex-wrap:nowrap!important;
  }
  body.next-ui.community .style-tabs button{
    height:28px!important;padding:0 12px!important;border-radius:8px!important;
    font-size:11.5px!important;flex:none;
  }

  /* 作品：列表行（左图右文），不再是超大块 */
  body.next-ui.community .feed{
    display:flex!important;flex-direction:column!important;
    gap:8px!important;padding:0 12px!important;
  }
  body.next-ui.community .feed .post{
    display:flex!important;flex-direction:row!important;align-items:center!important;
    gap:12px!important;padding:8px!important;
    border-radius:14px!important;
    background:rgba(255,255,255,.045)!important;
    border:1px solid rgba(255,255,255,.08)!important;
  }
  body.next-ui.community .post-cover-wrap{
    width:60px!important;height:60px!important;flex:none;
    aspect-ratio:auto!important;border-radius:11px!important;
  }
  body.next-ui.community .post-cover-wrap::before{display:none!important}
  body.next-ui.community .post-cover-wrap .play{
    width:26px!important;height:26px!important;opacity:.95!important;transform:none!important;
    left:auto!important;top:auto!important;right:4px!important;bottom:4px!important;
  }
  body.next-ui.community .post-cover-wrap .play svg{width:12px;height:12px}
  body.next-ui.community .post-info{
    position:static!important;left:auto;right:auto;bottom:auto;
    flex:1;min-width:0;display:flex!important;flex-direction:column;gap:3px;
  }
  body.next-ui.community .post-info strong{font-size:13.5px!important;text-shadow:none!important}
  body.next-ui.community .post-info small{font-size:10.5px!important}
  body.next-ui.community .post-style{
    position:static!important;align-self:flex-start;margin-top:2px!important;
    padding:1px 7px!important;font-size:9.5px!important;border-radius:6px!important;
    background:rgba(255,255,255,.08)!important;border:0!important;
  }
  body.next-ui.community .feed .post-actions{display:none!important}

  /* 榜单：折叠成紧凑列表 */
  body.next-ui.community .rank-list{margin:10px 12px 16px!important;padding:10px 12px!important;border-radius:16px!important}
  body.next-ui.community .rank-list li{padding:9px 0!important;gap:10px!important}
  body.next-ui.community .rank-info strong{font-size:12.5px!important}
  body.next-ui.community .rank-info small{font-size:10px!important}

  /* 迷你播放器 + Tab */
  body.app-shell > footer{
    position:fixed!important;left:8px!important;right:8px!important;
    bottom:calc(56px + env(safe-area-inset-bottom))!important;
    height:56px!important;padding:0 10px!important;gap:10px!important;
    border-radius:14px!important;border:1px solid rgba(255,255,255,.12)!important;
    background:rgba(18,18,28,.92)!important;
    -webkit-backdrop-filter:blur(22px);backdrop-filter:blur(22px);
    box-shadow:0 12px 30px rgba(0,0,0,.5)!important;
  }
  body.app-shell > footer #footerSpectrum{display:none!important}
  body.app-shell > footer #art{width:40px!important;height:40px!important;border-radius:10px!important}
  body.app-shell > footer .metadata strong{font-size:12px!important}
  body.app-shell > footer .metadata small{display:none!important}
  body.app-shell > footer .transport > .seek-wrap{display:none!important}
  body.app-shell > footer #prev,body.app-shell > footer #next{display:none!important}
  body.app-shell > footer #toggle{width:36px!important;height:36px!important}
  body.app-shell > footer .volume{display:none!important}
  body.app-shell > main > #surfaces{padding-bottom:150px!important}

  body.app-shell .mobile-nav{
    position:fixed!important;left:0;right:0;bottom:0;z-index:40;height:calc(56px + env(safe-area-inset-bottom))!important;
    display:flex!important;align-items:flex-start;justify-content:space-around;
    padding-top:8px!important;padding-bottom:env(safe-area-inset-bottom)!important;
    background:rgba(8,9,15,.97)!important;
    -webkit-backdrop-filter:blur(24px);backdrop-filter:blur(24px);
    border-top:1px solid rgba(255,255,255,.07)!important;
  }
  body.app-shell .mobile-nav button{
    display:flex!important;flex-direction:column;align-items:center;gap:3px;
    font-size:10px!important;font-weight:500!important;
    color:rgba(255,255,255,.42)!important;background:none!important;border:0!important;
    padding:0 14px!important;
  }
  body.app-shell .mobile-nav button[aria-current="page"]{color:#fff!important}
  body.app-shell .mobile-nav button::before{
    content:"";width:20px;height:20px;border-radius:7px;
    background:rgba(255,255,255,.10);
  }
  body.app-shell .mobile-nav button[aria-current="page"]::before{
    background:linear-gradient(140deg,#fff,#dcd8ff);
  }
}

/* ===== 硬覆盖（压过 theme-content 同权重规则） ===== */
@media (max-width:760px){
  html body.next-ui.community .rev-heading{
    padding:14px 14px 12px!important;margin:8px 12px 10px!important;
    border-radius:16px!important;border:1px solid rgba(255,255,255,.10)!important;
    background:linear-gradient(150deg,rgba(255,255,255,.10),rgba(255,255,255,.03))!important;
  }
  html body.next-ui.community .rev-heading > span{display:none!important}
  html body.next-ui.community .rev-heading h1{font-size:19px!important;line-height:1.32!important;margin:0!important}
  html body.next-ui.community .rev-heading p{display:none!important}
  html body.next-ui.community .rev-heading a,
  html body.next-ui.community .rev-heading button{
    margin-top:10px!important;height:32px!important;padding:0 13px!important;
    font-size:11.5px!important;border-radius:9px!important;
  }
  html body.next-ui.community .rank-list{
    margin:8px 12px 14px!important;padding:8px 12px!important;border-radius:16px!important;
  }
  html body.next-ui.community .rank-list li{padding:9px 0!important;gap:9px!important}
  html body.next-ui.community .rank-info strong{font-size:12.5px!important}
  html body.next-ui.community .rank-info small{font-size:9.5px!important}
  html body.next-ui.community .rank-likes{font-size:10.5px!important}
  html body.next-ui.community .rank-tabs button{height:26px!important;padding:0 11px!important;font-size:11px!important}
  html body.next-ui.community .style-tabs{padding:0 12px!important;margin:0 0 8px!important}
  html body.next-ui.community .style-tabs button{height:27px!important;padding:0 11px!important;font-size:11px!important}
  html body.next-ui.community .feed{padding:0 12px!important;gap:8px!important}
}
/* 移动端：真正的英雄区（next-discovery-hero） */
@media (max-width:760px){
  html body.next-ui.community .next-discovery-hero{
    margin:8px 12px 10px!important;padding:14px 14px 13px!important;
    border-radius:16px!important;border:1px solid rgba(255,255,255,.10)!important;
  }
  html body.next-ui.community .next-discovery-hero .next-kicker{
    font-size:8.5px!important;letter-spacing:.18em!important;margin-bottom:8px!important;
  }
  html body.next-ui.community .next-discovery-hero h1{
    font-size:19px!important;line-height:1.34!important;margin:0!important;
  }
  html body.next-ui.community .next-discovery-hero h1 em{font-style:normal!important}
  html body.next-ui.community .next-discovery-hero p{display:none!important}
  html body.next-ui.community .next-discovery-hero button{
    margin-top:10px!important;height:32px!important;padding:0 13px!important;
    font-size:11.5px!important;border-radius:9px!important;
  }
  html body.next-ui.community main.community-main{padding:6px 0 120px!important}
}
/* 移动端顺序：英雄 → 筛选 → 作品流 → 榜单 */
@media (max-width:760px){
  html body.next-ui.community main.community-main{display:flex!important;flex-direction:column!important}
  html body.next-ui.community .next-discovery-hero{order:1!important}
  html body.next-ui.community .style-tabs{order:2!important}
  html body.next-ui.community .feed{order:3!important}
  html body.next-ui.community section:has(.rank-list){order:4!important;margin-top:6px!important}
  html body.next-ui.community .rank-list{order:4!important}
}
/* 移动端作品流：4 列正方形专辑图，播放键居中 */
@media (max-width:760px){
  html body.next-ui.community .feed{
    display:grid!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:7px!important;
    padding:0 12px!important;
  }
  html body.next-ui.community .feed .post{
    display:block!important;position:relative!important;
    padding:0!important;background:none!important;border:0!important;
    border-radius:12px!important;overflow:hidden!important;
  }
  html body.next-ui.community .feed .post-cover-wrap{
    width:100%!important;height:auto!important;aspect-ratio:1/1!important;
    border-radius:12px!important;
  }
  html body.next-ui.community .feed .post-cover-wrap::before{
    background:linear-gradient(180deg,rgba(0,0,0,0) 55%,rgba(6,6,12,.45))!important;
  }
  html body.next-ui.community .feed .post-info{display:none!important}
  html body.next-ui.community .feed .post-style{display:none!important}
  html body.next-ui.community .feed .post-actions{display:none!important}
  html body.next-ui.community .feed .post-cover-wrap .play{
    position:absolute!important;
    left:50%!important;top:50%!important;right:auto!important;bottom:auto!important;
    transform:translate(-50%,-50%)!important;
    width:26px!important;height:26px!important;
    border-radius:50%!important;
    background:rgba(10,10,16,.55)!important;
    border:1px solid rgba(255,255,255,.55)!important;
    -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);
    display:flex!important;align-items:center!important;justify-content:center!important;
    opacity:.95!important;
  }
  html body.next-ui.community .feed .post-cover-wrap .play svg{width:10px!important;height:10px!important}
}
/* 播放键图标：用纯 CSS 三角，避免原图标错位 */
@media (max-width:760px){
  html body.next-ui.community .feed .post-cover-wrap .play svg{display:none!important}
  html body.next-ui.community .feed .post-cover-wrap .play::after{
    content:"";display:block;width:0;height:0;
    border-left:7px solid rgba(255,255,255,.96);
    border-top:4.5px solid transparent;
    border-bottom:4.5px solid transparent;
    margin-left:2px;
  }
}
/* 移动端音乐市场：两列方格 */
@media (max-width:760px){
  html body.market-page .market-header{padding:10px 12px 8px!important}
  html body.market-page .rev-heading{padding:14px!important;border-radius:16px!important}
  html body.market-page .rev-heading h1{font-size:20px!important;line-height:1.25!important;margin:0 0 4px!important}
  html body.market-page .rev-heading p{display:none!important}
  html body.market-page .rev-heading span{font-size:10px!important;letter-spacing:.18em!important}
  html body.market-page .market-tabs{
    margin:10px 0 0!important;padding:0!important;gap:6px!important;
    overflow-x:auto!important;flex-wrap:nowrap!important;scrollbar-width:none!important;
  }
  html body.market-page .market-tabs::-webkit-scrollbar{display:none}
  html body.market-page .market-tabs button{
    flex:0 0 auto!important;height:32px!important;padding:0 14px!important;
    border-radius:999px!important;font-size:12.5px!important;
  }
  html body.market-page main{padding:10px 12px 90px!important}
  html body.market-page .market-grid{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:12px!important;
  }
  html body.market-page .market-card{
    padding:0!important;border-radius:16px!important;overflow:hidden!important;
    background:rgba(255,255,255,.055)!important;
    border:1px solid rgba(255,255,255,.08)!important;
    display:flex!important;flex-direction:column!important;
  }
  html body.market-page .mc-cover{
    width:100%!important;aspect-ratio:1/1!important;height:auto!important;
    position:relative!important;border-radius:16px 16px 0 0!important;overflow:hidden!important;
  }
  html body.market-page .mc-cover img{width:100%!important;height:100%!important;object-fit:cover!important}
  html body.market-page .mc-cover .btn-trial{
    position:absolute!important;left:50%!important;top:50%!important;
    transform:translate(-50%,-50%)!important;
    width:34px!important;height:34px!important;border-radius:50%!important;
    background:rgba(10,10,16,.5)!important;border:1px solid rgba(255,255,255,.5)!important;
    -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);
    font-size:0!important;display:flex!important;align-items:center!important;justify-content:center!important;
  }
  html body.market-page .mc-cover .btn-trial::after{
    content:"";display:block;width:0;height:0;margin-left:2px;
    border-left:9px solid #fff;border-top:6px solid transparent;border-bottom:6px solid transparent;
  }
  html body.market-page .mc-body{padding:9px 10px 10px!important;gap:2px!important}
  html body.market-page .mc-title{font-size:13px!important;line-height:1.3!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  html body.market-page .mc-meta{display:none!important}
  html body.market-page .mc-foot{margin-top:7px!important;display:flex!important;align-items:center!important;justify-content:space-between!important}
  html body.market-page .mc-price{font-size:12.5px!important;color:#cfc7ff!important}
  html body.market-page .mc-foot .btn-buy{
    height:26px!important;padding:0 11px!important;border-radius:999px!important;font-size:11.5px!important;
    background:rgba(255,255,255,.92)!important;color:#0a0a10!important;font-weight:600!important;border:0!important;
  }
}
/* 移动端作品流改为 2 列，露出作品名与作者 */
@media (max-width:760px){
  html body.next-ui.community .feed{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:14px 12px!important;
    padding:0 12px!important;
  }
  html body.next-ui.community .feed .post{
    overflow:visible!important;border-radius:14px!important;
  }
  html body.next-ui.community .feed .post-cover-wrap{
    border-radius:14px!important;
  }
  html body.next-ui.community .feed .post-cover-wrap .play{
    width:30px!important;height:30px!important;
  }
  html body.next-ui.community .feed .post-info{
    display:block!important;position:static!important;
    margin:7px 2px 0!important;padding:0!important;
    background:none!important;border:0!important;
    -webkit-backdrop-filter:none!important;backdrop-filter:none!important;
  }
  html body.next-ui.community .feed .post-info strong{
    display:block!important;font-size:12.5px!important;line-height:1.35!important;
    font-weight:600!important;color:#eef1f7!important;
    overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;
    margin:0!important;
  }
  html body.next-ui.community .feed .post-info small{
    display:block!important;font-size:10.5px!important;line-height:1.4!important;
    color:rgba(233,237,245,.52)!important;
    overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;
    margin:2px 0 0!important;
  }
  html body.next-ui.community .feed .post-info .post-style{display:none!important}
  html body.next-ui.community .feed .post-actions{display:none!important}
}
/* PC 端：作品流自适应列宽（1440 约 8 列），播放键加大 */
@media (min-width:761px){
  html body.next-ui.community #communityFeed{
    grid-template-columns:repeat(auto-fill,minmax(130px,1fr))!important;
    gap:22px 16px!important;
  }
  html body.next-ui.community .post-cover-wrap .play{
    width:42px!important;height:42px!important;
    background:rgba(12,16,26,.55)!important;
    border:1px solid rgba(255,255,255,.28)!important;
    -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);
  }
  html body.next-ui.community .post-cover-wrap .play svg{width:16px!important;height:16px!important}
  html body.next-ui.community .post-cover-wrap:hover .play{background:rgba(12,16,26,.72)!important}
  html body.next-ui.community .post-info strong{font-size:13px!important}
  html body.next-ui.community .post-info small{font-size:11px!important}
}