/* 蘑菇短剧网页版。配色取 App 的 theme.dart，版式参考 ReelShort：深色底、首屏大图轮播、横向剧卡行、播放页左播放器右选集。 */
:root {
  --bg: #0e0e11;
  --bg2: #141418;
  --card: #1b1b1e;
  --card2: #242428;
  --line: rgba(255, 255, 255, .08);
  --primary: #ff4f72;
  --primary-deep: #ff2e63;
  --gold: #feb700;
  --green: #2bd07b;
  --t1: #fff;
  --t2: rgba(255, 255, 255, .7);
  --t3: rgba(255, 255, 255, .45);
  --t4: rgba(255, 255, 255, .3);
  --gutter: clamp(16px, 4vw, 56px);
  --radius: 10px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { background: var(--bg); color: var(--t1); }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font: 14px/1.5 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
main { flex: 1; }

/* ── 顶栏 */
.top {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(to bottom, rgba(14, 14, 17, .96), rgba(14, 14, 17, .86));
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}
.top-in { height: 80px; display: flex; align-items: center; gap: 40px; padding: 0 var(--gutter); max-width: 1600px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 24px; letter-spacing: .5px; flex: none; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand span { background: linear-gradient(90deg, #fff, #ffc2cf); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand.small { font-size: 16px; }
.brand.small img { width: 26px; height: 26px; }
.nav { display: flex; gap: 32px; }
.nav a { color: rgba(255, 255, 255, .85); font-size: 18px; font-weight: 600; padding: 26px 0; position: relative; transition: color .15s; }
.nav a:hover { color: #fff; }
.nav a.on { color: #fff; font-weight: 700; }
.nav a.on::after { content: ""; position: absolute; left: 50%; bottom: 16px; width: 18px; height: 3px; margin-left: -9px; border-radius: 3px; background: var(--primary); }
.search { margin-left: auto; display: flex; align-items: center; background: rgba(255, 255, 255, .08); border: 1px solid transparent; border-radius: 999px; height: 44px; padding: 0 6px 0 18px; width: min(320px, 30vw); transition: border-color .15s, background .15s; }
.search:focus-within { border-color: rgba(255, 79, 114, .6); background: rgba(255, 255, 255, .1); }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; font-size: 15px; }
.search input::placeholder { color: var(--t3); }
.search input::-webkit-search-cancel-button { display: none; }
.search button { width: 32px; height: 32px; display: grid; place-items: center; }
.search svg { width: 20px; height: 20px; fill: none; stroke: var(--t2); stroke-width: 2; stroke-linecap: round; }
.acct { display: flex; align-items: center; gap: 12px; flex: none; }
.coin-pill { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; font-size: 16px; border-radius: 999px; background: rgba(254, 183, 0, .12); color: var(--gold); font-weight: 700; }
.coin-pill i, .coin { display: inline-block; width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffe38a, #feb700 60%, #d98a00); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .25); flex: none; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #ff7a97, #ff2e63); display: grid; place-items: center; font-weight: 700; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; padding: 0 20px; border-radius: 999px; font-weight: 700; white-space: nowrap; transition: transform .1s, filter .15s, background .15s; }
.btn:active { transform: scale(.97); }
.btn-primary { background: linear-gradient(90deg, var(--primary), var(--primary-deep)); color: #fff; box-shadow: 0 6px 18px rgba(255, 46, 99, .3); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: rgba(255, 255, 255, .1); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .16); }
.btn-gold { background: linear-gradient(90deg, #ffd66b, #feb700); color: #3a2400; }
.btn-lg { height: 48px; padding: 0 32px; font-size: 16px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn svg { width: 18px; height: 18px; fill: currentColor; }

#acct .btn { height: 42px; padding: 0 24px; font-size: 16px; }

/* ── 首屏轮播 */
.hero { position: relative; height: clamp(420px, 62vh, 620px); overflow: hidden; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; pointer-events: none; }
.hero-slide.on { opacity: 1; pointer-events: auto; }
.hero-bg { position: absolute; inset: -40px; background-size: cover; background-position: center 30%; filter: blur(34px) brightness(.5) saturate(1.3); transform: scale(1.1); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 14, 17, .95) 0%, rgba(14, 14, 17, .6) 45%, rgba(14, 14, 17, .15) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 35%); }
.hero-in { position: relative; height: 100%; padding: 0 6vw; display: flex; align-items: center; gap: clamp(24px, 5vw, 80px); }
.hero-text { flex: 1; min-width: 0; max-width: 620px; padding-bottom: 20px; }
.hero-title { font-size: clamp(28px, 4vw, 48px); font-weight: 900; line-height: 1.15; margin: 0 0 16px; text-shadow: 0 2px 20px rgba(0, 0, 0, .4); }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 4px; font-size: 12px; font-weight: 600; background: rgba(255, 255, 255, .12); color: var(--t2); }
.tag.hot { background: rgba(255, 79, 114, .18); color: #ff8fa6; }
.tag.gold { background: rgba(254, 183, 0, .16); color: var(--gold); }
.tag.green { background: rgba(43, 208, 123, .15); color: var(--green); }
.hero-desc { color: var(--t2); font-size: 15px; line-height: 1.75; margin: 0 0 28px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-poster { flex: none; width: clamp(200px, 22vw, 300px); aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, .6); transform: perspective(900px) rotateY(-6deg); transition: transform .4s; }
.hero-poster:hover { transform: perspective(900px) rotateY(0); }
.hero-poster img { width: 100%; height: 100%; object-fit: cover; }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 34px; padding: 0 6vw; display: flex; gap: 8px; }
.hero-dots button { width: 8px; height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .3); transition: width .3s, background .3s; }
.hero-dots button.on { width: 28px; background: var(--primary); }

/* ── 剧卡行 */
.wrap { max-width: 1600px; margin: 0 auto; padding: 0 var(--gutter); }
.section { margin: 36px auto 8px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.sec-head h2 { margin: 0; font-size: 22px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.sec-head h2::before { content: ""; width: 4px; height: 20px; border-radius: 3px; background: linear-gradient(var(--primary), var(--primary-deep)); }
.sec-head a { color: var(--t3); font-size: 14px; }
.sec-head a:hover { color: #fff; }
.row { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(140px, 15vw, 200px); gap: 16px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 10px; scrollbar-width: none; }
.row::-webkit-scrollbar { display: none; }
.row > * { scroll-snap-align: start; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(140px, 15vw, 190px), 1fr)); gap: 24px 16px; }

.card { display: block; min-width: 0; color: inherit; }
.card-cover { position: relative; aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden; background: #000; }
.card-cover img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; top: 8px; left: 8px; z-index: 2; padding: 1px 7px; font-size: 12px; line-height: 18px; font-weight: 700; border-radius: 6px; color: #fff; }
.badge.top { background: linear-gradient(135deg, #ffb300, #ff6a00); }
.badge.new { background: #e52e2e; }
.badge.soon { background: #5b5bf0; }
.card-title { margin-top: 12px; font-size: 14px; color: rgba(255, 255, 255, .8); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-sub { margin-top: 8px; font-size: 12px; color: rgba(255, 255, 255, .5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 1280px) { .card-title { font-size: 16px; } .card-sub { font-size: 14px; } }

/* ── 首页楼层 + 滑轨（照 ReelShort：两侧 6vw，≥1680 六张 / ≥1024 五张 / ≥768 四张 / 更窄三张，右侧露半张） */
.floors { padding-bottom: 20px; }
.floor { margin-top: 40px; }
.floor .sec-head { padding: 0 6vw; margin-bottom: 16px; align-items: center; }
.floor .sec-head h2 { font-size: 24px; }
.floor .sec-head h2::before { display: none; }
.floor .sec-head a { display: flex; align-items: center; gap: 2px; font-size: 16px; color: rgba(255, 255, 255, .5); }
.floor .sec-head a svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.slider { --per: 5; --gap: 1.25vw; position: relative; padding: 0 6vw; }
@media (min-width: 1680px) { .slider { --per: 6; } }
@media (max-width: 1023px) { .slider { --per: 4; } }
@media (max-width: 767px) { .slider { --per: 3; } }
.sview { overflow-x: clip; overflow-y: visible; margin-right: -6vw; }
.strack { display: flex; gap: var(--gap); width: calc(100% - 6vw); transition: transform .5s; will-change: transform; }
.sitem { flex: 0 0 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per)); min-width: 0; transition: opacity .3s; }
.sitem.peek { opacity: .5; pointer-events: none; }
.sbtn { position: absolute; top: var(--btn-y, 40%); z-index: 5; width: 56px; height: 56px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .7); background: rgba(0, 0, 0, .1) center / 28px no-repeat; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E"); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); opacity: 0; transition: opacity .2s, background-color .2s, border-color .2s; }
.sbtn.next { right: calc(.83vw); transform: translateY(-50%); }
.sbtn.prev { left: calc(.83vw); transform: translateY(-50%) scaleX(-1); }
.slider:hover .sbtn { opacity: .85; }
.slider .sbtn:hover { opacity: 1; background-color: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .9); }
@media (hover: none), (pointer: coarse) {
  .sview { overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; margin: 0 -6vw; padding: 0 6vw; scroll-padding: 0 6vw; }
  .sview::-webkit-scrollbar { display: none; }
  .strack { width: max-content; transform: none !important; gap: 10px; }
  .sitem { flex-basis: 30vw; scroll-snap-align: start; }
  .sbtn { display: none; }
}

/* ── 悬停卡 */
.hovercard { position: absolute; z-index: 40; pointer-events: auto; }
.hc-panel { position: absolute; inset: 0; border-radius: 24px; overflow: hidden; background: #292929; border: 1px solid rgba(255, 255, 255, .1); opacity: 0; transition: opacity .4s ease-out; box-shadow: 0 24px 60px rgba(0, 0, 0, .55); }
.hc-blur { position: absolute; inset: -48px; background-size: cover; background-position: center; filter: blur(47px); transform: scale(1.08); }
.hc-mask { position: absolute; inset: 0; background: rgba(0, 0, 0, .3); }
.hc-cover { position: relative; display: block; margin: 8px 8px 0; border-radius: 16px; overflow: hidden; transform-origin: center bottom; transform: translateX(var(--hc-shift, 0)) scale(var(--hc-start, .94)); transition: transform .3s ease-out; }
.hc-cover img { width: 100%; height: 100%; object-fit: cover; }
.hc-body { position: relative; padding: 12px 16px 16px; display: flex; flex-direction: column; opacity: 0; transition: opacity .3s ease-out; }
.hc-title { font-size: 16px; line-height: 1.5; color: #fff; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hc-sub { margin-top: 6px; font-size: 13px; color: rgba(255, 255, 255, .5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hc-desc { margin: 10px 0 0; font-size: 13px; line-height: 1.5; color: rgba(255, 255, 255, .5); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 0; }
.hc-desc:empty { display: none; }
.hc-acts { display: flex; gap: 8px; margin-top: 16px; }
.hc-play, .hc-ico { height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 24px; transition: background-color .16s ease-out, border-color .16s ease-out, color .16s ease-out; }
.hc-play { flex: 1; min-width: 0; gap: 4px; padding: 0 12px; background: #fff; color: #000; font-size: 16px; font-weight: 700; white-space: nowrap; }
.hc-play:hover { background: var(--primary-deep); color: #fff; }
.hc-play svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.hc-play span { overflow: hidden; text-overflow: ellipsis; }
.hc-ico { width: 48px; flex: none; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .15); color: rgba(255, 255, 255, .9); }
.hc-ico:hover { background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .9); }
.hc-ico svg { width: 20px; height: 20px; fill: currentColor; }
.hc-ico.on { color: #ffb423; }
@media (max-width: 1679px) { .hc-play { flex: 0 0 48px; padding: 0; } .hc-play span { display: none; } }
.hovercard.open .hc-panel, .hovercard.open .hc-body { opacity: 1; }
.hovercard.open .hc-cover { transform: none; }

/* ── 专题页（照 ReelShort shelf：两列横卡） */
.wrap.shelf { max-width: none; padding: 28px 6vw 0; }
.shelf .bc { margin-bottom: 20px; font-size: 14px; }
.shelf-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.shelf-head h1 { margin: 0; font-size: 20px; font-weight: 700; }
.shelf-head span { color: rgba(255, 255, 255, .5); font-size: 13px; }
.hgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.hcard { display: flex; background: #161616; border-radius: 16px; overflow: hidden; min-width: 0; transition: background .2s; }
.hcard:hover { background: #1e1e1e; }
.hk-img { position: relative; flex: none; width: 192px; aspect-ratio: 3 / 4; background: #000; }
.hk-img img { width: 100%; height: 100%; object-fit: cover; }
.hk-info { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 22px 20px 20px; }
.hk-title { font-size: 17px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hk-sub { margin-top: 6px; font-size: 13px; color: rgba(255, 255, 255, .45); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hk-desc { margin: 10px 0 0; font-size: 13px; line-height: 1.55; color: rgba(255, 255, 255, .55); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hk-foot { margin-top: auto; display: flex; align-items: center; gap: 18px; padding-top: 12px; }
.hk-st { display: flex; align-items: center; gap: 4px; color: rgba(255, 255, 255, .55); font-size: 13px; }
.hk-st svg { width: 14px; height: 14px; fill: currentColor; }
.hk-play { margin-left: auto; display: flex; align-items: center; justify-content: center; gap: 6px; height: 48px; min-width: 160px; padding: 0 20px; border-radius: 24px; background: rgba(255, 255, 255, .9); color: #000; font-size: 16px; font-weight: 700; transition: background .16s, color .16s; }
.hk-play:hover { background: var(--primary-deep); color: #fff; }
.hk-play svg { width: 16px; height: 16px; fill: currentColor; }
@media (max-width: 1100px) { .hgrid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) {
  .hgrid { gap: 12px; }
  .hk-img { width: 104px; }
  .hk-info { padding: 12px 14px; }
  .hk-title { font-size: 15px; }
  .hk-play { min-width: 0; height: 36px; padding: 0 16px; font-size: 14px; }
}

/* ── 分类 */
.page-title { font-size: 26px; font-weight: 800; margin: 32px 0 20px; }
.filters { background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 8px 20px; margin-bottom: 28px; }
.frow { display: flex; gap: 16px; padding: 10px 0; align-items: flex-start; }
.frow + .frow { border-top: 1px dashed var(--line); }
.frow > b { flex: none; width: 48px; color: var(--t3); font-weight: 500; line-height: 30px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 30px; padding: 0 14px; border-radius: 999px; color: var(--t2); font-size: 13px; transition: background .15s, color .15s; }
.chip:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.chip.on { background: rgba(255, 79, 114, .15); color: var(--primary); font-weight: 700; }
.count { color: var(--t3); margin: -8px 0 16px; font-size: 13px; }
.more { display: flex; justify-content: center; margin: 32px 0; }
.empty { text-align: center; color: var(--t3); padding: 80px 0; }
.empty .ico { font-size: 44px; margin-bottom: 8px; opacity: .6; }

/* ── 播放页 */
.watch { display: grid; grid-template-columns: minmax(0, auto) minmax(320px, 1fr); gap: 32px; padding-top: 28px; align-items: start; }
.crumbs { grid-column: 1 / -1; color: var(--t3); font-size: 13px; margin-bottom: -12px; }
.crumbs a:hover { color: #fff; }
.player { position: relative; height: min(78vh, 820px); aspect-ratio: 9 / 16; max-width: 100%; background: #000; border-radius: 14px; overflow: hidden; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.player.landscape { aspect-ratio: 16 / 9; height: auto; width: min(100%, 900px); }
.player video { width: 100%; height: 100%; object-fit: contain; background: #000; display: block; }
.player-cover { position: absolute; inset: 0; background-size: cover; background-position: center; }
.player-cover::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .35); }
.big-play { position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%; background: rgba(255, 79, 114, .92); display: grid; place-items: center; z-index: 3; box-shadow: 0 10px 30px rgba(255, 46, 99, .45); }
.big-play svg { width: 30px; height: 30px; fill: #fff; margin-left: 5px; }
.trial-bar { position: absolute; top: 12px; left: 12px; z-index: 4; padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 0, .6); font-size: 12px; color: var(--gold); pointer-events: none; }
.ep-flag { position: absolute; top: 12px; right: 12px; z-index: 4; padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 0, .55); font-size: 12px; pointer-events: none; }
.lockwall { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center; background: rgba(0, 0, 0, .55); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.lockwall .lk { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .1); font-size: 26px; }
.lockwall h3 { margin: 0; font-size: 20px; }
.lockwall p { margin: 0; color: var(--t2); font-size: 14px; }
.lockwall .price { font-size: 16px; color: #fff; display: flex; align-items: center; gap: 6px; }
.lockwall .price b { color: var(--gold); font-size: 22px; }
.lockwall .actions { display: flex; flex-direction: column; gap: 10px; width: min(280px, 100%); margin-top: 6px; }
.lockwall .actions .btn { width: 100%; }
.lockwall small { color: var(--t3); }
.lockwall a.link { color: var(--t2); text-decoration: underline; text-underline-offset: 3px; font-size: 13px; }
.next-tip { position: absolute; left: 50%; bottom: 70px; transform: translateX(-50%); z-index: 4; background: rgba(0, 0, 0, .7); padding: 8px 16px; border-radius: 999px; font-size: 13px; white-space: nowrap; }

.side { min-width: 0; }
.side h1 { margin: 0 0 10px; font-size: 26px; line-height: 1.3; font-weight: 800; }
.side .meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.side .stat { color: var(--t3); font-size: 13px; }
.ep-now { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; }
.ep-now b { display: block; margin-bottom: 2px; }
.ep-now span { color: var(--t2); font-size: 13px; }
.desc { color: var(--t2); line-height: 1.8; margin: 0 0 8px; }
.desc.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.link-btn { color: var(--primary); font-size: 13px; }
.creator { display: flex; align-items: center; gap: 10px; margin: 16px 0; color: var(--t2); font-size: 13px; }
.creator .avatar { width: 30px; height: 30px; font-size: 13px; }
.creator .v { color: #4ea8ff; font-size: 12px; }
.side-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0 24px; }
.side-actions .btn.on { background: rgba(255, 79, 114, .16); color: var(--primary); }
.eps-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.eps-head h3 { margin: 0; font-size: 17px; }
.eps-head span { color: var(--t3); font-size: 13px; }
.ranges { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.ranges button { height: 28px; padding: 0 12px; border-radius: 6px; background: rgba(255, 255, 255, .06); color: var(--t2); font-size: 13px; }
.ranges button.on { background: rgba(255, 79, 114, .15); color: var(--primary); font-weight: 700; }
.eps { display: grid; grid-template-columns: repeat(auto-fill, minmax(54px, 1fr)); gap: 8px; max-height: 360px; overflow-y: auto; padding-right: 4px; }
.ep { position: relative; height: 44px; border-radius: 8px; background: var(--card2); font-weight: 700; font-size: 15px; transition: background .15s; }
.ep:hover { background: #303036; }
.ep.on { background: linear-gradient(135deg, var(--primary), var(--primary-deep)); color: #fff; }
.ep.on::before { content: ""; position: absolute; left: 6px; bottom: 6px; width: 10px; height: 8px; background: linear-gradient(90deg, #fff 2px, transparent 2px 4px, #fff 4px 6px, transparent 6px 8px, #fff 8px) bottom / 100% 100% no-repeat; opacity: .9; animation: eq .9s infinite alternate; }
@keyframes eq { from { transform: scaleY(.5); transform-origin: bottom; } to { transform: scaleY(1); transform-origin: bottom; } }
.ep .mk { position: absolute; top: 0; right: 0; font-size: 10px; line-height: 1; padding: 3px 4px; border-radius: 0 8px 0 6px; font-weight: 700; }
.ep .mk.lock { background: rgba(0, 0, 0, .35); color: var(--t2); }
.ep .mk.vip { background: linear-gradient(90deg, #ffe08a, #feb700); color: #4a2d00; }
.ep .mk.free { background: rgba(43, 208, 123, .9); color: #002b14; }
.ep .mk.ok { background: rgba(255, 255, 255, .15); color: #fff; }
.ep.na { opacity: .35; pointer-events: none; }
.legend { display: flex; gap: 14px; margin-top: 12px; color: var(--t3); font-size: 12px; flex-wrap: wrap; }

/* ── 搜索 */
.hotlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 24px; background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; }
.hotlist a { display: flex; align-items: center; gap: 10px; padding: 6px 0; color: var(--t2); }
.hotlist a:hover { color: #fff; }
.hotlist .rk { width: 20px; text-align: center; font-weight: 800; color: var(--t3); font-style: italic; }
.hotlist a:nth-child(-n+3) .rk { color: var(--primary); }
.hotlist .kt { font-size: 11px; padding: 0 4px; border-radius: 3px; background: rgba(255, 79, 114, .18); color: #ff8fa6; }
.hotlist .ht { margin-left: auto; color: var(--t4); font-size: 12px; }
mark { background: none; color: var(--primary); font-weight: 800; }

/* ── 我的 */
.vipbadge { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 4px; font-size: 12px; font-weight: 800; background: linear-gradient(90deg, #ffe08a, #feb700); color: #4a2d00; margin-left: 8px; vertical-align: 3px; }
.tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.tabs button { padding: 12px 0; color: var(--t3); font-size: 16px; font-weight: 600; position: relative; }
.tabs button.on { color: #fff; }
.tabs button.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 3px; background: var(--primary); }
.progress { font-size: 12px; color: var(--primary); margin-top: 2px; }
.gate { max-width: 440px; margin: 80px auto; text-align: center; }
.gate h2 { margin: 16px 0 8px; }
.gate p { color: var(--t3); margin: 0 0 24px; }

/* ── 弹窗 */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(0, 0, 0, .65); padding: 16px; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.sheet { position: relative; width: min(440px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: #18181c; border: 1px solid var(--line); border-radius: 18px; padding: 28px; animation: pop .2s cubic-bezier(.2, .9, .3, 1.2); }
.sheet.wide { width: min(620px, 100%); }
@keyframes pop { from { transform: translateY(12px) scale(.98); opacity: 0; } }
.sheet h3 { margin: 0 0 6px; font-size: 22px; }
.sheet .hint { color: var(--t3); font-size: 13px; margin: 0 0 20px; }
.x { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%; color: var(--t3); font-size: 22px; line-height: 1; }
.x:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--t2); margin-bottom: 6px; }
.field input { width: 100%; height: 46px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .05); padding: 0 14px; outline: 0; font-size: 15px; }
.field input:focus { border-color: rgba(255, 79, 114, .6); }
.field .inline { display: flex; gap: 8px; }
.field .inline input { flex: 1; }
.err { color: #ff6b81; font-size: 13px; min-height: 20px; margin: -4px 0 8px; }
.sheet .btn-lg { width: 100%; }
.sheet .alt { display: flex; justify-content: space-between; margin-top: 14px; font-size: 13px; color: var(--t3); }
.sheet .alt a { color: var(--t2); cursor: pointer; }
.sheet .alt a:hover { color: #fff; }
.tiers { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 16px 0; }
.tier { position: relative; text-align: left; padding: 16px; border-radius: 12px; background: var(--card2); border: 2px solid transparent; transition: border-color .15s; }
.tier:hover { border-color: rgba(255, 79, 114, .4); }
.tier.on { border-color: var(--primary); background: rgba(255, 79, 114, .08); }
.tier b { display: flex; align-items: center; gap: 6px; font-size: 22px; }
.tier .bonus { color: var(--primary); font-size: 12px; margin: 2px 0 8px; min-height: 18px; }
.tier .yuan { font-weight: 700; }
.tier .yuan s { color: var(--t4); font-weight: 400; margin-left: 6px; font-size: 12px; }
.tier .bd { position: absolute; top: -8px; right: 8px; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: linear-gradient(90deg, #ff7a97, #ff2e63); }
.tier.vipt b { color: var(--gold); }
.benefits { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 0; }
.notice { color: var(--t4); font-size: 12px; line-height: 1.7; margin-top: 12px; white-space: pre-line; }
.seg { display: flex; background: rgba(255, 255, 255, .06); border-radius: 999px; padding: 4px; margin: 4px 0 8px; }
.seg button { flex: 1; height: 34px; border-radius: 999px; color: var(--t2); font-weight: 600; }
.seg button.on { background: #fff; color: #111; }

.toast { position: fixed; left: 50%; top: 100px; transform: translateX(-50%); z-index: 200; background: rgba(30, 30, 34, .96); border: 1px solid var(--line); padding: 10px 20px; border-radius: 999px; font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); animation: fade .2s; max-width: calc(100vw - 32px); }

.skel { background: linear-gradient(90deg, var(--card) 0%, #232327 50%, var(--card) 100%); background-size: 200% 100%; animation: sk 1.2s infinite linear; border-radius: var(--radius); }
@keyframes sk { to { background-position: -200% 0; } }

.foot { border-top: 1px solid var(--line); margin-top: 60px; padding-bottom: env(safe-area-inset-bottom, 0px); }
.foot-in { max-width: 1600px; margin: 0 auto; padding: 28px var(--gutter); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--t4); font-size: 13px; }
.foot p { margin: 0; }

@media (max-width: 1000px) {
  .watch { grid-template-columns: 1fr; }
  .player { height: auto; width: min(100%, 460px); margin: 0 auto; }
  .hero-poster { display: none; }
}
@media (max-width: 760px) {
  .top-in { gap: 12px; height: 56px; }
  .brand span { display: none; }
  .nav { gap: 16px; }
  .nav a { font-size: 16px; padding: 16px 0; }
  .search { height: 38px; }
  .avatar { width: 34px; height: 34px; }
  #acct .btn { height: 36px; padding: 0 16px; font-size: 14px; }
  .brand img { width: 34px; height: 34px; }
  .nav a.on::after { bottom: 8px; }
    .search { width: auto; flex: 1; min-width: 0; }
  .coin-pill { display: none; }
  .hero { height: 440px; }
  .hero-desc { -webkit-line-clamp: 2; font-size: 14px; }
  .sec-head h2 { font-size: 18px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 10px; }
  .frow { flex-direction: column; gap: 6px; }
  .frow > b { line-height: 1.4; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: calc(-1 * var(--gutter)); }
  .chip { flex: none; }
  .player { width: 100%; border-radius: 0; margin: 0 calc(-1 * var(--gutter)); width: calc(100% + 2 * var(--gutter)); max-width: none; max-height: 80vh; }
  .watch { padding-top: 0; gap: 20px; }
  .crumbs { display: none; }
  .side h1 { font-size: 21px; }
    .sheet { padding: 24px 20px; }
}
@media (max-width: 420px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── 播放页 v2：照 ReelShort 单集页。整屏高，左黑底播放区，右 440 面板独立滚动 */
body.is-watch .foot { display: none; }
.watch2 { display: flex; height: calc(100vh - 81px - env(safe-area-inset-top, 0px)); height: calc(100dvh - 81px - env(safe-area-inset-top, 0px)); background: #000; }
.stage { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; background: #000; }
.stage .player { height: 100%; width: auto; max-width: 100%; aspect-ratio: 9 / 16; border-radius: 0; box-shadow: none; }
.stage .player.landscape { height: auto; width: 100%; max-height: 100%; aspect-ratio: 16 / 9; }
.back { position: absolute; top: 28px; left: 28px; z-index: 6; width: 60px; height: 60px; border-radius: 50%; background: rgba(255, 255, 255, .12); display: grid; place-items: center; transition: background .15s; }
.back:hover { background: rgba(255, 255, 255, .22); }
.back svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.panel { flex: none; width: 460px; overflow-y: auto; padding: 32px 32px 40px; background: var(--bg); scrollbar-width: thin; scrollbar-color: #333 transparent; }
.bc { display: flex; align-items: center; gap: 8px; color: var(--t3); font-size: 13px; white-space: nowrap; }
.bc a:hover { color: #fff; }
.bc i { font-style: normal; opacity: .6; }
.bc .bc-drama { overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.bc span { color: var(--t1); }
.panel h1 { font-size: 20px; line-height: 1.4; font-weight: 800; margin: 24px 0 22px; }
.panel h4 { margin: 0 0 6px; font-size: 15px; font-weight: 500; }
.plot { margin: 0; color: var(--t3); font-size: 15px; line-height: 1.55; }
.plot.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.panel .more { display: block; margin: 2px 0 0 auto; color: #fff; font-size: 14px; }
.ptags { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 24px; }
.ptags span { height: 32px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 999px; background: var(--card2); color: var(--t2); font-size: 13px; }
.acts { display: flex; justify-content: space-around; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; margin-bottom: 26px; }
.acts button { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 80px; color: var(--t2); font-size: 14px; transition: color .15s; }
.acts button:hover { color: #fff; }
.acts button[disabled] { opacity: .4; pointer-events: none; }
.acts svg { width: 28px; height: 28px; fill: #bdbdbd; transition: fill .15s, transform .15s; }
.acts button:hover svg { fill: #fff; }
.acts button.on svg { fill: var(--primary); }
.acts button.on { color: var(--primary); }
.acts button:active svg { transform: scale(.85); }
.eps-bar { display: flex; align-items: center; margin-bottom: 12px; }
.eps-bar .ranges { display: flex; gap: 20px; margin: 0; flex-wrap: wrap; }
.eps-bar .ranges button { height: auto; padding: 0; background: none; border-radius: 0; color: var(--t3); font-size: 15px; }
.eps-bar .ranges button.on { background: none; color: #fff; font-weight: 700; }
.eps-bar .all { margin-left: auto; display: flex; align-items: center; gap: 2px; color: var(--t3); font-size: 15px; }
.eps-bar .all:hover { color: #fff; }
.eps-bar .all svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.panel .eps, .all-eps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; max-height: none; overflow: visible; padding: 0; }
.all-eps { grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); max-height: 60vh; overflow-y: auto; }
.panel .ep, .all-eps .ep { height: 46px; border-radius: 6px; background: #1d1d20; font-weight: 500; font-size: 14px; color: var(--t2); }
.panel .ep:hover, .all-eps .ep:hover { background: #2a2a2e; color: #fff; }
.panel .ep.on, .all-eps .ep.on { background: rgba(255, 79, 114, .22); color: #fff; }
.ep.on::before { display: none; }
.ep.trailer { color: var(--t3); font-size: 13px; }
.ep .mk { top: 3px; right: 3px; padding: 0; border-radius: 0; background: none !important; }
.ep .mk.lock svg { width: 11px; height: 11px; fill: rgba(255, 255, 255, .45); display: block; }
.ep .mk.vip { font-size: 9px; color: var(--gold); padding: 1px 3px; border-radius: 3px; background: rgba(254, 183, 0, .15) !important; }
.eq { position: absolute; right: 5px; bottom: 5px; display: flex; gap: 1px; align-items: flex-end; height: 9px; }
.eq b { width: 2px; background: var(--primary); animation: eqb .8s infinite alternate ease-in-out; }
.eq b:nth-child(1) { height: 5px; }
.eq b:nth-child(2) { height: 9px; animation-delay: .2s; }
.eq b:nth-child(3) { height: 6px; animation-delay: .4s; }
@keyframes eqb { to { height: 2px; } }
.stage .trial-bar { top: 16px; left: auto; right: 16px; }
@media (max-width: 1000px) {
  .watch2 { display: block; height: auto; background: var(--bg); }
  .stage { height: min(calc(100svh - 56px), 177.78vw); }
  .stage .player { height: 100%; width: 100%; max-width: none; max-height: none; margin: 0; aspect-ratio: auto; }
  .back { top: 14px; left: 14px; width: 44px; height: 44px; }
  .back svg { width: 22px; height: 22px; }
  .panel { width: auto; overflow: visible; padding: 20px var(--gutter) 32px; }
  .panel h1 { margin: 16px 0; font-size: 18px; }
  .panel .eps { grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); }
}

.sheet .alt a:empty { display: none; }

/* ── 剧详情页（照 ReelShort /movie） */
.mv { position: relative; overflow: hidden; }
.mv-bg { position: absolute; left: 0; right: 0; top: 0; height: 760px; background-size: cover; background-position: center 30%; filter: blur(60px) brightness(.45) saturate(1.2); transform: scale(1.2); opacity: .9; }
.mv-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 14, 17, .2) 0%, rgba(14, 14, 17, .55) 55%, var(--bg) 100%); }
.wrap.mv-wrap { position: relative; max-width: none; padding: 0 6vw 20px; }
.mv-bc { padding-top: 32px; font-size: 14px; }
.mv-top { display: flex; align-items: center; gap: 32px; min-height: 480px; padding: 36px 0 20px; }
.mv-info { flex: 1; min-width: 0; max-width: 720px; }
.mv-info h1 { margin: 0; font-size: clamp(30px, 3vw, 42px); line-height: 1.3; font-weight: 800; color: rgba(255, 255, 255, .92); }
.mv-stats { display: flex; gap: 24px; align-items: center; margin-top: 16px; color: rgba(255, 255, 255, .85); font-size: 15px; }
.mv-stats span { display: flex; align-items: center; gap: 6px; }
.mv-stats svg { width: 18px; height: 18px; fill: currentColor; }
.mv-stats b { font-weight: 400; }
.mv-tags { position: relative; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; padding-right: 40px; }
.mv-tags.clamp2 { max-height: 72px; overflow: hidden; }
.mv-tags span { height: 32px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 16px; background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .75); font-size: 13px; }
.mv-more { position: absolute; right: 0; bottom: 0; width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, .1); display: grid; place-items: center; }
.mv-more svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2; transition: transform .2s; }
.mv-more.up svg { transform: rotate(180deg); }
.mv-acts { display: flex; align-items: center; gap: 16px; margin-top: 64px; flex-wrap: wrap; }
.mv-watch { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 300px; max-width: 100%; height: 64px; border-radius: 32px; background: #fff; color: #000; font-size: 18px; font-weight: 700; transition: background .16s, color .16s; }
.mv-watch:hover { background: var(--primary-deep); color: #fff; }
.mv-watch svg { width: 22px; height: 22px; fill: currentColor; }
.mv-ico { width: 64px; height: 64px; border-radius: 50%; background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .25); display: grid; place-items: center; color: #fff; transition: background .16s, border-color .16s; }
.mv-ico:hover { background: rgba(255, 255, 255, .15); border-color: rgba(255, 255, 255, .8); }
.mv-ico svg { width: 22px; height: 22px; fill: currentColor; }
.mv-ico span { display: none; }
.mv-ico.on { color: #ffb423; }
.mv-cover { position: relative; flex: none; width: clamp(240px, 25vw, 360px); aspect-ratio: 3 / 4; border-radius: 20px; overflow: hidden; background: #000; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); margin-right: auto; }
.mv-cover img { width: 100%; height: 100%; object-fit: cover; }
.mv-cover .badge { top: 10px; left: 10px; }
.mv-sec { margin-top: 48px; }
.mv-sec h2 { margin: 0 0 18px; font-size: 20px; font-weight: 700; color: rgba(255, 255, 255, .92); }
.et-row { display: grid; grid-template-columns: repeat(var(--cols, 12), minmax(0, 1fr)); gap: 12px; }
.et { position: relative; aspect-ratio: 87 / 135; border-radius: 6px; overflow: hidden; background: #1d1d20; display: grid; place-items: center; color: #fff; }
.et img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(3px) brightness(.5); transform: scale(1.1); transition: filter .2s; }
.et:hover img { filter: blur(1px) brightness(.7); }
.et b { position: relative; font-size: 16px; font-weight: 500; }
.et-lock { position: absolute; top: 6px; right: 6px; }
.et-lock svg, .eg .et-lock svg { width: 12px; height: 12px; fill: rgba(255, 255, 255, .7); display: block; }
.et-vip { position: absolute; top: 6px; right: 6px; font-size: 10px; font-weight: 700; color: var(--gold); }
.et-all { background: #1d1d20; flex-direction: column; font-size: 15px; font-weight: 700; line-height: 1.4; text-align: center; padding: 0 6px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.et-all:hover { background: #2a2a2e; }
.et-all svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2; }
.et-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.et-grid:empty { display: none; }
.eg-all { grid-column: 1 / -1; }
.eg { position: relative; height: 44px; border-radius: 6px; background: #1d1d20; display: grid; place-items: center; font-size: 13px; color: rgba(255, 255, 255, .85); }
.eg .et-lock, .eg .et-vip { top: 3px; right: 4px; }
.mv-plot { background: #161616; border-radius: 16px; padding: 22px 24px; }
.mv-plot p { margin: 0; color: rgba(255, 255, 255, .6); font-size: 15px; line-height: 1.7; }
.mv-plot p.clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.mv-plot .more { display: block; margin: 4px 0 0 auto; color: #fff; font-size: 14px; }
.mv-by { margin-top: 12px; color: rgba(255, 255, 255, .45); font-size: 13px; }
.mv-by .v { color: #4ea8ff; }
.mv-rel { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px 24px; }
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: #161616; border-radius: 12px; padding: 0 20px; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 18px 0; font-size: 15px; color: rgba(255, 255, 255, .88); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { margin-left: auto; position: relative; width: 14px; height: 14px; flex: none; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: rgba(255, 255, 255, .7); transition: transform .2s; }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i::after { transform: rotate(0); }
.faq details p { margin: 0 0 18px; color: rgba(255, 255, 255, .55); line-height: 1.7; font-size: 14px; }
@media (max-width: 1100px) { .mv-rel { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .mv-bg { height: 520px; }
  .mv-bc { padding-top: 14px; font-size: 12px; }
  .mv-top { flex-direction: column; align-items: stretch; gap: 0; min-height: 0; padding: 18px 0 0; }
  .mv-cover { order: -1; width: 46vw; margin: 0 auto 18px; border-radius: 14px; }
  .mv-info h1 { font-size: 20px; }
  .mv-stats { margin-top: 8px; font-size: 13px; gap: 16px; }
  .mv-tags { margin-top: 18px; order: 2; }
  .mv-info { display: flex; flex-direction: column; }
  .mv-acts { margin-top: 16px; gap: 10px; display: grid; grid-template-columns: 1fr 1fr; }
  .mv-watch { grid-column: 1 / -1; width: 100%; height: 44px; font-size: 16px; }
  .mv-ico { width: auto; height: 38px; border-radius: 8px; display: flex; gap: 6px; background: rgba(255, 255, 255, .1); border: 0; }
  .mv-ico span { display: inline; font-size: 14px; }
  .mv-ico svg { width: 16px; height: 16px; }
  .mv-sec { margin-top: 32px; }
  .mv-sec h2 { font-size: 18px; }
  .mv-plot { padding: 16px; }
  .mv-plot p { font-size: 14px; }
  .mv-rel { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 8px; }
}
a.ep { display: grid; place-items: center; }

/* ── 我的：左右两栏 */
.me { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 32px; align-items: start; padding-top: 28px; }
.me-side { position: sticky; top: calc(81px + 20px + env(safe-area-inset-top, 0px)); display: flex; flex-direction: column; gap: 16px; }
.me-card { background: #161616; border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.me-prof { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; background: linear-gradient(135deg, rgba(255, 79, 114, .16), rgba(255, 79, 114, 0) 60%), #161616; }
.me-prof .avatar { width: 64px; height: 64px; font-size: 26px; flex: none; }
.me-id { flex: 1; min-width: 0; }
.me-id h2 { margin: 0 0 4px; font-size: 19px; line-height: 1.3; word-break: break-all; }
.me-id .sub { color: var(--t3); font-size: 13px; }
.me-id .warn { color: var(--gold); }
.me-bind { flex-basis: 100%; border-top: 1px dashed var(--line); padding-top: 12px; }
.me-bind p { margin: 0 0 10px; color: var(--t3); font-size: 12px; line-height: 1.6; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row2 .btn { padding: 0 10px; }
.mw-head { display: flex; justify-content: space-between; align-items: center; color: var(--t3); font-size: 13px; }
.mw-head a { display: flex; align-items: center; cursor: pointer; color: var(--t3); }
.mw-head a:hover { color: #fff; }
.chev { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.mw-total { display: flex; align-items: center; gap: 10px; margin: 8px 0 6px; font-size: 34px; font-weight: 800; color: var(--gold); }
.mw-total .coin { width: 26px; height: 26px; }
.mw-split { display: flex; gap: 18px; color: var(--t3); font-size: 13px; margin-bottom: 14px; }
.mw-split b { color: var(--t1); font-weight: 600; margin-left: 2px; }
.mw-exp { margin: -6px 0 14px; font-size: 12px; color: var(--gold); }
.mw-vip { margin-top: 12px; font-size: 12px; color: var(--gold); text-align: center; }
.me-menu { padding: 6px 8px; }
.me-menu a { display: flex; align-items: center; gap: 12px; padding: 14px 12px; border-radius: 10px; cursor: pointer; color: var(--t2); font-size: 15px; transition: background .15s, color .15s; }
.me-menu a + a { border-top: 1px solid var(--line); }
.me-menu a:hover { background: rgba(255, 255, 255, .04); color: #fff; }
.me-menu a.on { background: rgba(255, 79, 114, .12); color: var(--primary); }
.me-menu .mi { width: 22px; text-align: center; }
.me-menu .chev { margin-left: auto; color: var(--t4); }
.me-main { min-width: 0; }
.me-main .tabs { margin-bottom: 20px; }
.me-sub { margin: 0 0 16px; font-size: 18px; }
.me-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.like-n { position: absolute; right: 8px; bottom: 8px; z-index: 2; display: flex; align-items: center; gap: 4px; font-size: 12px; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
.like-n svg { width: 14px; height: 14px; fill: var(--primary); }
.lines { display: flex; flex-direction: column; gap: 8px; }
.li { display: flex; align-items: center; gap: 14px; background: #161616; border-radius: 12px; padding: 14px 18px; }
.li-ico { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; background: rgba(254, 183, 0, .12); font-size: 18px; font-weight: 800; }
.li-ico .coin { width: 20px; height: 20px; }
.li-ico.in { background: rgba(43, 208, 123, .14); color: var(--green); }
.li-ico.out { background: rgba(255, 255, 255, .08); color: var(--t2); }
.li-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.li-main b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li-main span, .li-end span { color: var(--t3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li-end { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; max-width: 45%; }
.li-end b { font-size: 16px; }
.li-end b.pos { color: var(--green); }
.st-paid { color: var(--green) !important; }
.st-created, .st-paying { color: var(--gold) !important; }
@media (max-width: 900px) {
  .me { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 16px; }
  .me-side { position: static; }
  .me-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 10px; }
  .li { padding: 12px 14px; gap: 10px; }
  .li-main span { white-space: normal; }
}

/* 服务端填进来的纯 HTML（给不跑 JS 的爬虫看；页面脚本一跑就换掉） */
.ssr { padding-block: 28px; color: var(--t2); line-height: 1.8; }
.ssr h1 { color: #fff; font-size: 24px; }
.ssr h2 { color: #fff; font-size: 18px; margin-top: 24px; }
.ssr ul { padding-left: 18px; }
.ssr a { color: var(--primary); }
