/* 精彩视频沿用书架排版，缩略图与文字在小屏自然换行。 */
.videoItem { display: grid; grid-template-columns: minmax(140px, 220px) minmax(0, 1fr); gap: 22px; padding: 24px 0; border-bottom: 1px solid #ddd; }
.videoCoverLink { display: block; align-self: start; aspect-ratio: 16 / 9; background: #eef0f3; overflow: hidden; border-radius: 4px; }
.videoCoverLink img { width: 100%; height: 100%; object-fit: cover; }
.videoCoverPlaceholder { display: grid; height: 100%; place-items: center; color: #555; }
.videoInfo { min-width: 0; }
.videoInfo h3 { margin: 0 0 8px; font-size: 1.08rem; overflow-wrap: anywhere; }
.videoInfo p { margin: 8px 0; }
.videoMeta { color: #666; overflow-wrap: anywhere; }
.videoStars { color: #956400; letter-spacing: 3px; }
.videoComment { white-space: pre-wrap; overflow-wrap: anywhere; }
.videoHint { color: #946200; font-style: italic; font-size: .92rem; }
.videoCoverPreview { display: block; width: min(100%, 360px); max-height: 220px; object-fit: contain; object-position: left; }
.videoCoverPreview[hidden] { display: none; }
#videoForm select { padding: 10px; border: 1px solid #ccc; border-radius: 4px; font: inherit; background: white; }
#videoForm button:disabled { opacity: .6; cursor: wait; }
@media (max-width: 540px) { .videoItem { grid-template-columns: 1fr; gap: 14px; } .videoCoverLink { max-width: 360px; } }

/* 录入页独立排版，避免单列表单的默认控件和大段留白。 */
.videoEditor { --videoMuted: #65717c; --videoBorder: #dce1e5; --videoFocus: #265777; max-width: 1040px; margin: 0 auto; }
.videoEditorHeader { margin-bottom: 20px; }
.videoBack { display: inline-block; color: var(--videoMuted); font-size: 14px; margin-bottom: 14px; }
.videoEditor h1 { font-size: clamp(25px, 3vw, 30px); letter-spacing: -.035em; font-weight: 600; }
.videoWorkTitle { color: var(--videoMuted); margin: 8px 0 0; font-size: 14px; overflow-wrap: anywhere; }
.videoEditorForm { display: grid; gap: 22px; }
.videoSource { padding-bottom: 22px; border-bottom: 1px solid var(--videoBorder); }
.videoSource > label, .videoField, .videoFieldTitle, .videoRating legend { font-size: 14px; font-weight: 500; color: var(--ink); }
.videoSourceRow { display: flex; gap: 10px; margin-top: 8px; }
.videoEditorForm input[type="text"], .videoEditorForm input[type="url"], .videoEditorForm textarea {
  width: 100%; min-width: 0; padding: 11px 13px; border: 1px solid var(--videoBorder); border-radius: 5px; background: var(--surface); color: var(--ink); font: 400 16px/1.45 var(--sans); box-shadow: none; outline: none; transition: border-color .16s ease;
}
.videoEditorForm :is(input[type="text"], input[type="url"], textarea):focus { border-color: var(--videoFocus); outline: 3px solid #2657771c; outline-offset: 0; }
.videoEditorForm :is(input,textarea)::placeholder { font-size: 14px; color: #8a7653; font-style: italic; opacity: 1; }
.videoSourceRow input { flex: 1; }
.videoEditorForm button { min-height: 46px; border-radius: 5px; padding: 10px 20px; font: 500 15px/1.4 var(--sans); cursor: pointer; }
#videoForm #videoFetchCover { flex-shrink: 0; background: #eaf0f4; color: #254e6a; border: 1px solid #d4e0e8; }
#videoForm #videoFetchCover:hover { background: #dde8ef; }
.videoSource .videoHint { margin: 9px 0 0; min-height: 22px; font-size: 13px; }
.videoEditorGrid { display: grid; grid-template-columns: minmax(230px, .85fr) minmax(0, 1.4fr); gap: 38px; align-items: start; }
.videoFieldTitle { display: block; margin-bottom: 8px; }
.videoArtworkFrame { position: relative; aspect-ratio: 16/10; background: #e9edf0; border: 1px solid #dfe4e8; border-radius: 6px; overflow: hidden; }
.videoArtworkFrame .videoCoverPreview { width: 100%; height: 100%; max-height: none; object-fit: contain; object-position: center; background: #20262d; }
.videoArtworkEmpty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: #76838d; font-size: 13px; }
.videoArtworkFrame:has(.videoCoverPreview:not([hidden])) .videoArtworkEmpty { display: none; }
.videoUploadRow { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 12px; }
.videoUploadRow .videoHint { font-size: 12px; }
.videoUploadButton { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border: 1px solid var(--videoBorder); border-radius: 5px; background: var(--surface); padding: 8px 15px; color: var(--ink); font-size: 14px; cursor: pointer; overflow: hidden; }
.videoUploadButton:hover { border-color: #9fabb4; }
.videoUploadButton:focus-within { outline: 2px solid var(--videoFocus); outline-offset: 3px; }
.videoUploadButton input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.videoFields { display: grid; gap: 18px; }
.videoField { display: grid; gap: 7px; }
.videoMetaRow { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.videoEditorForm textarea { resize: vertical; min-height: 92px; }
.videoOptional { margin-left: 8px; font-size: 12px; font-weight: 400; color: #946200; font-style: italic; }
.videoRating { margin: 0; padding: 0; min-width: 0; border: 0; }
.videoRating legend { padding: 0; margin-bottom: 4px; }
.videoRatingRow { display: flex; align-items: center; gap: 16px; }
.videoStarOptions { display: flex; }
.videoStar { display: grid; place-items: center; position: relative; width: 40px; height: 44px; cursor: pointer; }
.videoStar input, .videoUnrated input { position: absolute; opacity: 0; width: 100%; height: 100%; inset: 0; cursor: pointer; margin: 0; }
.videoStar span { font-size: 30px; line-height: 1; color: #c6cdd2; transition: color .15s ease; }
.videoStar:has(input:checked) span, .videoStar:has(~ .videoStar input:checked) span { color: #b98422; }
.videoStar:hover span { color: #b98422; }
.videoStar:focus-within, .videoUnrated:focus-within { outline: 2px solid var(--videoFocus); outline-offset: 1px; border-radius: 3px; }
.videoUnrated { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; color: var(--videoMuted); font-size: 13px; cursor: pointer; }
.videoUnrated:has(input:checked) span { text-decoration: underline; text-underline-offset: 5px; }
.videoEditorActions { display: flex; align-items: center; justify-content: flex-end; gap: 26px; padding-top: 20px; border-top: 1px solid var(--videoBorder); }
.videoEditorActions a { font-size: 14px; color: var(--videoMuted); }
#videoForm #videoSave { min-width: 136px; background: #234b66; border: 1px solid #234b66; color: #fff; }
#videoForm #videoSave:hover { background: #183b53; }
.videoEditorForm button:focus-visible { outline: 2px solid var(--videoFocus); outline-offset: 3px; }
@media (max-width: 700px) {
 .videoEditorHeader { margin-bottom: 22px; }
 .videoEditorGrid { grid-template-columns: 1fr; gap: 24px; }
 .videoArtworkFrame { aspect-ratio: 16/9; }
 .videoArtwork { max-width: 440px; width: 100%; }
 .videoSourceRow { gap: 8px; }
 .videoEditorForm button { padding-inline: 12px; }
 .videoMetaRow { gap: 12px; }
 .videoStar { width: 44px; }
 .videoSource .videoHint { font-size: 14px; }
 .videoEditorActions { position: sticky; bottom: 0; background: var(--ground); padding-block: 16px; }
}
@media (prefers-reduced-motion: reduce) { .videoEditorForm *, .videoStar span { transition: none; } }

.siteMain:has(.videoEditor) { padding-top: 24px; padding-bottom: 24px; }
