788 lines
23 KiB
CSS
788 lines
23 KiB
CSS
:root {
|
|
color-scheme: light dark;
|
|
--bg: #f7f2ea;
|
|
--bg-deep: #efe7db;
|
|
--surface: #fffdf9;
|
|
--surface-2: #f2ebe0;
|
|
--surface-3: #e9ddca;
|
|
--text: #2a201a;
|
|
--muted: #7b6a58;
|
|
--faint: #a3927f;
|
|
--border: #e6d8c4;
|
|
--grid: #eadfce;
|
|
--accent: #a9702f;
|
|
--accent-strong: #8a5417;
|
|
--accent-soft: #f3e2c5;
|
|
--accent-contrast: #ffffff;
|
|
--blue: #5f7f96;
|
|
--blue-soft: #e3edf3;
|
|
--pink: #c25a52;
|
|
--warning: #b9793a;
|
|
--warning-soft: #f7e6c8;
|
|
--danger: #b4553f;
|
|
--success: #5f7a4e;
|
|
--radius: 16px;
|
|
--radius-small: 10px;
|
|
--shadow: 0 10px 30px rgba(42, 32, 26, 0.08);
|
|
--nav-width: 220px;
|
|
--nav-height: 64px;
|
|
}
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
:root {
|
|
--bg: #1b1411;
|
|
--bg-deep: #140f0c;
|
|
--surface: #221a15;
|
|
--surface-2: #2a201a;
|
|
--surface-3: #342820;
|
|
--text: #f3e9dc;
|
|
--muted: #c9b6a0;
|
|
--faint: #9c8976;
|
|
--border: #3a2c22;
|
|
--grid: #3a2c22;
|
|
--accent: #e9b97c;
|
|
--accent-strong: #f6d9ae;
|
|
--accent-soft: #e9b97c29;
|
|
--accent-contrast: #2a1a10;
|
|
--blue: #a8bccc;
|
|
--blue-soft: #a8bccc1f;
|
|
--pink: #e3958c;
|
|
--warning: #e9b97c;
|
|
--warning-soft: #e9b97c1f;
|
|
--danger: #e3958c;
|
|
--success: #a7b98f;
|
|
--shadow: 0 14px 38px rgba(0, 0, 0, 0.35);
|
|
}
|
|
}
|
|
|
|
* { box-sizing: border-box; }
|
|
|
|
html { -webkit-text-size-adjust: 100%; }
|
|
|
|
body {
|
|
margin: 0;
|
|
min-height: 100vh;
|
|
background: var(--bg);
|
|
color: var(--text);
|
|
font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC",
|
|
"Hiragino Sans GB", "Microsoft YaHei", sans-serif;
|
|
font-size: 15px;
|
|
line-height: 1.5;
|
|
-webkit-font-smoothing: antialiased;
|
|
}
|
|
|
|
a { color: inherit; text-decoration: none; }
|
|
button, input, select { font: inherit; color: inherit; }
|
|
img { max-width: 100%; }
|
|
h1, h2, h3, p { margin: 0; }
|
|
|
|
:focus-visible {
|
|
outline: 2px solid var(--accent);
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
.app { min-height: 100vh; }
|
|
|
|
.topbar {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 20;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
height: 60px;
|
|
padding: 0 16px;
|
|
background: color-mix(in srgb, var(--surface) 88%, transparent);
|
|
border-bottom: 1px solid var(--border);
|
|
backdrop-filter: blur(14px);
|
|
}
|
|
|
|
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
|
|
.brand-mark {
|
|
display: grid;
|
|
place-items: center;
|
|
width: 34px;
|
|
height: 34px;
|
|
flex: 0 0 auto;
|
|
border-radius: 11px;
|
|
background: linear-gradient(135deg, var(--accent-strong), var(--accent));
|
|
color: var(--accent-contrast);
|
|
font-weight: 800;
|
|
font-size: 17px;
|
|
box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 35%, transparent);
|
|
}
|
|
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
|
|
.brand-text strong { font-size: 15px; letter-spacing: 0.2px; }
|
|
.brand-text small { color: var(--muted); font-size: 11px; white-space: nowrap; }
|
|
.topbar-hint {
|
|
flex: 0 0 auto;
|
|
padding: 4px 9px;
|
|
border: 1px solid var(--border);
|
|
border-radius: 999px;
|
|
color: var(--muted);
|
|
font-size: 11px;
|
|
}
|
|
|
|
.preview-banner {
|
|
position: sticky;
|
|
top: 60px;
|
|
z-index: 19;
|
|
padding: 8px 14px;
|
|
text-align: center;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
color: var(--accent-contrast);
|
|
background: var(--accent);
|
|
}
|
|
@media (prefers-color-scheme: dark) {
|
|
.preview-banner { color: var(--accent-contrast); background: var(--accent); }
|
|
}
|
|
|
|
.main-shell {
|
|
padding: 12px 12px calc(var(--nav-height) + 28px + env(safe-area-inset-bottom));
|
|
}
|
|
|
|
.page {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 14px;
|
|
max-width: 1120px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.page-head {
|
|
display: flex;
|
|
align-items: flex-end;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
padding: 4px 2px;
|
|
}
|
|
.page-head h1 { font-size: 24px; letter-spacing: -0.4px; }
|
|
.page-sub { margin-top: 4px; color: var(--muted); font-size: 12.5px; }
|
|
.home-head { align-items: center; }
|
|
.back-link { color: var(--muted); font-size: 13px; }
|
|
.back-link:hover { color: var(--accent); }
|
|
.head-actions { display: flex; gap: 8px; align-items: center; }
|
|
|
|
.button {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 6px;
|
|
min-height: 38px;
|
|
padding: 8px 14px;
|
|
border: 0;
|
|
border-radius: 10px;
|
|
background: var(--accent);
|
|
color: var(--accent-contrast);
|
|
font-size: 13px;
|
|
font-weight: 650;
|
|
cursor: pointer;
|
|
white-space: nowrap;
|
|
}
|
|
.button:hover { background: var(--accent-strong); }
|
|
.button.ghost {
|
|
background: transparent;
|
|
color: var(--text);
|
|
border: 1px solid var(--border);
|
|
}
|
|
.button.ghost:hover { border-color: var(--accent); color: var(--accent); }
|
|
.button:disabled { opacity: 0.45; cursor: not-allowed; }
|
|
.icon-button {
|
|
min-height: 36px;
|
|
padding: 7px 12px;
|
|
border: 1px solid var(--border);
|
|
border-radius: 999px;
|
|
background: var(--surface);
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
cursor: pointer;
|
|
}
|
|
.icon-button:hover { color: var(--accent); border-color: var(--accent); }
|
|
.text-link { color: var(--accent); font-size: 12.5px; font-weight: 600; }
|
|
.inline-link { color: var(--blue); }
|
|
.inline-link:hover, .text-link:hover { text-decoration: underline; }
|
|
|
|
.bottom-nav {
|
|
position: fixed;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
z-index: 30;
|
|
display: flex;
|
|
align-items: stretch;
|
|
height: calc(var(--nav-height) + env(safe-area-inset-bottom));
|
|
padding: 5px 6px env(safe-area-inset-bottom);
|
|
background: color-mix(in srgb, var(--surface) 92%, transparent);
|
|
border-top: 1px solid var(--border);
|
|
backdrop-filter: blur(16px);
|
|
}
|
|
.nav-item {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 2px;
|
|
border-radius: 10px;
|
|
color: var(--muted);
|
|
font-size: 10.5px;
|
|
}
|
|
.nav-item.active { color: var(--accent); background: var(--accent-soft); }
|
|
.nav-icon { width: 21px; height: 21px; }
|
|
.nav-label { line-height: 1; }
|
|
|
|
.panel {
|
|
padding: 14px;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
background: var(--surface);
|
|
box-shadow: var(--shadow);
|
|
}
|
|
.section-head {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 10px;
|
|
margin-bottom: 10px;
|
|
}
|
|
.section-head h2 { font-size: 16px; letter-spacing: -0.2px; }
|
|
.section-note { color: var(--muted); font-size: 12px; margin: 4px 0 10px; }
|
|
.warning-text { color: var(--warning); }
|
|
.danger { color: var(--danger); }
|
|
.up { color: var(--success); }
|
|
.down { color: var(--danger); }
|
|
|
|
.live-strip {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
gap: 8px;
|
|
}
|
|
.live-chip {
|
|
padding: 10px 12px;
|
|
border: 1px solid var(--border);
|
|
border-radius: 13px;
|
|
background: var(--surface);
|
|
}
|
|
.live-chip span { display: block; color: var(--muted); font-size: 11px; }
|
|
.live-chip strong { display: block; margin-top: 2px; font-size: 17px; letter-spacing: -0.2px; }
|
|
.live-chip.accent { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); background: var(--accent-soft); }
|
|
.live-chip.warning { border-color: color-mix(in srgb, var(--warning) 45%, var(--border)); background: var(--warning-soft); }
|
|
|
|
.notice-row {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 4px 12px;
|
|
padding: 11px 14px;
|
|
border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--border));
|
|
border-radius: 13px;
|
|
background: var(--accent-soft);
|
|
font-size: 13px;
|
|
}
|
|
.notice-row.warning {
|
|
border-color: color-mix(in srgb, var(--warning) 50%, var(--border));
|
|
background: var(--warning-soft);
|
|
}
|
|
.notice-row span { color: var(--muted); font-size: 12px; }
|
|
|
|
.video-list { display: flex; flex-direction: column; gap: 8px; }
|
|
.video-card, .up-card {
|
|
position: relative;
|
|
display: grid;
|
|
grid-template-columns: 26px 96px minmax(0, 1fr) 12px;
|
|
align-items: start;
|
|
gap: 9px;
|
|
padding: 9px;
|
|
border: 1px solid var(--border);
|
|
border-radius: 13px;
|
|
background: var(--surface);
|
|
transition: border-color 0.15s, transform 0.15s;
|
|
}
|
|
.video-card:hover, .up-card:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); transform: translateY(-1px); }
|
|
.video-card.no-rank, .up-card.no-rank { grid-template-columns: 96px minmax(0, 1fr) 12px; }
|
|
.video-card.no-rank .video-thumb, .up-card.no-rank .video-thumb { grid-column: 1; }
|
|
.video-card.no-rank .video-card-body, .up-card.no-rank .up-card-body { grid-column: 2; }
|
|
.video-card.no-rank .card-arrow, .up-card.no-rank .card-arrow { grid-column: 3; }
|
|
.rank-badge {
|
|
grid-column: 1;
|
|
grid-row: 1;
|
|
align-self: start;
|
|
display: grid;
|
|
place-items: center;
|
|
width: 24px;
|
|
height: 24px;
|
|
border-radius: 8px;
|
|
background: var(--surface-2);
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
}
|
|
.rank-badge.rank-1 { background: var(--accent); color: var(--accent-contrast); }
|
|
.rank-badge.rank-2 { background: var(--accent-soft); color: var(--accent-strong); }
|
|
.rank-badge.rank-3 { background: var(--surface-3); color: var(--muted); }
|
|
.video-thumb, .hero-cover, .heat-thumb, .candidate-thumb {
|
|
position: relative;
|
|
overflow: hidden;
|
|
border-radius: 9px;
|
|
background: var(--surface-2);
|
|
}
|
|
.video-thumb {
|
|
grid-column: 2;
|
|
grid-row: 1;
|
|
width: 96px;
|
|
aspect-ratio: 16 / 9;
|
|
}
|
|
.video-thumb img, .hero-cover img, .heat-thumb img, .candidate-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
|
|
.cover-placeholder { display: grid; place-items: center; color: var(--muted); font-size: 10px; }
|
|
.cover-placeholder img.image-error { opacity: 0; }
|
|
.video-card-body { grid-column: 3; grid-row: 1; min-width: 0; }
|
|
.up-card-body { grid-column: 3; grid-row: 1; min-width: 0; }
|
|
.video-title {
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
font-size: 14px;
|
|
line-height: 1.35;
|
|
font-weight: 650;
|
|
letter-spacing: -0.1px;
|
|
}
|
|
.video-meta {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 3px 9px;
|
|
margin-top: 4px;
|
|
color: var(--muted);
|
|
font-size: 11px;
|
|
}
|
|
.video-stats {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: baseline;
|
|
gap: 4px 9px;
|
|
margin-top: 5px;
|
|
color: var(--muted);
|
|
font-size: 11px;
|
|
}
|
|
.primary-stat { display: inline-flex; align-items: baseline; gap: 3px; color: var(--text); }
|
|
.primary-stat b { font-size: 15px; letter-spacing: -0.3px; }
|
|
.primary-stat small { color: var(--muted); font-size: 10px; }
|
|
.secondary-stat { white-space: nowrap; }
|
|
.secondary-stat.optional { display: none; }
|
|
.delta { font-weight: 650; font-size: 11px; }
|
|
.delta.up { color: var(--success); }
|
|
.delta.down { color: var(--danger); }
|
|
.card-arrow {
|
|
grid-column: 4;
|
|
grid-row: 1;
|
|
align-self: center;
|
|
color: var(--muted);
|
|
font-size: 18px;
|
|
}
|
|
|
|
.heat-strip {
|
|
display: grid;
|
|
grid-auto-flow: column;
|
|
grid-auto-columns: 210px;
|
|
gap: 10px;
|
|
overflow-x: auto;
|
|
padding-bottom: 4px;
|
|
scroll-snap-type: x proximity;
|
|
scrollbar-width: none;
|
|
}
|
|
.heat-strip::-webkit-scrollbar { display: none; }
|
|
.heat-card {
|
|
position: relative;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 5px;
|
|
padding: 9px;
|
|
border: 1px solid var(--border);
|
|
border-radius: 13px;
|
|
background: var(--surface);
|
|
scroll-snap-align: start;
|
|
}
|
|
.heat-rank {
|
|
position: absolute;
|
|
top: 14px;
|
|
left: 14px;
|
|
z-index: 1;
|
|
display: grid;
|
|
place-items: center;
|
|
width: 22px;
|
|
height: 22px;
|
|
border-radius: 7px;
|
|
background: rgba(0, 0, 0, 0.62);
|
|
color: #fff;
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
}
|
|
.heat-thumb { width: 100%; aspect-ratio: 16 / 9; }
|
|
.heat-title {
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
font-size: 12.5px;
|
|
line-height: 1.35;
|
|
}
|
|
.heat-meta, .heat-score { color: var(--muted); font-size: 10.5px; }
|
|
.heat-score { color: var(--accent); }
|
|
|
|
.capacity-row { padding: 7px 0; }
|
|
.capacity-label { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; }
|
|
.capacity-label strong { color: var(--muted); font-weight: 600; }
|
|
.capacity-track {
|
|
height: 7px;
|
|
margin-top: 6px;
|
|
overflow: hidden;
|
|
border-radius: 999px;
|
|
background: var(--surface-2);
|
|
}
|
|
.capacity-track span {
|
|
display: block;
|
|
height: 100%;
|
|
border-radius: inherit;
|
|
background: linear-gradient(90deg, var(--blue), var(--accent));
|
|
}
|
|
.capacity-track span.warning { background: linear-gradient(90deg, var(--warning), var(--danger)); }
|
|
|
|
.status-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
gap: 8px;
|
|
}
|
|
.status-grid > div {
|
|
padding: 8px 10px;
|
|
border-radius: 10px;
|
|
background: var(--surface-2);
|
|
}
|
|
.status-grid span { display: block; color: var(--muted); font-size: 10.5px; }
|
|
.status-grid strong { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 650; }
|
|
.status-panel .text-link { display: inline-block; margin-top: 10px; }
|
|
|
|
.segmented {
|
|
display: inline-flex;
|
|
align-self: flex-start;
|
|
padding: 3px;
|
|
border: 1px solid var(--border);
|
|
border-radius: 11px;
|
|
background: var(--surface);
|
|
}
|
|
.segmented button {
|
|
min-width: 74px;
|
|
padding: 7px 16px;
|
|
border: 0;
|
|
border-radius: 8px;
|
|
background: transparent;
|
|
color: var(--muted);
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
}
|
|
.segmented button.active { background: var(--accent); color: var(--accent-contrast); }
|
|
|
|
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
|
|
.chip-row.scroll-x { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
|
|
.chip-row.scroll-x::-webkit-scrollbar { display: none; }
|
|
.chip {
|
|
flex: 0 0 auto;
|
|
padding: 6px 11px;
|
|
border: 1px solid var(--border);
|
|
border-radius: 999px;
|
|
background: var(--surface);
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
white-space: nowrap;
|
|
cursor: pointer;
|
|
}
|
|
.chip.active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-strong); font-weight: 650; }
|
|
.chip-label { color: var(--muted); font-size: 11px; padding-right: 2px; }
|
|
.range-row { margin-top: 8px; }
|
|
|
|
.rank-toolbar {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
.rank-search { display: flex; flex: 1; min-width: 0; gap: 6px; }
|
|
.rank-search .search-input { flex: 1; min-width: 0; }
|
|
@media (max-width: 619px) {
|
|
.rank-search { flex-basis: 100%; }
|
|
}
|
|
.search-input, .select {
|
|
min-height: 38px;
|
|
padding: 8px 11px;
|
|
border: 1px solid var(--border);
|
|
border-radius: 10px;
|
|
background: var(--surface);
|
|
font-size: 13px;
|
|
}
|
|
.search-input { flex: 1; min-width: 0; }
|
|
.select { max-width: 170px; }
|
|
.filter-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
|
|
.filter-row > .chip-row { flex: 1; min-width: 200px; }
|
|
@media (max-width: 619px) {
|
|
.filter-row > .chip-row { flex-basis: 100%; min-width: 0; }
|
|
.filter-row .select { width: 100%; max-width: none; }
|
|
}
|
|
.growth-days { padding-top: 2px; }
|
|
|
|
.rank-list { display: flex; flex-direction: column; gap: 8px; }
|
|
.pager {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 12px;
|
|
padding: 8px 0;
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.empty-state {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 28px 16px;
|
|
border: 1px dashed var(--border);
|
|
border-radius: 13px;
|
|
text-align: center;
|
|
color: var(--muted);
|
|
}
|
|
.empty-state strong { color: var(--text); font-size: 14px; }
|
|
.empty-state p { font-size: 12px; max-width: 360px; }
|
|
.empty-state.error-state { border-color: color-mix(in srgb, var(--danger) 45%, var(--border)); }
|
|
.empty-state .button { margin-top: 8px; }
|
|
|
|
.detail-hero {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
padding: 12px;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
background: var(--surface);
|
|
}
|
|
.hero-cover { width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; }
|
|
.detail-hero-body h1 { font-size: 19px; line-height: 1.35; letter-spacing: -0.3px; }
|
|
.detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 8px; color: var(--muted); font-size: 12px; }
|
|
.compact-hero { padding: 18px; }
|
|
|
|
.badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
padding: 2px 7px;
|
|
border-radius: 999px;
|
|
background: var(--surface-2);
|
|
color: var(--muted);
|
|
font-size: 10.5px;
|
|
font-weight: 600;
|
|
white-space: nowrap;
|
|
}
|
|
.badge.subtle { background: var(--surface-2); }
|
|
.badge.warning { background: var(--warning-soft); color: var(--warning); }
|
|
.badge.status-active { background: var(--blue-soft); color: var(--blue); }
|
|
.badge.status-unfaved { background: var(--warning-soft); color: var(--warning); }
|
|
.badge.status-removed, .badge.status-dropped { background: var(--surface-3); color: var(--muted); }
|
|
|
|
.metric-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
gap: 7px;
|
|
}
|
|
.metric-cell {
|
|
padding: 10px;
|
|
border: 1px solid var(--border);
|
|
border-radius: 12px;
|
|
background: var(--surface);
|
|
}
|
|
.metric-label { display: block; color: var(--muted); font-size: 10.5px; }
|
|
.metric-cell strong { display: block; margin-top: 2px; font-size: 17px; letter-spacing: -0.3px; }
|
|
.metric-delta { display: inline-block; margin-top: 2px; font-size: 10.5px; font-weight: 650; }
|
|
.metric-delta.up { color: var(--success); }
|
|
.metric-delta.down { color: var(--danger); }
|
|
|
|
.mini-stats {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
gap: 7px;
|
|
}
|
|
.mini-stats > div {
|
|
padding: 9px 10px;
|
|
border: 1px solid var(--border);
|
|
border-radius: 12px;
|
|
background: var(--surface);
|
|
}
|
|
.mini-stats span { display: block; color: var(--muted); font-size: 10.5px; }
|
|
.mini-stats strong { display: block; margin-top: 2px; font-size: 14px; }
|
|
.up-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
|
|
.chart-panel .chart { width: 100%; height: 240px; margin-top: 8px; }
|
|
.chart-panel .chart-tall { height: 300px; }
|
|
.chart-empty { display: grid; place-items: center; height: 100%; color: var(--muted); font-size: 12px; }
|
|
|
|
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; }
|
|
.data-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 12px; }
|
|
.data-table th, .data-table td { padding: 8px 10px; border-bottom: 1px solid var(--border); text-align: left; white-space: nowrap; }
|
|
.data-table th { position: sticky; top: 0; background: var(--surface-2); color: var(--muted); font-size: 11px; font-weight: 600; }
|
|
.data-table tr:last-child td { border-bottom: 0; }
|
|
.data-table .failed-row td { color: var(--muted); background: color-mix(in srgb, var(--danger) 5%, transparent); }
|
|
.summary-cell { max-width: 280px; overflow: hidden; text-overflow: ellipsis; }
|
|
|
|
.hero-number {
|
|
padding: 18px;
|
|
border-radius: var(--radius);
|
|
background: linear-gradient(135deg, var(--accent-strong), var(--accent) 65%, var(--bg-deep));
|
|
color: var(--accent-contrast);
|
|
}
|
|
.hero-number span { display: block; font-size: 12px; opacity: 0.72; }
|
|
.hero-number strong { display: block; margin: 4px 0 2px; font-size: 34px; letter-spacing: -1px; }
|
|
.hero-number small { opacity: 0.68; font-size: 11px; }
|
|
|
|
.candidate-list { display: flex; flex-direction: column; gap: 10px; }
|
|
.candidate-card {
|
|
display: grid;
|
|
grid-template-columns: 104px minmax(0, 1fr);
|
|
gap: 10px;
|
|
padding: 10px;
|
|
border: 1px solid var(--border);
|
|
border-radius: 13px;
|
|
background: var(--surface);
|
|
}
|
|
.candidate-thumb { width: 104px; aspect-ratio: 16 / 9; }
|
|
.candidate-top { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 4px; }
|
|
.candidate-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
|
|
.readonly-note { color: var(--muted); font-size: 11px; }
|
|
.score-badge {
|
|
padding: 2px 7px;
|
|
border-radius: 999px;
|
|
font-size: 10.5px;
|
|
font-weight: 700;
|
|
background: var(--surface-2);
|
|
color: var(--muted);
|
|
}
|
|
.score-badge.high { background: var(--accent-soft); color: var(--accent-strong); }
|
|
.score-badge.mid { background: var(--blue-soft); color: var(--blue); }
|
|
.details-panel summary { cursor: pointer; color: var(--muted); font-size: 13px; font-weight: 600; }
|
|
.decided-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 12px; }
|
|
.decided-row:last-child { border-bottom: 0; }
|
|
.decided-row a { flex: 1; min-width: 180px; }
|
|
|
|
.error-row { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 12px; }
|
|
.error-row strong { color: var(--danger); }
|
|
.error-row:last-child { border-bottom: 0; }
|
|
|
|
.page-loading { display: flex; flex-direction: column; gap: 10px; max-width: 1120px; margin: 0 auto; }
|
|
.skeleton {
|
|
position: relative;
|
|
overflow: hidden;
|
|
border-radius: 12px;
|
|
background: var(--surface-2);
|
|
}
|
|
.skeleton::after {
|
|
content: "";
|
|
position: absolute;
|
|
inset: 0;
|
|
transform: translateX(-100%);
|
|
background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--surface) 55%, transparent), transparent);
|
|
animation: shimmer 1.4s infinite;
|
|
}
|
|
.skeleton-title { height: 52px; }
|
|
.skeleton-card { height: 104px; }
|
|
@keyframes shimmer { 100% { transform: translateX(100%); } }
|
|
|
|
.toast {
|
|
position: fixed;
|
|
left: 50%;
|
|
bottom: calc(var(--nav-height) + 22px + env(safe-area-inset-bottom));
|
|
z-index: 50;
|
|
max-width: min(88vw, 420px);
|
|
padding: 9px 14px;
|
|
border-radius: 999px;
|
|
background: var(--bg-deep);
|
|
color: var(--text);
|
|
border: 1px solid var(--border);
|
|
font-size: 12.5px;
|
|
opacity: 0;
|
|
transform: translate(-50%, 10px);
|
|
pointer-events: none;
|
|
transition: opacity 0.18s, transform 0.18s;
|
|
}
|
|
.toast.show { opacity: 1; transform: translate(-50%, 0); }
|
|
.toast.error { background: var(--danger); color: #fff7f2; border-color: transparent; }
|
|
|
|
@media (min-width: 620px) {
|
|
.live-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
|
|
.metric-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
|
|
.up-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
|
|
.detail-hero { flex-direction: row; align-items: flex-start; }
|
|
.hero-cover { width: 300px; flex: 0 0 300px; }
|
|
.video-thumb { width: 112px; }
|
|
.video-card, .up-card { grid-template-columns: 28px 112px minmax(0, 1fr) 14px; }
|
|
.video-card.no-rank, .up-card.no-rank { grid-template-columns: 112px minmax(0, 1fr) 14px; }
|
|
.secondary-stat.optional { display: inline; }
|
|
}
|
|
|
|
@media (min-width: 900px) {
|
|
.topbar {
|
|
position: fixed;
|
|
left: var(--nav-width);
|
|
right: 0;
|
|
height: 64px;
|
|
padding: 0 28px;
|
|
}
|
|
.preview-banner { top: 64px; margin-left: var(--nav-width); }
|
|
.main-shell {
|
|
margin-left: var(--nav-width);
|
|
padding: 82px 28px 40px;
|
|
}
|
|
.bottom-nav {
|
|
top: 0;
|
|
right: auto;
|
|
bottom: 0;
|
|
width: var(--nav-width);
|
|
height: 100vh;
|
|
flex-direction: column;
|
|
justify-content: flex-start;
|
|
gap: 4px;
|
|
padding: 82px 12px 20px;
|
|
border-top: 0;
|
|
border-right: 1px solid var(--border);
|
|
}
|
|
.nav-item {
|
|
flex: 0 0 auto;
|
|
flex-direction: row;
|
|
justify-content: flex-start;
|
|
gap: 10px;
|
|
padding: 11px 14px;
|
|
font-size: 13px;
|
|
border-radius: 11px;
|
|
}
|
|
.nav-item.active { background: var(--accent-soft); }
|
|
.nav-icon { width: 20px; height: 20px; }
|
|
.video-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
.detail-hero .hero-cover { width: 360px; flex-basis: 360px; }
|
|
.toast { left: calc(50% + var(--nav-width) / 2); bottom: 28px; }
|
|
.page-head h1 { font-size: 28px; }
|
|
}
|
|
|
|
@media (min-width: 1280px) {
|
|
.main-shell { padding-left: 36px; padding-right: 36px; }
|
|
.video-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
|
|
.metric-grid { gap: 9px; }
|
|
}
|
|
|
|
@media (max-width: 380px) {
|
|
.video-card, .up-card { grid-template-columns: 22px 82px minmax(0, 1fr) 10px; gap: 7px; }
|
|
.video-card.no-rank, .up-card.no-rank { grid-template-columns: 82px minmax(0, 1fr) 10px; }
|
|
.video-thumb { width: 82px; }
|
|
.metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
.candidate-card { grid-template-columns: 84px minmax(0, 1fr); }
|
|
.candidate-thumb { width: 84px; }
|
|
}
|