:root {
  color-scheme: light;
  --red: #b9683f;
  --red-dark: #965033;
  --ink: #2d271f;
  --muted: #7b7469;
  --line: #eadfce;
  --surface: #fffdf8;
  --soft: #f7f0e5;
  --gold: #e3a74e;
  --green: #2f8068;
  --blue: #287f89;
  --nav-h: 66px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: #f3eadb; color: var(--ink); letter-spacing: 0; }
button, input { font: inherit; letter-spacing: 0; }
button { border: 0; cursor: pointer; color: inherit; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
svg { width: 21px; height: 21px; stroke-width: 2; }

.app-shell { width: 100%; min-height: 100vh; background: var(--surface); }
.desktop-rail { display: none; }
.main-stage { min-height: 100vh; padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom)); }
.view { display: none; min-height: 100vh; }
.view.active { display: block; }
.pull-refresh { position: fixed; z-index: 26; top: 0; left: 50%; display: flex; align-items: center; gap: 7px; min-height: 38px; padding: 7px 13px; transform: translate(-50%, -48px); border-radius: 0 0 7px 7px; color: #686a70; background: rgba(255,255,255,.98); box-shadow: 0 3px 14px rgba(20,24,32,.12); transition: transform .16s ease; font-size: 12px; }
.pull-refresh svg { width: 16px; height: 16px; }
.pull-refresh.ready { color: var(--red); }
.pull-refresh.refreshing svg { animation: refresh-spin .8s linear infinite; }
@keyframes refresh-spin { to { transform: rotate(360deg); } }

.topbar { position: sticky; z-index: 20; top: 0; height: 58px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 0 16px; background: rgba(255,255,255,.96); border-bottom: 1px solid rgba(236,236,239,.7); }
.mobile-brand { display: none; align-items: center; gap: 8px; white-space: nowrap; }
.brand-icon { display: grid; place-items: center; width: 31px; aspect-ratio: 1; border-radius: 9px; overflow: hidden; background: transparent; }
.brand-icon img { display: block; width: 100%; height: 100%; }
.top-tabs { display: flex; justify-content: flex-start; gap: 20px; height: 100%; overflow-x: auto; scrollbar-width: none; }
.top-tab { position: relative; flex: 0 0 auto; padding: 2px 0 0; background: transparent; color: #74767d; font-size: 16px; }
.top-tab.active { color: var(--ink); font-weight: 700; }
.top-tab.active::after { content: ""; position: absolute; bottom: 7px; left: 50%; width: 18px; height: 3px; transform: translateX(-50%); border-radius: 3px; background: var(--red); }
.icon-button { display: grid; place-items: center; width: 38px; aspect-ratio: 1; border-radius: 50%; background: transparent; }
.icon-button:hover { background: var(--soft); }
.top-actions { display: flex; align-items: center; gap: 1px; }
.language-toggle { position: relative; }
.language-toggle small { position: absolute; right: -1px; bottom: 1px; min-width: 16px; padding: 1px 2px; border: 2px solid white; border-radius: 8px; color: white; background: var(--red); font-size: 7px; font-weight: 900; line-height: 11px; text-align: center; }
.language-menu { position: fixed; z-index: 90; top: 54px; right: max(12px, calc((100vw - min(100vw, 1440px)) / 2 + 12px)); display: none; width: min(360px, calc(100vw - 24px)); overflow: hidden; border: 1px solid #eadfce; border-radius: 15px; background: rgba(255,253,248,.98); box-shadow: 0 18px 50px rgba(62,43,30,.2); backdrop-filter: blur(16px); }
.language-menu.open { display: block; }
.language-menu > header { display: flex; align-items: end; justify-content: space-between; gap: 10px; padding: 15px 16px 11px; border-bottom: 1px solid #eee5d9; }
.language-menu > header strong { font-size: 14px; }
.language-menu > header span { overflow: hidden; color: #8e8171; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.language-options { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; padding: 7px; }
.language-options button { display: flex; align-items: center; justify-content: space-between; min-height: 43px; padding: 0 11px; border-radius: 9px; color: #5d5348; background: transparent; text-align: left; }
.language-options button:hover { background: #f6eadb; }
.language-options button.active { color: #824529; background: #f1dcc2; }
.language-options button b { font-size: 11px; }
.language-options button small { color: #998774; font-size: 8px; font-weight: 800; }

.search-panel { position: sticky; z-index: 19; top: 58px; display: none; align-items: center; gap: 9px; margin: 0; padding: 10px 16px; background: white; border-bottom: 1px solid var(--line); }
.search-panel.open { display: flex; }
.search-panel input { min-width: 0; flex: 1; height: 38px; border: 0; border-radius: 8px; padding: 0 12px; background: var(--soft); }
.search-panel button { display: grid; place-items: center; width: 34px; height: 34px; background: transparent; }
.category-strip { display: flex; gap: 9px; padding: 13px 16px; overflow-x: auto; scrollbar-width: none; }
.category { flex: 0 0 auto; padding: 8px 16px; border-radius: 999px; background: var(--soft); color: #656057; font-size: 13px; }
.category.active { color: var(--red-dark); background: #f1d9bd; font-weight: 700; }

.featured-ranking { margin: 0 16px 24px; padding: 16px; border: 1px solid #eadcca; border-radius: 18px; background: linear-gradient(145deg,#fffdf8 0%,#f7ecde 100%); box-shadow: 0 12px 30px rgba(96,67,45,.09); }
.featured-ranking[hidden] { display: none; }
.featured-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; padding: 0 0 13px; }
.featured-heading span { color: #a77b59; font-size: 8px; font-weight: 900; letter-spacing: .18em; }
.featured-heading h2 { margin: 4px 0 0; font-size: 20px; letter-spacing: -.02em; }
.featured-heading > small { color: #9f8b78; font-size: 9px; }
.featured-board { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.featured-rank-column { display: grid; gap: 10px; min-width: 0; }
.featured-rank-row { position: relative; display: flex; min-width: 0; flex-direction: column; align-items: stretch; gap: 8px; padding: 8px; border-radius: 13px; background: rgba(255,254,250,.92); text-align: left; box-shadow: 0 4px 14px rgba(75,56,41,.045); }
.featured-rank-row > em { color: var(--red); font: italic 900 16px/1 ui-serif,Georgia,serif; }
.featured-rank-cover { position: relative; display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 10px; background-color: #332a24; background-position: center; background-repeat: no-repeat; background-size: 0 0; box-shadow: 0 6px 16px rgba(50,35,25,.13); }
.featured-rank-cover::before,.cover::before { position: absolute; inset: -12px; content: ""; background-image: inherit; background-position: inherit; background-repeat: no-repeat; background-size: cover; filter: blur(12px); opacity: .78; transform: scale(1.08); }
.featured-rank-cover::after,.cover::after { position: absolute; inset: 0; content: ""; background-image: inherit; background-position: inherit; background-repeat: no-repeat; background-size: cover; }
.featured-rank-copy { display: grid; min-width: 0; gap: 4px; min-height: 70px; padding: 0 30px 2px 2px; }
.featured-rank-copy b { display: -webkit-box; overflow: hidden; font-size: 13px; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.featured-rank-copy small,.featured-rank-copy strong,.featured-rank-copy i { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.featured-rank-copy small { color: var(--muted); font-size: 9px; }
.featured-rank-copy > span { display: flex; flex-wrap: wrap; gap: 4px 7px; }
.featured-rank-copy i { color: #8a7d70; font-size: 8px; font-style: normal; }
.featured-rank-copy strong { color: var(--red); font-size: 9px; }
.featured-rank-play { position: absolute; z-index: 2; right: 10px; bottom: 10px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #70442e; background: #f0dfcf; }
.featured-rank-play svg { width: 13px; height: 13px; fill: currentColor; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding: 0 18px; border-radius: 7px; background: var(--red); color: white; font-weight: 700; }
.primary-button:hover { background: var(--red-dark); }
.primary-button svg { width: 18px; fill: currentColor; }
.primary-button.full { width: 100%; }

.catalog-section { padding: 0 16px 24px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.section-heading h2 { margin: 0; font-size: 20px; }
.section-heading p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.text-button { display: flex; align-items: center; gap: 5px; padding: 7px 0; color: var(--muted); background: transparent; font-size: 13px; white-space: nowrap; }
.text-button svg { width: 15px; }
.catalog-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px 10px; }
.catalog-grid.loading { opacity: .55; pointer-events: none; }
.empty-state { grid-column: 1 / -1; margin: 28px 0; color: var(--muted); text-align: center; font-size: 13px; }
.drama-card { display: block; min-width: 0; padding: 0; background: transparent; text-align: left; transition: transform .18s ease; }
.drama-card:hover { transform: translateY(-3px); }
.cover { position: relative; display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 13px; background-color: #332a24; background-position: center; background-repeat: no-repeat; background-size: 0 0; box-shadow: 0 8px 20px rgba(75,56,41,.11); }
.drama-card-copy { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; padding: 9px 2px 0; }
.drama-card-kicker { color: var(--red); font-size: 9px; font-weight: 900; letter-spacing: .08em; }
.drama-card-kicker.hot { color: #d94a3f; }
.drama-card-kicker.new { color: var(--green); }
.drama-card h3 { display: -webkit-box; width: 100%; min-height: 38px; margin: 5px 0 4px; overflow: hidden; font-size: 14px; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.drama-card p { width: 100%; margin: 0; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.drama-card-meta { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 5px; margin-top: 8px; }
.drama-card-meta em,.drama-card-meta span { color: #766758; font-size: 8px; font-style: normal; white-space: nowrap; }
.drama-card-meta b { margin-left: auto; color: #9a8978; font-size: 8px; font-weight: 600; }

.page-header { display: flex; align-items: flex-end; justify-content: space-between; min-height: 88px; padding: 24px 18px 16px; border-bottom: 1px solid var(--line); }
.page-header span { color: var(--muted); font-size: 12px; }
.page-header h1 { margin: 3px 0 0; font-size: 25px; }
#view-recommend { min-height: 0; background: #080808; }
#view-recommend.active { height: calc(100dvh - var(--nav-h) - env(safe-area-inset-bottom)); overflow: hidden; }
.recommend-feed { width: 100%; height: 100%; overflow-y: auto; background: #080808; scroll-behavior: smooth; scroll-snap-type: y mandatory; scrollbar-width: none; overscroll-behavior-y: contain; }
.recommend-feed::-webkit-scrollbar { display: none; }
.recommend-slide { position: relative; display: block; width: min(100%,620px); height: 100%; min-height: 100%; overflow: hidden; margin: 0 auto; color: white; background: #17120f center/cover no-repeat; scroll-snap-align: start; scroll-snap-stop: always; cursor: pointer; }
.recommend-slide::before { position: absolute; z-index: 0; inset: 0; content: ""; background: rgba(5,4,3,.36); backdrop-filter: blur(24px); transform: scale(1.08); }
.recommend-video { position: absolute; z-index: 1; top: 46px; right: 0; left: 0; width: 100%; height: calc(100% - 206px); object-fit: contain; object-position: center; background: transparent; }
.recommend-shade { position: absolute; z-index: 2; right: 0; bottom: 0; left: 0; height: 170px; pointer-events: none; background: linear-gradient(transparent 0,#080808 24%,#080808 100%); }
.recommend-feed-label { position: absolute; z-index: 3; top: max(10px,env(safe-area-inset-top)); left: 14px; display: flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 999px; background: rgba(0,0,0,.42); font-size: 11px; font-weight: 800; backdrop-filter: blur(8px); }
.recommend-feed-label svg { width: 15px; height: 15px; fill: currentColor; }
.recommend-feed-copy { position: absolute; z-index: 3; right: 78px; bottom: 56px; left: 15px; display: grid; gap: 7px; }
.recommend-feed-copy b { font-size: 20px; }
.recommend-feed-copy small { overflow: hidden; color: rgba(255,255,255,.8); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.recommend-feed-copy em { color: rgba(255,255,255,.72); font-size: 10px; font-style: normal; }
.recommend-open { position: absolute; z-index: 3; right: 15px; bottom: 76px; display: grid; justify-items: center; gap: 4px; font-size: 9px; }
.recommend-open > i { display: grid; place-items: center; width: 44px; height: 44px; padding: 12px; border-radius: 50%; color: #74452d; background: rgba(255,255,255,.92); }
.recommend-open svg { width: 20px; height: 20px; fill: currentColor; }
.recommend-swipe { position: absolute; z-index: 3; bottom: 13px; left: 50%; display: flex; align-items: center; gap: 4px; transform: translateX(-50%); color: rgba(255,255,255,.75); font-size: 9px; white-space: nowrap; }
.recommend-swipe svg { width: 15px; height: 15px; }
.recommend-position { position: absolute; z-index: 3; top: max(20px,env(safe-area-inset-top)); right: 14px; color: rgba(255,255,255,.78); font-size: 10px; font-variant-numeric: tabular-nums; }
.recommend-loading { position: absolute; z-index: 4; top: 50%; left: 50%; display: none; place-items: center; width: 46px; height: 46px; transform: translate(-50%,-50%); border-radius: 50%; background: rgba(0,0,0,.38); }
.recommend-slide.loading .recommend-loading { display: grid; }
.recommend-slide.loading .recommend-loading svg { animation: refresh-spin .8s linear infinite; }
.recommend-empty { display: grid; place-items: center; min-height: 100%; margin: 0; color: rgba(255,255,255,.72); }

.wallet-hero { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 14px 16px 10px; padding: 22px 20px; border-radius: 8px; background: #ff5a49; color: white; }
.wallet-summary > span { font-size: 13px; opacity: .85; }
.wallet-summary > strong { display: block; margin: 4px 0; font-size: 34px; font-variant-numeric: tabular-nums; }
.wallet-summary p { margin: 0; font-size: 12px; opacity: .85; }
.withdraw-button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 72px; height: 66px; border-radius: 8px; color: #a13c10; background: #fff6df; font-weight: 700; font-size: 12px; }
.withdraw-button img { width: 26px; height: 26px; object-fit: contain; }
.checkin-strip { margin: 0 16px; padding: 16px 0 18px; border-bottom: 1px solid var(--line); }
.checkin-strip > div:first-child { display: flex; justify-content: space-between; gap: 10px; }
.checkin-strip strong { font-size: 15px; }
.checkin-strip span { color: var(--muted); font-size: 12px; }
.checkin-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-top: 15px; }
.checkin-days i { display: grid; place-items: center; width: 100%; aspect-ratio: 1; max-width: 34px; justify-self: center; border-radius: 50%; background: var(--soft); color: var(--muted); font-size: 11px; font-style: normal; }
.checkin-days .done { background: #ffe4dc; color: var(--red); }
.checkin-days .today { outline: 2px solid var(--red); background: var(--red); color: white; }
.task-section { padding: 22px 16px; }
.task-list { border-top: 1px solid var(--line); }
.task-row { display: grid; grid-template-columns: 44px minmax(0,1fr) auto; align-items: center; gap: 12px; min-height: 82px; border-bottom: 1px solid var(--line); }
.task-icon, .task-image { width: 42px; height: 42px; border-radius: 8px; }
.task-icon { display: grid; place-items: center; background: #fff0ef; color: var(--red); }
.task-icon.blue { background: #edf4ff; color: var(--blue); }
.task-image { object-fit: contain; padding: 7px; background: #fff7e8; }
.task-copy { min-width: 0; }
.task-copy strong, .task-copy span { display: block; }
.task-copy strong { margin-bottom: 5px; font-size: 14px; }
.task-copy span { color: var(--muted); font-size: 11px; }
.progress { width: 100%; max-width: 190px; height: 4px; margin-top: 7px; overflow: hidden; border-radius: 4px; background: #eee; }
.progress i { display: block; height: 100%; background: var(--red); }
.task-button { min-width: 62px; height: 30px; border-radius: 7px; color: var(--muted); background: var(--soft); font-size: 12px; }
.task-button.claim { color: white; background: var(--red); }
.task-button:disabled { cursor: default; }

.following-tabs { display: flex; gap: 24px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.following-tabs button { position: relative; height: 46px; background: transparent; color: var(--muted); }
.following-tabs .active { color: var(--ink); font-weight: 700; }
.following-tabs .active::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 22px; height: 3px; transform: translateX(-50%); background: var(--red); }
.following-list { padding: 4px 16px 28px; }
.history-row { display: grid; grid-template-columns: 92px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.history-cover { width: 92px; aspect-ratio: 16/10; border-radius: 6px; background-size: cover; }
.history-copy { min-width: 0; }
.history-copy h3 { margin: 0 0 8px; overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.history-copy p { margin: 0; color: var(--muted); font-size: 11px; }
.history-row > button { width: 34px; height: 34px; border-radius: 50%; background: var(--soft); color: var(--red); }

/* 土豆短剧 · 热带东南亚轻度主题 */
.app-shell, .topbar, .bottom-nav, .search-panel { background-color: var(--surface); }
.topbar { border-bottom-color: rgba(234,223,206,.8); }
.following-tabs { gap: 10px; padding: 0 16px; }
.following-tabs button { min-width: 82px; padding: 0 12px; border-radius: 999px 999px 0 0; }
.following-tabs button.active { color: var(--red-dark); background: #fbf3e8; }
.following-tabs .active::after { width: 30px; border-radius: 3px; background: var(--red); }
.following-empty { margin: 56px 0; }
.account-logo { overflow: hidden; background: transparent; }
.account-logo img { width: 100%; height: 100%; object-fit: contain; }
.profile-header { background: #f0dfc8; }
.profile-stats { background: var(--surface); }
.profile-menu button:hover, .history-row:hover { background: #fdf6eb; }

.profile-header { position: relative; min-height: 190px; overflow: hidden; padding: 82px 18px 20px; background: #fff3ef; }
.profile-header-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .78; }
.profile-header .settings { position: absolute; z-index: 1; top: 18px; right: 16px; }
.profile-identity { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; }
.avatar { display: grid; place-items: center; width: 60px; aspect-ratio: 1; border: 3px solid white; border-radius: 50%; color: white; background: var(--red); font-size: 24px; font-weight: 800; }
.profile-identity h1 { margin: 0 0 6px; font-size: 21px; }
.profile-identity p { margin: 0; color: #7b625c; font-size: 12px; }
html.app-installed .install-nav-action, .install-nav-action[hidden] { display: none !important; }
.profile-stats { display: grid; grid-template-columns: repeat(4,1fr); padding: 14px 8px; border-bottom: 8px solid var(--soft); }
.profile-stats button { display: flex; flex-direction: column; gap: 5px; background: transparent; }
.profile-stats strong { font-size: 17px; }
.profile-stats span { color: var(--muted); font-size: 11px; }
.profile-menu { padding: 6px 16px 24px; }
.profile-menu button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 54px; border-bottom: 1px solid var(--line); background: transparent; }
.profile-menu button span { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.profile-menu button > svg { width: 17px; color: #aaa; }

.bottom-nav { position: fixed; z-index: 50; inset: auto 0 0; display: grid; grid-template-columns: repeat(6, 1fr); height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid var(--line); background: rgba(255,255,255,.97); }
html.app-installed .bottom-nav { grid-template-columns: repeat(5, 1fr); }
.bottom-nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: transparent; color: #85878c; font-size: 10px; }
.bottom-nav button.active { color: var(--red); font-weight: 700; }
.bottom-nav .install-nav-action { color: var(--red-dark); background: linear-gradient(180deg,#fffaf3,#f8e7d1); font-weight: 800; }
.bottom-nav svg { width: 22px; height: 22px; }

.player-layer { position: fixed; z-index: 100; inset: 0; display: none; place-items: center; background: #0c0c0d; }
.player-layer.open { display: grid; }
.player-frame { position: relative; width: min(100vw, 540px); height: 100dvh; overflow: hidden; background: black; }
.player-frame video { width: 100%; height: 100%; object-fit: cover; touch-action: none; -webkit-touch-callout: none; user-select: none; }
.player-shade { pointer-events: none; position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,.34), transparent 21%, transparent 57%, rgba(0,0,0,.84)); }
.player-topbar { position: absolute; inset: 0 0 auto; display: flex; align-items: center; justify-content: space-between; padding: max(14px, env(safe-area-inset-top)) 12px 10px; color: white; }
.player-topbar button, .episode-sheet header button, .withdraw-modal header button { display: grid; place-items: center; width: 38px; aspect-ratio: 1; border-radius: 50%; background: rgba(0,0,0,.24); color: inherit; }
.player-topbar .rate-toggle { width: 54px; aspect-ratio: auto; border-radius: 6px; font-size: 12px; font-weight: 700; }
.rate-menu { position: absolute; z-index: 8; top: max(60px, calc(env(safe-area-inset-top) + 48px)); right: 12px; display: none; width: 104px; overflow: hidden; border-radius: 7px; background: rgba(24,24,26,.92); box-shadow: 0 8px 24px rgba(0,0,0,.28); }
.rate-menu.open { display: block; }
.rate-menu button { display: block; width: 100%; height: 40px; color: rgba(255,255,255,.78); background: transparent; font-size: 12px; }
.rate-menu button + button { border-top: 1px solid rgba(255,255,255,.08); }
.rate-menu button.active { color: white; background: var(--red); font-weight: 700; }
.gesture-hud { position: absolute; z-index: 7; left: 50%; top: 44%; max-width: 82%; padding: 10px 14px; transform: translate(-50%, -50%) scale(.96); border-radius: 7px; color: white; background: rgba(0,0,0,.68); opacity: 0; pointer-events: none; transition: .16s ease; font-size: 13px; font-weight: 700; text-align: center; }
.gesture-hud.show { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.reward-pendant { position: absolute; top: max(76px, calc(env(safe-area-inset-top) + 62px)); left: 12px; display: flex; align-items: center; gap: 7px; min-width: 126px; padding: 6px 10px 6px 7px; border-radius: 22px; color: #7b4210; background: rgba(255,242,199,.94); box-shadow: 0 3px 12px rgba(0,0,0,.18); }
.reward-pendant img { width: 29px; height: 29px; object-fit: contain; }
.reward-pendant span { flex: 1; }
.reward-pendant strong { display: block; font-size: 11px; }
.reward-pendant i { display: block; width: 100%; height: 3px; margin-top: 4px; overflow: hidden; border-radius: 3px; background: rgba(122,65,16,.15); }
.reward-pendant b { display: block; width: 0; height: 100%; background: var(--gold); transition: width .25s linear; }
.player-actions { position: absolute; z-index: 4; right: 10px; bottom: 145px; display: flex; flex-direction: column; gap: 14px; }
.player-actions button { display: flex; flex-direction: column; align-items: center; gap: 4px; background: transparent; color: white; text-shadow: 0 1px 5px rgba(0,0,0,.65); }
.player-actions button span { display: grid; place-items: center; width: 43px; aspect-ratio: 1; border-radius: 50%; background: rgba(0,0,0,.24); }
.player-actions button:first-child span { background: var(--red); }
.player-actions button.followed span, .player-actions button.active span { color: white; background: var(--red); }
.player-actions button.active svg { fill: white; }
.player-actions em { font-size: 11px; font-style: normal; }
.player-meta { position: absolute; z-index: 3; inset: auto 70px 70px 14px; color: white; }
.official-badge { display: inline-block; margin-bottom: 7px; padding: 3px 6px; border-radius: 4px; background: var(--red); font-size: 10px; }
.player-meta h2 { margin: 0 0 7px; font-size: 18px; }
.player-meta p { margin: 0 0 11px; overflow: hidden; color: rgba(255,255,255,.8); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.player-meta button { display: flex; align-items: center; gap: 4px; padding: 0; color: white; background: transparent; font-size: 12px; }
.player-meta button svg { width: 15px; }
.player-progress { position: absolute; z-index: 4; right: 12px; bottom: max(18px, env(safe-area-inset-bottom)); left: 12px; display: grid; grid-template-columns: 38px minmax(0, 1fr) 38px; align-items: center; gap: 7px; color: rgba(255,255,255,.88); font-size: 10px; font-variant-numeric: tabular-nums; }
.player-progress input { width: 100%; height: 18px; margin: 0; accent-color: var(--red); cursor: pointer; }
.player-progress span:last-child { text-align: right; }
.center-play { position: absolute; z-index: 3; left: 50%; top: 50%; display: grid; place-items: center; width: 62px; aspect-ratio: 1; transform: translate(-50%,-50%); border-radius: 50%; color: white; background: rgba(0,0,0,.46); }
.center-play svg { width: 28px; height: 28px; fill: white; }
.center-play.hidden { opacity: 0; pointer-events: none; }
.ad-player { position: absolute; z-index: 30; inset: 0; display: none; overflow: hidden; color: white; background: #000; touch-action: none; user-select: none; }
.ad-player.open { display: block; }
.ad-player.clickable { cursor: pointer; }
.ad-player > video, .ad-player > img { position: absolute; inset: 0; display: none; width: 100%; height: 100%; object-fit: cover; background: black; }
.ad-player.has-video > video, .ad-player.has-image > img { display: block; }
.ad-black { position: absolute; inset: 0; display: block; background: #000; }
.ad-player.has-media .ad-black { display: none; }
.ad-black svg { display: none; }
.ad-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(rgba(0,0,0,.38), transparent 24%, transparent 58%, rgba(0,0,0,.84)); }
.ad-topbar { position: absolute; z-index: 2; inset: 0 0 auto; display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 9px; padding: max(14px, env(safe-area-inset-top)) 12px 10px; }
.ad-topbar button { display: grid; place-items: center; width: 38px; aspect-ratio: 1; border-radius: 50%; color: white; background: rgba(0,0,0,.28); }
.ad-topbar span { justify-self: start; padding: 4px 8px; border-radius: 4px; color: rgba(255,255,255,.9); background: rgba(0,0,0,.36); font-size: 11px; font-weight: 700; }
.ad-topbar strong { min-width: 57px; padding: 7px 10px; border-radius: 16px; background: rgba(0,0,0,.48); font-size: 12px; text-align: center; font-variant-numeric: tabular-nums; }
.ad-copy { position: absolute; z-index: 2; right: 18px; bottom: max(48px, calc(env(safe-area-inset-bottom) + 42px)); left: 16px; }
.ad-copy > span { display: inline-block; padding: 3px 6px; border: 1px solid rgba(255,255,255,.52); border-radius: 4px; font-size: 9px; }
.ad-copy h2 { margin: 9px 0 6px; font-size: 20px; }
.ad-copy p { margin: 0; color: rgba(255,255,255,.76); font-size: 12px; }
.ad-copy button { display: inline-flex; align-items: center; gap: 5px; margin-top: 12px; padding: 8px 13px; border: 1px solid rgba(255,255,255,.66); border-radius: 18px; color: #fff; background: rgba(0,0,0,.42); font-size: 11px; font-weight: 700; }
.ad-copy button[hidden] { display: none; }
.ad-copy button svg { width: 13px; height: 13px; }
.ad-timeline { position: absolute; z-index: 2; right: 12px; bottom: max(18px, env(safe-area-inset-bottom)); left: 12px; height: 3px; overflow: hidden; border-radius: 3px; background: rgba(255,255,255,.25); }
.ad-timeline i { display: block; width: 0; height: 100%; background: white; transition: width .2s linear; }
.ad-player.visit-mode .ad-copy, .ad-player.visit-mode .ad-timeline, .ad-player.visit-mode > video, .ad-player.visit-mode > img, .ad-player.visit-mode > .ad-black, .ad-player.visit-mode > .ad-shade { display: none !important; }
.ad-visit-gate { position: absolute; z-index: 1; inset: 0; display: grid; grid-template-rows: auto minmax(0,1fr) auto; padding-top: max(68px, calc(env(safe-area-inset-top) + 58px)); color: #2f291f; background: #f7efe2; touch-action: pan-y; user-select: auto; }
.ad-visit-gate[hidden] { display: none !important; }
.ad-visit-browserbar { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 13px; border-bottom: 1px solid #e7d7c1; background: #fffaf2; }
.ad-visit-browserbar > svg { flex: 0 0 auto; width: 18px; height: 18px; color: #438169; }
.ad-visit-browserbar div { min-width: 0; }
.ad-visit-browserbar strong, .ad-visit-browserbar span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-visit-browserbar strong { font-size: 13px; }
.ad-visit-browserbar span { margin-top: 2px; color: #8d806f; font-size: 9px; }
.ad-visit-frame-wrap { position: relative; min-height: 0; background: #efe4d4; }
.ad-visit-external-state { display: grid; align-content: center; justify-items: center; gap: 10px; padding: 30px; color: #7d6d5b; text-align: center; }
.ad-visit-external-state > svg { width: 36px; height: 36px; color: #a85b38; }
.ad-visit-external-state strong { color: #4d3a2e; font-size: 18px; }
.ad-visit-external-state span { max-width: 260px; font-size: 12px; line-height: 1.6; }
.ad-visit-external-state small { color: #9c8e7e; font-size: 10px; }
.ad-visit-footer { display: grid; gap: 10px; padding: 12px 13px calc(13px + env(safe-area-inset-bottom)); border-top: 1px solid #e7d7c1; background: #fffaf2; }
.ad-visit-progress-copy { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ad-visit-progress-copy strong { font-size: 12px; }
.ad-visit-progress-copy span { color: #8d806f; font-size: 9px; text-align: right; }
.ad-visit-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.ad-visit-actions button { min-height: 42px; padding: 0 11px; border: 1px solid #dfcbb1; border-radius: 9px; color: #70462f; background: #fff; font-size: 11px; font-weight: 800; }
.ad-visit-actions button:first-child { display: flex; align-items: center; justify-content: center; gap: 6px; }
.ad-visit-actions button svg { width: 14px; height: 14px; }
.ad-visit-actions button.primary { border-color: #a85b38; color: white; background: #a85b38; }
.ad-visit-actions button:disabled { border-color: #e7ded2; color: #aaa094; background: #eee9e2; }

.sheet-backdrop { position: fixed; z-index: 109; inset: 0; display: none; background: rgba(0,0,0,.45); }
.sheet-backdrop.open { display: block; }
.episode-sheet { position: fixed; z-index: 110; left: 0; right: 0; bottom: 0; max-height: 72dvh; padding: 18px 16px calc(20px + env(safe-area-inset-bottom)); transform: translateY(105%); border-radius: 8px 8px 0 0; background: white; transition: transform .22s ease; }
.episode-sheet.open { transform: translateY(0); }
.episode-sheet header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; }
.episode-sheet h2 { margin: 0 0 4px; font-size: 19px; }
.episode-sheet p { margin: 0; color: var(--muted); font-size: 11px; }
.episode-sheet header button { color: var(--ink); background: var(--soft); }
.episode-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; max-height: calc(72dvh - 95px); overflow-y: auto; }
.episode-grid button { aspect-ratio: 1.25; border-radius: 6px; background: var(--soft); font-size: 12px; }
.episode-grid button.active { color: white; background: var(--red); }
.episode-grid button.locked { cursor: default; color: #b8b9bd; background: #f0f0f2; text-decoration: line-through; }
.episode-grid button.locked::after { content: ""; }

.comment-sheet { position: fixed; z-index: 110; left: 0; right: 0; bottom: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: min(68dvh, 620px); padding: 18px 16px calc(12px + env(safe-area-inset-bottom)); transform: translateY(105%); border-radius: 8px 8px 0 0; background: white; transition: transform .22s ease; }
.comment-sheet.open { transform: translateY(0); }
.comment-sheet header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.comment-sheet h2 { margin: 0 0 4px; font-size: 19px; }
.comment-sheet header p { margin: 0; color: var(--muted); font-size: 11px; }
.comment-sheet header button { display: grid; place-items: center; width: 38px; aspect-ratio: 1; border-radius: 50%; background: var(--soft); }
.comment-list { min-height: 0; overflow-y: auto; }
.comment-item { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.comment-avatar { display: grid; place-items: center; width: 36px; aspect-ratio: 1; border-radius: 50%; color: white; background: #ff786f; font-size: 13px; font-weight: 700; }
.comment-item strong { display: block; color: #686a70; font-size: 12px; }
.comment-item p { margin: 5px 0 7px; font-size: 14px; line-height: 1.55; word-break: break-word; }
.comment-item time { color: #a0a1a6; font-size: 10px; }
.comment-empty { margin: 52px 0; color: var(--muted); text-align: center; font-size: 13px; }
.comment-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; padding-top: 12px; border-top: 1px solid var(--line); }
.comment-form input { min-width: 0; height: 40px; padding: 0 12px; border: 0; border-radius: 7px; background: var(--soft); }
.comment-form button { min-width: 64px; border-radius: 7px; color: white; background: var(--red); font-size: 13px; font-weight: 700; }

.modal-backdrop { position: fixed; z-index: 120; inset: 0; display: none; place-items: center; padding: 18px; background: rgba(0,0,0,.5); }
.modal-backdrop.open { display: grid; }
.withdraw-modal { width: min(100%, 390px); padding: 20px; border-radius: 8px; background: white; }
.withdraw-modal header { display: flex; align-items: center; justify-content: space-between; }
.withdraw-modal h2 { margin: 0; font-size: 20px; }
.withdraw-modal header button { color: var(--ink); background: var(--soft); }
.available-cash { margin: 24px 0 12px; color: var(--muted); font-size: 13px; }
.available-cash strong { display: block; margin-top: 4px; color: var(--ink); font-size: 28px; }
.amount-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-bottom: 20px; }
.amount-options button { height: 48px; border: 1px solid var(--line); border-radius: 7px; background: white; }
.amount-options .active { border-color: var(--red); color: var(--red); background: #fff5f4; font-weight: 700; }
.wallet-channel { display: grid; grid-template-columns: auto 38px 1fr; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); cursor: pointer; }
.channel-icon { display: grid; place-items: center; width: 36px; aspect-ratio: 1; border-radius: 8px; color: white; }
.channel-icon.green { background: var(--green); }
.channel-icon.blue { background: var(--blue); }
.wallet-channel strong, .wallet-channel em { display: block; }
.wallet-channel strong { margin-bottom: 4px; font-size: 13px; }
.wallet-channel em { color: var(--muted); font-size: 10px; font-style: normal; }
.withdraw-modal .full { margin-top: 13px; }
.toast { position: fixed; z-index: 200; left: 50%; bottom: 88px; max-width: min(86vw, 360px); padding: 10px 16px; transform: translate(-50%, 20px); border-radius: 7px; color: white; background: rgba(20,20,22,.88); opacity: 0; pointer-events: none; transition: .2s ease; font-size: 13px; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

@media (min-width: 720px) {
  .app-shell { display: grid; grid-template-columns: 210px minmax(0,1fr); max-width: 1440px; margin: 0 auto; box-shadow: 0 0 40px rgba(20,24,32,.08); }
  .desktop-rail { position: sticky; top: 0; display: flex; flex-direction: column; height: 100vh; padding: 25px 18px; border-right: 1px solid var(--line); background: white; }
  .brand-mark { display: flex; align-items: center; gap: 10px; padding: 2px 6px 24px; background: transparent; font-size: 18px; }
  .rail-nav { display: flex; flex-direction: column; gap: 5px; }
  .rail-item { display: flex; align-items: center; gap: 13px; width: 100%; height: 48px; padding: 0 13px; border-radius: 8px; background: transparent; color: #686a70; }
  .rail-item.active { color: var(--red); background: #fff2f1; font-weight: 700; }
  .rail-item.install-nav-action { margin-top: 4px; border: 1px solid #e7c9a5; color: var(--red-dark); background: linear-gradient(135deg,#fffaf2,#f3dfc7); font-weight: 800; }
  .rail-item.install-nav-action:hover { background: #f1dac0; }
  .rail-balance { display: flex; align-items: center; gap: 9px; margin-top: auto; padding: 12px; border-radius: 8px; background: #fff7e7; }
  .rail-balance img { width: 30px; height: 30px; object-fit: contain; }
  .rail-balance span, .rail-balance strong { display: block; }
  .rail-balance span { color: #986820; font-size: 10px; }
  .rail-balance strong { margin-top: 2px; font-size: 14px; }
  .main-stage { min-width: 0; padding-bottom: 0; }
  .bottom-nav { display: none; }
  .mobile-brand { display: flex; }
  .topbar { grid-template-columns: 168px 1fr auto; padding: 0 26px; }
  .top-tabs { justify-content: center; gap: 18px; }
  .category-strip, .catalog-section { padding-left: 26px; padding-right: 26px; }
  .featured-ranking { margin-left: 26px; margin-right: 26px; padding: 18px; }
  .featured-board { gap: 13px; }
  .featured-rank-column { gap: 9px; }
  .featured-rank-row { display: grid; grid-template-columns: 38px 72px minmax(0,1fr) 32px; align-items: center; gap: 10px; min-height: 84px; padding: 8px; }
  .featured-rank-row > em { position: static; color: var(--red); font-size: 18px; text-align: center; text-shadow: none; }
  .featured-rank-cover { width: 72px; height: 68px; }
  .featured-rank-copy { min-height: 0; padding: 0; }
  .featured-rank-copy b { display: block; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
  .featured-rank-play { position: static; width: 30px; height: 30px; }
  .catalog-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 22px 14px; }
  .page-header { padding-left: 28px; padding-right: 28px; }
  #view-recommend.active { height: 100dvh; }
  .recommend-slide { width: min(100%,680px); }
  .recommend-feed-copy { right: 94px; bottom: 86px; left: 24px; }
  .recommend-feed-copy b { font-size: 24px; }
  .recommend-open { right: 24px; bottom: 104px; }
  .wallet-hero, .checkin-strip { margin-left: 28px; margin-right: 28px; }
  .task-section, .following-list { padding-left: 28px; padding-right: 28px; }
  .profile-stats, .profile-menu { max-width: 760px; }
  .episode-sheet { left: 50%; width: min(620px, calc(100vw - 240px)); transform: translate(-50%,105%); }
  .episode-sheet.open { transform: translate(-50%,0); }
  .comment-sheet { left: 50%; width: min(620px, calc(100vw - 240px)); transform: translate(-50%,105%); }
  .comment-sheet.open { transform: translate(-50%,0); }
  .episode-grid { grid-template-columns: repeat(8,1fr); }
}

@media (min-width: 1120px) {
  .catalog-grid { grid-template-columns: repeat(5,minmax(0,1fr)); }
}

@media (max-width: 390px) {
  .topbar { padding-left: 10px; padding-right: 8px; gap: 5px; }
  .top-tabs { gap: 16px; }
  .top-tab { font-size: 14px; }
  .episode-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* 账户、游客登录提示与个人中心弹层 */
.profile-identity { width: 100%; padding: 0; border: 0; text-align: left; background: transparent; }
.profile-identity > svg { margin-left: auto; width: 19px; color: #7b625c; }
.profile-identity:hover .profile-identity h1 { color: var(--red-dark); }
.account-modal-backdrop { z-index: 160; align-items: end; padding: 0; }
.account-modal { position: relative; width: min(100%, 430px); padding: 28px 22px calc(25px + env(safe-area-inset-bottom)); border-radius: 18px 18px 0 0; background: white; box-shadow: 0 -10px 40px rgba(0,0,0,.16); animation: account-sheet-in .24s ease; }
@keyframes account-sheet-in { from { transform: translateY(24px); opacity: .7; } to { transform: translateY(0); opacity: 1; } }
.modal-close { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--soft); color: var(--ink); }
.account-modal > .modal-close { position: absolute; top: 14px; right: 14px; }
.account-modal-head { padding-right: 36px; }
.account-logo { display: grid; place-items: center; width: 42px; aspect-ratio: 1; margin-bottom: 14px; border-radius: 13px; color: white; background: var(--red); }
.account-logo svg { width: 23px; fill: white; }
.account-modal h2 { margin: 0; font-size: 22px; line-height: 1.3; }
.account-modal-head p { margin: 8px 0 22px; color: var(--muted); font-size: 13px; }
.auth-tabs { display: grid; grid-template-columns: repeat(2, 1fr); height: 44px; margin-bottom: 20px; border-radius: 8px; padding: 4px; background: var(--soft); }
.auth-tabs button { border-radius: 6px; color: var(--muted); background: transparent; font-size: 14px; }
.auth-tabs button.active { color: var(--ink); background: white; box-shadow: 0 1px 4px rgba(20,24,32,.1); font-weight: 700; }
.auth-field { display: block; margin-bottom: 17px; }
.auth-field > span { display: block; margin-bottom: 8px; color: #3f4147; font-size: 13px; font-weight: 700; }
.auth-field input { width: 100%; height: 47px; padding: 0 13px; border: 1px solid #e4e5e8; border-radius: 8px; background: white; color: var(--ink); font-size: 14px; }
.auth-field input:focus { border-color: var(--red); outline: 0; }
.code-field { display: grid; grid-template-columns: minmax(0, 1fr) 106px; gap: 9px; }
.code-field button { border-radius: 8px; color: var(--red); background: #fff1f0; font-size: 12px; font-weight: 700; }
.code-field button:disabled { color: #a2a3a8; background: var(--soft); }
.auth-note { min-height: 18px; margin: -5px 0 17px; color: var(--muted); font-size: 11px; }
.auth-note.error { color: #e33b34; }
.auth-note.success { color: var(--green); }
.profile-modal-backdrop { z-index: 155; align-items: end; padding: 0; }
.profile-panel { display: grid; grid-template-rows: auto minmax(0, 1fr); width: min(100%, 620px); max-height: min(78dvh, 680px); min-height: 330px; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); border-radius: 18px 18px 0 0; background: white; }
.profile-panel header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.profile-panel h2 { margin: 0 0 4px; font-size: 20px; }
.profile-panel header p { margin: 0; color: var(--muted); font-size: 12px; }
.profile-panel-content { min-height: 0; overflow-y: auto; padding-top: 4px; }
.profile-panel-empty { display: grid; place-items: center; min-height: 235px; color: var(--muted); text-align: center; font-size: 13px; line-height: 1.7; }
.profile-panel-empty i { display: block; margin-bottom: 11px; color: #c6c7cb; }
.profile-panel-empty svg { width: 38px; height: 38px; }
.account-info-card { margin-top: 15px; padding: 16px; border-radius: 11px; background: #fff5f3; }
.account-info-card strong, .account-info-card span { display: block; }
.account-info-card strong { font-size: 16px; }
.account-info-card span { margin-top: 5px; color: #866a65; font-size: 12px; }
.profile-action-list { margin-top: 14px; }
.profile-action-list button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 54px; padding: 0; border-bottom: 1px solid var(--line); color: var(--ink); background: transparent; text-align: left; }
.profile-action-list button span { color: var(--muted); font-size: 12px; }
.profile-action-list .danger { color: #e83931; }
.history-entry { display: grid; grid-template-columns: 94px minmax(0,1fr); gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); text-align: left; background: transparent; width: 100%; }
.history-entry-cover { width: 94px; aspect-ratio: 16/10; border-radius: 7px; background-position: center; background-size: cover; }
.history-entry h3 { margin: 4px 0 7px; overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.history-entry p { margin: 0; color: var(--muted); font-size: 11px; }
.referral-hero { margin-top: 14px; padding: 20px; border-radius: 16px; color: #fff; background: linear-gradient(135deg,#9c5637,#cf8a4b); box-shadow: 0 12px 28px rgba(146,82,47,.2); }
.referral-hero > span { font-size: 11px; opacity: .82; }
.referral-code-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 9px; }
.referral-code-line strong { font-size: 27px; letter-spacing: .12em; }
.referral-code-line button { padding: 8px 12px; border-radius: 999px; color: #7b422c; background: #fff5e8; font-size: 11px; font-weight: 700; }
.referral-link { margin-top: 10px; overflow: hidden; opacity: .8; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.referral-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 12px; }
.referral-stats article { padding: 13px 8px; border: 1px solid var(--line); border-radius: 12px; background: #fffaf2; text-align: center; }
.referral-stats strong, .referral-stats span { display: block; }
.referral-stats strong { color: var(--red-dark); font-size: 17px; }
.referral-stats span { margin-top: 4px; color: var(--muted); font-size: 10px; }
.referral-share { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 12px; }
.referral-share button { min-height: 42px; border-radius: 10px; color: var(--red-dark); background: #f4e3cf; font-size: 12px; font-weight: 700; }
.referral-share button.primary { color: white; background: var(--red); }
.referral-bind { margin-top: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 13px; }
.referral-bind h3 { margin: 0 0 5px; font-size: 15px; }
.referral-bind p { margin: 0 0 12px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.referral-bind-form { display: grid; grid-template-columns: minmax(0,1fr) 82px; gap: 8px; }
.referral-bind-form input { min-width: 0; height: 42px; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; text-transform: uppercase; }
.referral-bind-form button { border-radius: 9px; color: white; background: var(--red); font-size: 12px; font-weight: 700; }
.referral-bound { margin-top: 17px; padding: 14px; border-radius: 12px; color: #246b56; background: #eaf5ef; font-size: 12px; line-height: 1.6; }
.referral-rules { margin: 14px 0 0; padding-left: 18px; color: var(--muted); font-size: 10px; line-height: 1.8; }
@media (min-width: 720px) { .account-modal-backdrop, .profile-modal-backdrop { align-items: center; padding: 18px; } .account-modal, .profile-panel { border-radius: 14px; } .account-modal { padding-bottom: 26px; } .profile-panel { max-height: min(76dvh, 680px); } }

/* 品牌图标使用土豆 SVG，不再使用旧播放图标底色 */
.account-logo { background: transparent; }
.account-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }

/* 成人频道入口与年龄确认 */
.adult-gate { z-index: 190; background: rgba(31,22,17,.72); backdrop-filter: blur(6px); }
.adult-gate-card { width: min(100%, 440px); padding: 28px; border: 1px solid #dfc9ae; border-radius: 18px; background: #fffaf2; box-shadow: 0 24px 70px rgba(33,22,15,.3); text-align: center; }
.adult-gate-mark { display: grid; place-items: center; width: 62px; height: 62px; margin: 0 auto 16px; border: 2px solid var(--red); border-radius: 50%; color: var(--red-dark); background: #f6e2c8; font-size: 20px; font-weight: 900; }
.adult-gate-card h2 { margin: 0; font-size: 23px; }
.adult-gate-card > p { margin: 13px 0 17px; color: #6f655a; font-size: 13px; line-height: 1.75; text-align: left; }
.adult-risk-note { display: flex; align-items: flex-start; gap: 9px; padding: 12px; border-radius: 10px; color: #86533b; background: #f6e7d5; font-size: 11px; line-height: 1.6; text-align: left; }
.adult-risk-note svg { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px; }
.adult-gate-actions { display: grid; grid-template-columns: 1fr 1.25fr; gap: 10px; margin-top: 20px; }
.adult-gate-actions button { min-height: 44px; border-radius: 10px; background: #eee5da; font-size: 12px; font-weight: 700; }
.adult-gate-actions #adult-accept { color: white; background: var(--red); }
.adult-gate-actions #adult-accept:hover { background: var(--red-dark); }

@media (max-width: 430px) {
  .adult-gate { align-items: end; padding: 0; }
  .adult-gate-card { width: 100%; padding: 26px 20px calc(22px + env(safe-area-inset-bottom)); border-radius: 20px 20px 0 0; }
  .adult-gate-actions { grid-template-columns: 1fr; }
  .adult-gate-actions #adult-accept { grid-row: 1; }
}
