:root { color-scheme: light; --ink: #1e2228; --muted: #707883; --line: #e4e7eb; --paper: #f7f8fa; --card: #fff; --accent: #e94376; --accent-dark: #b82755; --green: #147d62; --yellow: #a66a00; }
* { box-sizing: border-box; }
body { margin: 0; overflow-x: hidden; color: var(--ink); background: radial-gradient(circle at 10% 0%, #fff 0, #f8f9fb 44%, #f1f3f5 100%); font: 15px/1.6 ui-sans-serif, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; }
.shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 56px 0 40px; }
.hero { padding: 20px 4px 28px; }
.hero-row { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.user-actions { display: flex; align-items: center; gap: 12px; }
.user-actions span { color: var(--muted); font-size: 12px; }
.project-subtitle { margin: 12px 0 0; color: var(--muted); font-size: 16px; }
.eyebrow { margin: 0 0 8px; color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .16em; }
h1, h2 { margin: 0; letter-spacing: -.04em; line-height: 1.15; }
h1 { font-size: clamp(36px, 6vw, 66px); }
h2 { font-size: 28px; }
.subtitle { max-width: 660px; margin: 18px 0 16px; color: var(--muted); font-size: 16px; }
.window-pill { display: inline-flex; max-width: 100%; padding: 6px 11px; color: var(--accent-dark); background: #fff1f5; border: 1px solid #ffd0dd; border-radius: 999px; font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.notice { display: flex; gap: 12px; align-items: baseline; margin: 0 0 20px; padding: 14px 16px; background: #fff9ed; border: 1px solid #f1ddae; color: #6f5319; }
.notice strong { white-space: nowrap; }
.summary-grid { display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid #24282d; background: var(--card); }
.summary-grid article { min-height: 122px; padding: 23px; border-right: 1px solid #24282d; }
.summary-grid article:last-child { border-right: 0; }
.summary-grid span, .stats span, .detail-grid span { display: block; color: var(--muted); font-size: 12px; }
.summary-grid strong { display: block; margin-top: 8px; font-size: 34px; font-weight: 800; letter-spacing: -.04em; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 32px 0 18px; }
.search { flex: 1 1 260px; }
input[type="search"] { width: 100%; height: 42px; padding: 0 13px; border: 1px solid #bfc5cb; border-radius: 2px; background: #fff; color: var(--ink); font: inherit; }
.check { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 0 10px; color: #4c535a; font-size: 13px; }
input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent); }
button { min-height: 42px; padding: 0 16px; border: 1px solid #262a2e; background: #262a2e; color: white; cursor: pointer; font: 700 13px inherit; }
button:hover { background: var(--accent); border-color: var(--accent); }
.logout { min-height: 36px; border-color: #c7ccd1; background: transparent; color: var(--ink); }
.logout:hover { color: white; }
.toolbar select { height: 42px; padding: 0 28px 0 10px; border: 1px solid #bfc5cb; border-radius: 2px; background: white; color: var(--ink); font: 13px inherit; }
.updated { margin-left: auto; color: var(--muted); font-size: 12px; }
.manual-form { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; padding: 14px 16px; border: 1px solid var(--line); background: rgba(255,255,255,.72); }
.manual-form label { color: var(--muted); font-size: 13px; font-weight: 700; }
.manual-form input { flex: 1 1 260px; min-width: 180px; height: 42px; padding: 0 13px; border: 1px solid #bfc5cb; background: #fff; color: var(--ink); font: 13px ui-monospace, SFMono-Regular, Menlo, monospace; }
.manual-status { flex: 1 1 180px; color: var(--muted); font-size: 12px; }
.manual-status.ok { color: var(--green); }
.manual-status.error { color: #a33a35; }
.ledger { padding: 28px; border: 1px solid #24282d; background: rgba(255,255,255,.82); }
.ledger-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 20px; }
.ledger-head > span { color: var(--muted); font-size: 13px; }
.video-list { display: grid; gap: 10px; }
.video-card { border: 1px solid var(--line); background: var(--card); }
.video-card[open] { border-color: #efb4c5; box-shadow: 0 8px 26px rgba(25, 30, 35, .06); }
.video-card summary { display: grid; grid-template-columns: minmax(220px, 2.1fr) minmax(170px, 1fr) minmax(150px, .9fr) minmax(310px, 1.7fr); gap: 18px; align-items: center; padding: 16px 18px; cursor: pointer; list-style: none; }
.video-card summary::-webkit-details-marker { display: none; }
.title-line { min-width: 0; }
.video-title { display: block; overflow: hidden; color: var(--ink); font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.title-line a { color: var(--accent-dark); font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; text-decoration: none; }
.title-line a:hover { text-decoration: underline; }
.meta-line { color: var(--muted); font-size: 12px; }
.status-line { display: flex; gap: 5px; flex-wrap: wrap; }
.tag { display: inline-flex; padding: 2px 7px; border-radius: 999px; font-size: 11px; white-space: nowrap; }
.tag.ok { color: var(--green); background: #e7f7f0; }
.tag.topic { color: #17609b; background: #e8f2fb; }
.tag.legacy { color: #6b4c9a; background: #f0eafa; }
.tag.hidden { color: #9b4f16; background: #fff0df; }
.tag.manual { color: #5a4f9b; background: #eeeafd; }
.tag.warn { color: var(--yellow); background: #fff4d9; }
.tag.muted { color: #68727b; background: #eef0f2; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stats b { display: block; margin-top: 1px; font-size: 16px; }
.stats .vote { color: var(--accent-dark); }
.detail { padding: 18px 20px 20px; border-top: 1px solid var(--line); background: #fcfcfd; }
.detail-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 14px; }
.detail-grid p { margin: 0; }
.detail-grid strong { font-size: 18px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 15px; }
.tags span { padding: 3px 8px; color: #555c63; background: #eef1f4; border-radius: 3px; font-size: 12px; }
.chart { display: block; width: 100%; height: auto; min-height: 150px; border: 1px solid var(--line); background: white; }
.chart line { stroke: #dfe4e8; stroke-width: 1; }
.chart polyline { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.chart text { fill: #87909a; font-size: 10px; }
.chart-empty, .caption, .empty { margin: 0; color: var(--muted); font-size: 13px; }
.caption { margin-top: 10px; }
.detail-actions { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.remove-video { min-height: 34px; padding: 0 11px; border-color: #b34d47; background: transparent; color: #a33a35; font-size: 12px; }
.remove-video:hover { border-color: #a33a35; background: #a33a35; color: white; }
.empty { padding: 42px 10px; text-align: center; }
.empty.error { color: #a33a35; }
footer { padding: 20px 4px 0; color: var(--muted); font-size: 12px; }
footer p { margin: 4px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.login-page { display: grid; min-height: 100vh; place-items: center; padding: 20px; }
.login-card { width: min(100%, 430px); padding: 42px; border: 1px solid #24282d; background: rgba(255,255,255,.92); box-shadow: 14px 14px 0 #f1d7df; }
.login-card h1 { font-size: 48px; }
.login-card > p:not(.eyebrow) { margin: 12px 0 30px; color: var(--muted); }
.login-card form { display: grid; gap: 9px; }
.login-card label { font-size: 13px; font-weight: 700; }
.login-card input { height: 46px; padding: 0 12px; border: 1px solid #aeb5bc; font: inherit; }
.login-card button { margin-top: 10px; }
.login-card small { display: block; margin-top: 24px; color: var(--muted); font-size: 12px; }
.login-error { min-height: 24px; color: #a33a35; font-size: 13px; }
.login-link { margin: 16px 0 0 !important; font-size: 13px; }
.login-link a { color: var(--accent-dark); font-weight: 700; }
@media (max-width: 900px) { .video-card summary { grid-template-columns: 1.4fr 1fr; } .status-line { grid-column: 1 / 2; } .stats { grid-column: 2 / 3; } }
@media (max-width: 640px) { .shell { width: min(100% - 20px, 560px); padding-top: 28px; } .hero { padding-top: 10px; } .hero-row { display: block; } .hero-row h1 { font-size: 42px; } .user-actions { width: 100%; justify-content: space-between; margin-top: 14px; } .logout { min-height: 44px; } .notice { display: block; } .notice span { display: block; margin-top: 5px; } .summary-grid { grid-template-columns: repeat(2, 1fr); } .summary-grid article { min-height: 106px; padding: 16px 14px; } .summary-grid article:nth-child(odd) { border-right: 1px solid #24282d; } .summary-grid article:nth-child(even) { border-right: 0; } .summary-grid article:nth-child(n + 3) { border-top: 1px solid #24282d; } .summary-grid strong { font-size: 27px; } .toolbar { align-items: stretch; gap: 8px; margin-top: 24px; } .search, .toolbar label, .toolbar select { flex-basis: 100%; width: 100%; } .toolbar select, input[type="search"] { min-height: 44px; height: 44px; font-size: 16px; } .toolbar button { width: 100%; min-height: 44px; } .updated { width: 100%; margin-left: 0; padding: 2px 0; } .manual-form { display: grid; grid-template-columns: 1fr; gap: 8px; margin-bottom: 16px; padding: 14px; } .manual-form label, .manual-form input, .manual-form button, .manual-status { width: 100%; min-width: 0; } .manual-form input { min-height: 44px; height: 44px; font-size: 16px; } .manual-form button { min-height: 44px; } .manual-status { min-height: 22px; } .ledger { padding: 18px 10px; } .ledger-head { align-items: start; gap: 10px; } .video-card summary { display: block; min-height: 44px; padding: 15px; touch-action: manipulation; } .title-line a { display: inline-block; margin-top: 4px; padding: 4px 0; } .video-title { overflow: visible; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; white-space: normal; line-height: 1.45; } .meta-line { margin-top: 8px; } .status-line { margin: 10px 0; } .tag { min-height: 24px; align-items: center; } .stats { grid-template-columns: repeat(2, 1fr); gap: 10px 18px; } .stats div { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); padding-top: 7px; } .stats b { margin: 0; } .detail { padding: 15px; } .detail-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } .detail-grid strong { overflow-wrap: anywhere; } .detail-actions { align-items: stretch; flex-direction: column; gap: 8px; } .remove-video { width: 100%; min-height: 44px; } .login-card { padding: 30px 24px; } }
@media (max-width: 375px) { .shell { width: calc(100% - 16px); } .hero-row h1 { font-size: 38px; } .summary-grid article { padding-left: 12px; padding-right: 12px; } .summary-grid strong { font-size: 24px; } .ledger { padding-left: 8px; padding-right: 8px; } .video-card summary, .detail { padding-left: 12px; padding-right: 12px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }
