/* 头像尺寸在 --avatar-size 调整，无需修改原图像素。 */
:root { color-scheme: light; --avatar-size: 52px; --ink: #182335; --muted: #697789; --line: #e7ebf0; --accent: #2563eb; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: #fff; color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .5; }
button:focus-visible, input:focus-visible { outline: 3px solid #93b8ff; outline-offset: 3px; }
.container { max-width: 1320px; margin: 0 auto; padding: 0 36px 48px; }
.site-header { min-height: 130px; padding: 30px 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.identity { display: flex; align-items: center; gap: 16px; min-width: 0; }
.avatar-frame { width: var(--avatar-size); height: var(--avatar-size); flex-shrink: 0; border-radius: 50%; overflow: hidden; background: #eff5ff; border: 1px solid #e1e9f7; display: grid; place-items: center; color: var(--accent); font-weight: 600; }
.avatar-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
h1 { margin: 0; font-size: clamp(18px, 2vw, 23px); line-height: 1.5; letter-spacing: -.4px; font-weight: 650; overflow-wrap: anywhere; }
.title-suffix { color: #516176; font-weight: 400; }
.title-divider { color: #a2acb9; margin: 0 5px; }
.site-subtitle { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.header-tag { flex-shrink: 0; font-size: 12px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 30px; color: var(--muted); }
.main-content { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 28px; align-items: start; }
.viewing-area { min-width: 0; }
.player-wrapper { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #f6f8fb; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
video { display: block; width: 100%; height: 100%; background: #000; }
.player-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; text-align: center; }
.placeholder-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; color: #7090be; background: #eaf0f8; margin-bottom: 20px; }
.placeholder-icon svg { width: 34px; height: 34px; }
.player-placeholder h2 { font-size: 18px; font-weight: 500; color: #41536c; margin: 0 0 10px; }
.player-placeholder p { font-size: 13px; color: #7b889a; margin: 0; }
.mobile-prompt { display: none; }
.video-info { padding: 25px 2px; }
.eyebrow { font-size: 11px; color: #8190a4; letter-spacing: 1px; margin: 0 0 7px; }
.video-info h2 { font-size: 20px; margin: 0; font-weight: 600; overflow-wrap: anywhere; }
#video-desc { font-size: 13px; line-height: 1.8; color: var(--muted); margin: 9px 0 0; }
.playlist-box { border: 1px solid var(--line); padding: 22px; border-radius: 16px; background: #fff; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.panel-heading h2 { font-size: 18px; margin: 0; font-weight: 600; }
.list-dot { width: 8px; height: 8px; background: #a5b9dc; border-radius: 50%; }
label { font-size: 12px; color: #526179; display: block; margin-bottom: 8px; }
input { width: 100%; min-width: 0; padding: 11px 12px; border: 1px solid #dce3ed; background: #fff; color: var(--ink); border-radius: 9px; }
.date-actions { display: flex; gap: 8px; margin: 10px 0 21px; }
.date-actions button { flex: 1; border: 1px solid var(--line); border-radius: 8px; padding: 8px 6px; font-size: 12px; background: #f8fafc; color: #526179; }
.date-actions button:hover:not(:disabled) { background: #eef4ff; color: var(--accent); }
.list-status { border-top: 1px solid var(--line); margin: 0; padding-top: 17px; font-size: 12px; color: var(--muted); line-height: 1.6; }
.source-status { margin: 7px 0 0; font-size: 12px; color: var(--muted); line-height: 1.7; overflow-wrap: anywhere; }
.playlist { display: flex; flex-direction: column; gap: 7px; max-height: 430px; overflow-y: auto; margin-top: 13px; }
.video-item { display: flex; flex-direction: column; gap: 5px; flex-shrink: 0; width: 100%; padding: 12px; text-align: left; border: 1px solid transparent; border-radius: 9px; background: #f7f9fc; color: #34445b; }
.item-name { font-size: 13px; overflow-wrap: anywhere; line-height: 1.5; }
.item-date { font-size: 11px; color: #8794a6; }
.video-item:hover { background: #edf3fd; }
.video-item.active { background: #eef4ff; border-color: #b9cef8; color: #1d4ed8; }
.empty-message { font-size: 13px; line-height: 1.8; color: var(--muted); }
.error-box { background: #fff3f2; color: #a5342d; border: 1px solid #f5d0ca; padding: 14px; border-radius: 10px; margin-top: 12px; font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; }
@media (max-width: 860px) { .main-content { grid-template-columns: minmax(0, 1fr); gap: 8px; } .container { padding: 0 18px 30px; } .site-header { min-height: 104px; margin-bottom: 22px; padding: 22px 0; } .header-tag { display: none; } .desktop-prompt { display: none; } .mobile-prompt { display: block; } .playlist { max-height: 400px; } }
@media (max-width: 420px) { :root { --avatar-size: 44px; } .identity { gap: 10px; } h1 { font-size: 17px; } .title-divider { margin: 0; } .placeholder-icon { width: 44px; height: 44px; margin-bottom: 12px; border-radius: 12px; } .placeholder-icon svg { width: 26px; height: 26px; } .player-placeholder h2 { font-size: 15px; } .player-placeholder p { font-size: 11px; } }
