:root {
  color-scheme: dark;
  --bg: #1a1816;
  --header: #242120;
  --card: #242120;
  --panel: #32302e;
  --field: #242120;
  --footer: #242120;
  --text: #ece8e2;
  --sub: #aaa;
  --muted: #9c958c;
  --line: #3a3633;
  --chip: #32302e;
  --chip-text: #aaa;
  --accent: #c07940;
  --accent-text: #fff;
  --badge: #181715;
  --home-search-bg: #262321e8;
  --home-search-border: #ffffff1a;
  --home-search-text: #ece8e2;
  --home-search-sub: #9c958c;
}
html[data-theme="light"] {
  color-scheme: light;
  --bg: #faf9f7;
  --header: #fff;
  --card: #fff;
  --panel: #fff;
  --field: #f4f2ee;
  --footer: #f2f2f2;
  --text: #2b2a28;
  --sub: #57534e;
  --muted: #8f877d;
  --line: #e9e5df;
  --chip: #f4f2ee;
  --chip-text: #57534e;
  --accent: #b5651d;
  --accent-text: #fff;
  --badge: #28231f;
  --home-hero-overlay: linear-gradient(90deg, rgba(250, 249, 247, .5) 0%, rgba(250, 249, 247, .16) 48%, transparent 80%), linear-gradient(180deg, rgba(250, 249, 247, .04) 0%, rgba(250, 249, 247, .22) 100%);
  --home-search-bg: rgba(255, 255, 255, .52);
  --home-search-border: rgba(255, 255, 255, .82);
  --home-search-text: #2b2a28;
  --home-search-sub: #8f877d;
}
* { box-sizing: border-box; }
html { min-width: 320px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.5 "PingFang SC","Microsoft YaHei",Arial,sans-serif; }
button,input,textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.statusbar { display: none; }
.site-header { height: 60px; background: var(--header); border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1200px; height: 100%; margin: auto; display: flex; align-items: center; gap: 64px; }
.brand { display: inline-flex; align-items: center; gap: 5px; flex: none; }
.brand-icon { width: 31px; height: 31px; }
.brand-word { width: 63px; height: auto; }
html[data-theme="light"] .dark-logo,html:not([data-theme="light"]) .light-logo { display: none; }
.site-nav { display: flex; align-items: center; gap: 24px; color: var(--sub); font-size: 14px; white-space: nowrap; }
.site-nav a { display: inline-flex; align-items: center; gap: 4px; }
.nav-icon { width: 16px; height: 16px; object-fit: contain; }
html[data-theme="light"] .site-nav a.active .nav-icon { filter: brightness(0); }
.site-nav a:hover,.site-nav a.active { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.round-action { min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); background: var(--card); border-radius: 8px; color: var(--text); font-size: 14px; padding: 0 9px; }
.header-action-icon { width: 16px; height: 16px; object-fit: contain; }
.site-nav .nav-icon { opacity: .8; }
.site-nav .nav-icon--home { opacity: .68; }
html[data-theme="light"] .site-nav .nav-icon--home { filter: brightness(0); opacity: .58; }
.site-nav a.active .nav-icon,.site-nav a:hover .nav-icon { opacity: 1; }
.round-action:focus-visible,.chip:focus-visible,.outline-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mobile-actions { display: none; }
.mobile-menu { display: none; }
.content { max-width: 1000px; margin: 0 auto; padding: 22px 0 56px; min-height: 600px; }
.content.narrow { max-width: 820px; }
.crumb { display: flex; align-items: center; gap: 8px; min-height: 28px; margin-bottom: 20px; color: var(--muted); font-size: 12px; }
.back-square { display: inline-grid; place-items: center; width: 28px; height: 28px; background: var(--chip); border-radius: 7px; color: var(--sub); font-size: 22px; line-height: 1; }
.section-title { display: flex; align-items: baseline; gap: 10px; margin: 0 0 18px; }
h1 { margin: 0; font-size: 28px; line-height: 1.4; font-weight: 600; }
.count { color: var(--muted); font-size: 12px; font-weight: 400; }
.filters { display: flex; flex-direction: column; gap: 8px; margin: 0 0 14px; }
.filter-row { display: flex; align-items: center; gap: 12px; min-height: 33px; }
.filter-label { width: 56px; flex: none; color: var(--sub); font-size: 14px; }
.filter-items { display: flex; align-items: center; gap: 6px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.filter-items::-webkit-scrollbar { display: none; }
.chip { border: 1px solid transparent; background: var(--chip); color: var(--chip-text); padding: 4px 13px; min-height: 25px; border-radius: 20px; white-space: nowrap; font-size: 12px; line-height: 16px; }
.chip.active { background: var(--accent); color: var(--accent-text); }
.filter-sort { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.filter-sort .filter-label { width: auto; margin-right: 2px; }
.card-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px 12px; }
.media-card { background: var(--card); border-radius: 10px; overflow: hidden; min-width: 0; display: block; }
.media-card .cover { position: relative; overflow: hidden; background: var(--chip); }
.media-card .cover picture { display: block; width: 100%; height: 100%; }
.media-card.portrait .cover { aspect-ratio: 3/4; }
.media-card.landscape .cover { aspect-ratio: 1.8/1; }
.media-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.media-card.landscape .cover img { object-position: center 24%; }
.duration { position: absolute; right: 6px; bottom: 6px; padding: 2px 4px; background: rgba(0,0,0,.6); border-radius: 3px; color: #fff; font-size: 11px; }
.media-card.portrait .duration { top: 6px; bottom: auto; }
.mobile-card-text { display: none; }
.show-mobile { display: none; }
.card-copy { padding: 6px 8px 9px; }
.card-title { margin: 0; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; line-height: 18px; }
.tags { display: flex; gap: 5px; margin-top: 5px; }
.tag { border-radius: 3px; background: var(--chip); color: var(--sub); padding: 1px 5px; font-size: 10px; line-height: 15px; }
html[data-theme="light"] .tag { background: #eee4d9; color: #b5651d; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 28px auto 0; color: var(--muted); font-size: 11px; }
.pagination a,.pagination span { min-width: 24px; height: 24px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 3px; }
.pagination .selected { border-color: var(--accent); color: var(--accent); }
.end-marker { display: none; text-align: center; color: var(--muted); font-size: 11px; padding: 24px 0 8px; }
.site-footer { background: var(--footer); padding: 38px 0 30px; color: var(--muted); font-size: 12px; }
.footer-inner { max-width: 1000px; margin: auto; }
.page-narrow .footer-inner { max-width: 820px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.footer-brand { display: flex; align-items: center; gap: 5px; }
.footer-brand .brand-icon { width: 40px; height: 40px; }
.footer-brand .brand-word { width: 82px; }
.footer-brand small { margin-left: 10px; color: var(--muted); }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-text { margin: 12px 0; line-height: 1.8; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 10px; display: flex; justify-content: space-between; }
.panel { background: var(--panel); border-radius: 12px; padding: 28px; margin-bottom: 20px; }
.detail-hero { display: flex; gap: 24px; align-items: flex-start; }
.detail-poster { display: block; flex: none; width: 190px; height: 250px; object-fit: cover; border-radius: 8px; overflow: hidden; }
.detail-poster img { width: 100%; height: 100%; object-fit: cover; }
.detail-info { min-width: 0; flex: 1; }
.detail-info h1 { font-size: 26px; margin: 0 0 12px; }
.detail-info p { color: var(--muted); margin: 12px 0; }
.detail-actions { display: flex; gap: 8px; margin-top: 18px; }
.solid-btn,.outline-btn { border-radius: 4px; padding: 8px 15px; font-size: 12px; line-height: 18px; }
.solid-btn { border: 1px solid var(--accent); background: var(--accent); color: #fff; }
.outline-btn { background: transparent; border: 1px solid var(--line); color: var(--sub); }
.detail-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.detail-tabs .chip { border: 1px solid var(--line); background: transparent; color: var(--muted); }
.detail-tabs .chip.active { border-color: var(--accent); color: var(--accent); }
.panel h2,.recommend h2 { font-size: 18px; font-weight: 500; margin: 0 0 14px; }
.chapter-grid { display: grid; grid-template-columns: repeat(16,minmax(0,1fr)); gap: 7px; }
.chapter { min-height: 34px; border: 0; background: var(--chip); border-radius: 3px; color: var(--sub); font-size: 12px; }
.chapter.active { background: var(--accent); color: #fff; }
.comment-card { display: flex; gap: 12px; margin: 10px 0; }
.avatar { flex: none; width: 31px; height: 31px; border-radius: 50%; display: grid; place-items: center; background: #7568ff; color: white; font-size: 12px; }
.comment-card:nth-of-type(2) .avatar { background: #3aa498; }
.comment-body { flex: 1; background: var(--field); border-radius: 4px; padding: 10px; color: var(--sub); font-size: 12px; }
.comment-body strong { color: var(--text); font-size: 12px; }
.comment-body small { display: block; color: var(--muted); margin-top: 8px; }
.comment-form { margin-top: 14px; }
.comment-form input,.comment-form textarea { width: 100%; background: var(--field); border: 0; border-radius: 4px; padding: 11px; margin-bottom: 8px; color: var(--text); }
.comment-form textarea { min-height: 88px; resize: vertical; }
.comment-submit { text-align: right; }
.recommend { margin: 16px 0 0; }
.recommend .card-grid { gap: 12px; }
.reader-title { text-align: center; margin: 12px 0 18px; }
.reader-title h1 { font-size: 24px; }
.reader-title p { margin: 8px 0 0; color: var(--sub); font-size: 20px; }
.reader-controls { display: flex; justify-content: center; gap: 8px; margin: 14px 0 24px; }
.reader-controls a { border: 1px solid var(--accent); color: var(--accent); padding: 3px 10px; font-size: 12px; }
.reader-controls a.disabled { border-color: var(--line); color: var(--muted); }
.manga-page { display: block; width: min(100%,1000px); height: 2260px; margin: auto; object-fit: cover; object-position: top; }
.novel-body { max-width: 1000px; padding: 48px; margin: 30px auto; background: var(--card); border: 1px solid var(--line); border-radius: 12px; font-size: 20px; line-height: 1.8; }
.novel-body p { margin: 0 0 30px; }
.novel-body p:last-child { margin-bottom: 0; }
.frame-detail-layout { display: grid; grid-template-columns: minmax(0,740px) 240px; gap: 20px; align-items: start; }
.frame-main .frame-hero { width: 100%; aspect-ratio: 1.8/1; object-fit: cover; border-radius: 12px; margin-bottom: 14px; }
.frame-hero.mobile-hero { display: none; }
.frame-info h1 { font-size: 24px; }
.frame-info .subline { color: var(--muted); margin: 10px 0; }
.frame-description { color: var(--sub); line-height: 1.8; }
.frame-sidebar .media-card { width: 100%; }
.frame-recommend .card-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.frame-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.frame-tags .tag { padding: 4px 8px; }
.mobile-film { display: none; }
.page-index { width: 100%; margin-top: 24px; border-collapse: collapse; }
.page-index th,.page-index td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.page-index a { color: var(--accent); }
@media (max-width: 1050px) and (min-width: 751px) {
  .header-inner,.footer-inner,.content { margin-left: 24px; margin-right: 24px; }
  .content.narrow { margin-left: auto; margin-right: auto; width: min(820px,calc(100% - 48px)); }
}
@media (min-width: 751px) {
  .media-card.landscape .card-copy { min-height: 74px; }
}
@media (max-width: 750px) {
  .statusbar { height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; background: var(--bg); color: var(--text); font-size: 15px; font-weight: 600; }
  .statusbar img { width: 67px; height: 12px; }
  html[data-theme="light"] .statusbar img.light-logo { filter: brightness(0); }
  .site-header { height: 60px; }
  .header-inner { margin: 0 12px; gap: 0; }
  .brand-icon { width: 40px; height: 40px; }
  .brand-word { width: 82px; }
  .site-nav,.nav-actions { display: none; }
  .mobile-actions { display: flex; margin-left: auto; gap: 8px; }
  .mobile-actions .round-action { height: 34px; min-width: 49px; border-radius: 18px; }
  .mobile-menu.open { display: flex; position: absolute; right: 12px; top: 104px; z-index: 5; flex-direction: column; width: 160px; background: var(--card); box-shadow: 0 8px 32px #0005; border: 1px solid var(--line); border-radius: 8px; padding: 8px; }
  .mobile-menu a { padding: 8px 10px; }
  .content,.content.narrow { width: auto; min-height: 0; margin: 0; padding: 16px 16px 24px; }
  .crumb { margin-bottom: 18px; font-size: 11px; }
  .section-title { gap: 8px; margin-bottom: 18px; }
  h1 { font-size: 20px; }
  .filter-row { display: block; }
  .filter-label { display: block; width: auto; font-size: 12px; margin-bottom: 7px; }
  .filter-items { gap: 5px; }
  .filter-row .filter-sort { margin: 0; }
  .filter-row.desktop-only { display: none; }
  .filter-row.sort-web { display: none; }
  .filter-row.sort-mobile { display: block; margin-top: 12px; }
  .chip { min-height: 26px; padding: 4px 13px; }
  .filters { gap: 12px; margin-bottom: 22px; }
  .card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px 10px; }
  .card-grid.mobile-six > *:nth-child(n+7) { display: none; }
  .media-card { border-radius: 9px; }
  .mobile-card-text { display: inline; }
  .desktop-card-text { display: none; }
  .show-mobile { display: inline; }
  .show-web { display: none; }
  .card-title { font-size: 12px; }
  .card-copy { padding: 6px 7px 8px; }
  .pagination { display: none; }
  .end-marker { display: block; }
  .site-footer { padding: 18px 12px 26px; }
  .footer-inner { max-width: none; }
  .footer-top { display: block; }
  .footer-brand { margin-bottom: 16px; }
  .footer-links { gap: 14px; font-size: 11px; }
  .footer-text { margin: 16px 0; }
  .footer-bottom { display: block; border-top: 0; }
  .footer-bottom .friend-links { display: none; }
  .panel { padding: 12px; border-radius: 9px; margin-bottom: 12px; }
  .detail-hero { gap: 8px; }
  .detail-poster { width: 90px; height: 135px; border-radius: 6px; }
  .detail-info h1 { font-size: 17px; margin: 0 0 5px; }
  .detail-info p { font-size: 11px; margin: 6px 0; }
  .detail-info .tags { margin-top: 3px; }
  .detail-actions { gap: 5px; margin-top: 10px; flex-wrap: wrap; }
  .solid-btn,.outline-btn { padding: 5px 8px; font-size: 11px; }
  .detail-tabs { margin-bottom: 8px; }
  .panel h2,.recommend h2 { font-size: 16px; }
  .chapter-grid { grid-template-columns: repeat(5,minmax(0,1fr)); gap: 5px; }
  .chapter { min-height: 30px; font-size: 10px; }
  .comment-card { gap: 8px; }
  .comment-body { padding: 8px; }
  .comment-submit .solid-btn { width: 100%; }
  .recommend .card-grid { gap: 10px; }
  .recommend .card-grid.mobile-six > *:nth-child(n+6) { display: none; }
  .reader-title { margin-top: 8px; }
  .reader-title h1 { font-size: 18px; }
  .reader-title p { font-size: 16px; }
  .reader-controls { margin: 12px 0 18px; }
  .manga-page { width: 100%; height: 900px; }
  .novel-body { padding: 16px 12px; margin: 30px 0 12px; font-size: 18px; line-height: 1.75; }
  .novel-body p { margin-bottom: 28px; }
  .frame-detail-layout { display: block; }
  .frame-sidebar { display: none; }
  .frame-main .frame-hero.web-hero { display: none; }
  .frame-main .frame-hero.mobile-hero { display: block; }
  .frame-main .frame-hero { aspect-ratio: 1.8/1; border-radius: 9px; margin-bottom: 7px; }
  .frame-info h1 { font-size: 16px; }
  .frame-info .subline { font-size: 11px; }
  .frame-recommend .card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .mobile-film { display: block; }
}

/* 1.1 总画板中新增的首页、搜索、影视库、个人中心和信息页。 */
.extra-content { min-height: 600px; }
.extra-content em { color: var(--accent); font-style: normal; }
.new-media-card .cover { aspect-ratio: 1.8/1; }
.new-media-card .cover img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.new-media-card.portrait-card .cover { aspect-ratio: 198/264; }
.new-card-grid { gap: 12px; }
.home-hero { position: relative; height: 340px; background-color: var(--bg); }
.home-hero::before { content: ''; position: absolute; z-index: 0; top: 0; left: 50%; transform: translateX(-50%); width: min(820px,calc(100% - 48px)); height: 100%; background-color: var(--bg); background-image: var(--home-hero-overlay, none), url('../images/figma-home-imgRectangle1000002181.png'); background-position: calc(50% + 80px) top; background-size: auto 420px; background-repeat: no-repeat; }
.home-inner { position: relative; z-index: 1; max-width: 822px; margin: auto; padding-top: 28px; }
.home-inner h1 { font-size: 48px; line-height: 1.25; letter-spacing: 1px; }
.home-inner > p { max-width: 550px; color: var(--sub); margin: 20px 0 58px; }
.home-search { display: flex; align-items: center; gap: 16px; width: 822px; max-width: 100%; min-height: 80px; margin-top: 8px; padding: 14px; border: 4px solid var(--home-search-border); border-radius: 12px; background: var(--home-search-bg); color: var(--home-search-text); }
.home-search > span { font-size: 24px; color: var(--accent); }
.home-search > div { display: flex; flex-direction: column; flex: 1; }
.home-search strong { font-size: 15px; font-weight: 500; }
.home-search small { color: var(--home-search-sub); }
html[data-theme="light"] .home-search { border-width: 1px; background: var(--home-search-bg); box-shadow: inset 0 0 0 3px rgba(255,255,255,.28), 0 8px 24px rgba(54,40,25,.08); }
html[data-theme="light"] .xy-auth-modal--account .xy-modal__close img { filter: brightness(0); }
.home-section,.home-clips { margin-bottom: 36px; }
.home-section-title { display: flex; justify-content: space-between; align-items: center; margin: 0 0 12px; color: var(--muted); font-size: 12px; }
.home-section-title h2 { margin: 0; color: var(--text); font-size: 18px; font-weight: 500; }
.home-section-title h2::before { content: ''; display: inline-block; width: 7px; height: 7px; background: var(--accent); border-radius: 2px; margin-right: 8px; }
.home-clip-grid { display: grid; grid-template-columns: repeat(8,minmax(0,1fr)); gap: 7px; }
.home-clip-grid span { aspect-ratio: 86/50; overflow: hidden; border-radius: 5px; }
.home-clip-grid img { width: 100%; height: 100%; object-fit: cover; }
.home-content { padding-top: 24px; }
.video-player { height: 438px; position: relative; overflow: hidden; border-radius: 12px; background: #12100e; margin-bottom: 20px; }
.video-player > img { width: 100%; height: 100%; object-fit: cover; }
.play-icon { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); border-radius: 50%; background: #000a; color: #fff; width: 65px; height: 65px; display: grid; place-items: center; font-size: 24px; }
.player-progress { position: absolute; bottom: 14px; left: 22px; right: 22px; color: #fff; font-size: 12px; }
.video-overview { background: linear-gradient(135deg,var(--panel),var(--card)); }
.video-overview h1 { font-size: 24px; font-weight: 500; }
.subline { color: var(--muted); font-size: 12px; }
.video-ad { height: 84px; color: var(--muted); font-size: 12px; padding: 6px; }
.video-facts { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px 24px; font-size: 12px; color: var(--sub); }
.video-facts > span { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.search-layout { display: grid; grid-template-columns: 264px minmax(0,1fr); gap: 28px; align-items: start; }
.search-sidebar { background: var(--card); border: 1px solid var(--line); padding: 18px; border-radius: 12px; display: flex; flex-direction: column; gap: 10px; }
.search-sidebar small { color: var(--muted); }
.search-sidebar h2 { margin: 0; font-size: 18px; }
.search-query { background: var(--bg); padding: 14px; border-radius: 8px; }
.search-source-image { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 8px; }
.search-source-image img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.search-steps { list-style: none; padding: 0; margin: 0; font-size: 12px; color: var(--sub); }
.search-steps li { padding: 4px 0; }
.search-steps li::before { content: '◉'; color: var(--accent); margin-right: 8px; }
.search-sidebar strong { font-size: 20px; font-weight: 500; }
.search-sidebar p { color: var(--accent); font-size: 12px; margin: 0; }
.search-sidebar hr { width: 100%; border: 0; border-top: 1px dashed var(--line); }
.search-sidebar h3 { margin: 0; font-size: 12px; color: var(--sub); }
.sidebar-rec { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sidebar-rec img { width: 100%; aspect-ratio: 1.8/1; object-fit: cover; border-radius: 5px; }
.search-results h1 { font-size: 22px; margin: 2px 0 12px; }
.search-mobile-feedback,.search-h5-grid,.search-mobile-suggest { display: none; }
.search-tabs { display: flex; gap: 6px; overflow: auto; scrollbar-width: none; margin: 10px 0 16px; }
.search-tabs::-webkit-scrollbar { display: none; }
.search-empty { min-height: 440px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.search-empty h2 { font-size: 18px; color: var(--sub); font-weight: 400; }
.empty-glyph { color: var(--accent); font-size: 70px; line-height: 1; }
.search-feedback { display: flex; align-items: center; gap: 8px; background: var(--card); border-radius: 8px; padding: 10px 14px; margin: 12px 0; }
.search-feedback button { background: transparent; border: 1px solid var(--line); color: var(--sub); border-radius: 5px; padding: 4px 12px; }
.search-feedback button:first-of-type { margin-left: auto; }
.search-match { padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 16px; }
.search-match-head { display: flex; gap: 12px; }
.search-match-head > img { width: 138px; height: 110px; object-fit: cover; border-radius: 5px; }
.search-match h2 { font-size: 15px; line-height: 1.4; margin: 0 0 8px; }
.search-match p { color: var(--muted); font-size: 12px; margin: 6px 0; }
.match-shots { display: flex; gap: 8px; overflow: hidden; }
.match-shots span { flex: 0 0 20%; min-width: 0; }
.match-shots img { width: 100%; aspect-ratio: 1.8/1; object-fit: cover; border-radius: 4px; }
.match-shots small { font-size: 10px; color: var(--accent); }
.me-layout { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 24px; }
.me-sidebar { padding: 12px; align-self: start; display: flex; flex-direction: column; background: var(--panel); border-radius: 10px; }
.me-sidebar a { padding: 13px 16px; border-radius: 6px; }
.me-sidebar a.active { background: var(--accent); color: #fff; }
.me-main h1 { font-size: 28px; }
.me-main .subline { margin: 6px 0 12px; }
.load-more { text-align: center; color: var(--muted); margin: 30px 0; font-size: 12px; }
.me-heading { display: flex; align-items: center; justify-content: space-between; }
.history-row { display: flex; align-items: center; gap: 20px; min-height: 140px; padding: 16px; background: var(--panel); border-radius: 10px; margin-bottom: 14px; }
.history-row > img { width: 200px; height: 108px; object-fit: cover; border-radius: 7px; }
.history-row > div { flex: 1; }
.history-row p { color: var(--muted); font-size: 12px; }
.history-progress { width: 230px; height: 3px; background: var(--line); }
.history-progress span { display: block; height: 100%; width: 48%; background: var(--accent); }
.task-summary { display: flex; align-items: center; justify-content: space-between; padding: 30px; border: 1px solid var(--accent); border-radius: 10px; background: var(--card); margin-bottom: 16px; }
.task-summary strong { font-size: 30px; font-weight: 400; }
.task-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.task-item { min-height: 102px; display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 10px; background: var(--card); }
.task-item img { width: 42px; height: 42px; object-fit: cover; }
.task-item div { flex: 1; min-width: 0; }
.task-item h2 { font-size: 14px; margin: 0 0 4px; }
.task-item p { margin: 0; color: var(--muted); font-size: 11px; }
.task-item button { padding: 5px 10px; color: #48b065; border: 1px solid #48b065; background: transparent; border-radius: 4px; }
.info-panel { padding: 30px; border-radius: 12px; background: var(--panel); line-height: 1.9; }
.info-panel h1 { font-size: 28px; font-weight: 500; margin-bottom: 26px; }
.info-panel h2 { font-size: 18px; margin: 24px 0 8px; font-weight: 500; }
.info-panel p { margin: 8px 0; color: var(--sub); }
.info-panel details { padding: 15px 0; border-bottom: 1px solid var(--line); }
.info-panel summary { cursor: pointer; list-style: none; color: var(--sub); }
.info-panel summary::after { content: '⌄'; float: right; }
.info-panel details[open] summary::after { content: '⌃'; }
.info-panel .draft { color: var(--accent); }
.drawer-shade { min-height: 900px; background: #070911; display: flex; justify-content: flex-end; }
.handoff-drawer { width: 290px; max-width: 78vw; min-height: 900px; padding: 16px; background: var(--bg); }
.drawer-user { display: flex; align-items: center; gap: 10px; background: var(--card); border-radius: 12px; padding: 12px; }
.drawer-user span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #d58a33; color: #fff; }
.drawer-user b { margin-left: auto; font-size: 24px; }
.drawer-points { display: flex; flex-direction: column; background: var(--card); margin: 16px 0; border-radius: 12px; padding: 14px; position: relative; }
.drawer-points strong { font-size: 30px; }
.drawer-points span { position: absolute; top: 14px; right: 14px; color: var(--accent); }
.handoff-drawer nav { display: flex; flex-direction: column; gap: 3px; }
.handoff-drawer nav a { padding: 12px; border-radius: 9px; }
.handoff-drawer nav a:first-child { background: var(--panel); }
.drawer-logout { margin-top: 70px; border-top: 1px solid var(--line); padding: 20px 10px; color: var(--muted); }
.component-demo { margin: 16px 0; padding: 18px; background: var(--panel); border-radius: 10px; }
.component-demo h2 { font-size: 17px; margin: 0 0 12px; }
.component-demo h2 a { color: var(--accent); }
.component-icons { display: flex; gap: 16px; align-items: center; }
.component-icons img { width: 32px; height: 32px; }
.component-demo .card-grid { max-width: 500px; }
.component-history { width: 198px; height: 120px; overflow: hidden; border-radius: 8px; }
.component-history img { width: 100%; height: 100%; object-fit: cover; }
.component-history-row { display: flex; align-items: center; gap: 10px; }
.component-history-row img { width: 120px; height: 75px; object-fit: cover; }
.component-history-row span { flex: 1; }
@media (max-width: 750px) {
  .home-hero { height: 360px; }
  .home-hero::before { width: calc(100% - 32px); background-position: calc(50% + 44px) top; background-size: auto 360px; }
  .home-inner { padding: 65px 16px 0; }
  .home-inner h1 { font-size: 32px; }
  .home-inner > p { font-size: 12px; margin: 12px 0 60px; }
  .home-search { min-height: 64px; padding: 8px; gap: 8px; }
  .home-search strong { font-size: 11px; }
  .home-search small { font-size: 9px; }
  .home-search .solid-btn { white-space: nowrap; }
  .home-clip-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .home-clip-grid span:nth-child(n+5) { display: none; }
  .home-section { margin-bottom: 24px; }
  .extra-content { min-height: 0; }
  .new-card-grid { gap: 10px; }
  .video-player { height: 220px; border-radius: 8px; }
  .video-overview h1 { font-size: 17px; }
  .video-facts { gap: 10px; }
  .search-layout { display: block; }
  .search-sidebar { margin-bottom: 16px; }
  .search-sidebar .sidebar-rec,.search-sidebar hr,.search-sidebar h3 { display: none; }
  .search-sidebar .search-steps { display: none; }
  .search-sidebar strong,.search-sidebar > p { display: none; }
  .search-desktop-grid { display: none; }
  .search-h5-grid { display: grid; }
  .search-mobile-feedback { display: flex; align-items: center; gap: 8px; padding: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; font-size: 11px; margin-bottom: 16px; }
  .search-mobile-feedback button { border: 1px solid var(--line); background: transparent; color: var(--sub); border-radius: 5px; padding: 5px; white-space: nowrap; font-size: 10px; }
  .search-mobile-feedback button:first-of-type { margin-left: auto; }
  .search-mobile-suggest { display: block; margin-top: 22px; }
  .search-mobile-suggest h2 { font-size: 14px; margin-bottom: 10px; }
  .search-results h1 { font-size: 18px; }
  .search-match-head { display: block; }
  .search-match-head > img { width: 100%; height: 180px; }
  .match-shots span { flex-basis: 45%; }
  .search-empty { min-height: 260px; }
  .me-layout { display: block; }
  .me-sidebar { display: none; }
  .me-main h1 { font-size: 20px; }
  .history-row { gap: 10px; min-height: 110px; padding: 10px; }
  .history-row > img { width: 105px; height: 90px; }
  .history-row strong { font-size: 12px; }
  .history-row .solid-btn { align-self: flex-end; white-space: nowrap; }
  .history-progress { width: 100px; }
  .task-grid { grid-template-columns: 1fr; }
  .task-summary { padding: 20px; }
  .info-panel { padding: 16px; }
  .info-panel h1 { font-size: 20px; }
  .info-panel h2 { font-size: 16px; }
}
