/* Scoped to the standalone short-video template. */
.sv-feed { overflow-anchor: none; }
.sv-buffering { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 15px; pointer-events: none; background: #0003; z-index: 4; font-size: 12px; }
body.leaftheme-short-video-page {
  --sv-bg: #101014;
  --sv-panel: #19191f;
  --sv-muted: #92929f;
  --sv-accent: #fe315c;
  --sv-line: rgba(255, 255, 255, .085);
  margin: 0;
  color: #f5f5f7;
  background: var(--sv-bg);
  font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  overflow: hidden;
  color-scheme: dark;
}
.leaftheme-short-video-page *, .leaftheme-short-video-page *::before, .leaftheme-short-video-page *::after { box-sizing: border-box; }
.leaftheme-short-video-page [hidden] { display: none !important; }
.leaftheme-short-video-page button, .leaftheme-short-video-page input, .leaftheme-short-video-page select, .leaftheme-short-video-page textarea { font: inherit; }
.leaftheme-short-video-page button { color: inherit; cursor: pointer; border: 0; background: none; }
.leaftheme-short-video-page a { color: inherit; text-decoration: none; }
.leaftheme-short-video-page button:disabled { cursor: default; opacity: .35; }
.leaftheme-short-video-page :focus-visible { outline: 2px solid #60ddd4; outline-offset: 4px; }
.sv-icon { width: 24px; height: 24px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.sv-symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.sv-app { display: flex; width: 100%; height: 100vh; height: 100dvh; }
.admin-bar .sv-app { height: calc(100vh - 32px); height: calc(100dvh - 32px); }
.sv-sidebar { display: flex; flex-direction: column; width: 210px; padding: 31px 18px 25px; flex-shrink: 0; border-right: 1px solid var(--sv-line); }
.sv-brand { display: flex; align-items: center; gap: 10px; padding: 0 6px; margin-bottom: 45px; font-size: 18px; font-weight: 750; letter-spacing: .4px; }
.sv-brand > span:last-child { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sv-brand small { display: block; margin-top: 5px; font-size: 10px; font-weight: 400; letter-spacing: 1.6px; color: var(--sv-muted); }
.sv-brand-mark { display: grid; place-items: center; width: 38px; height: 42px; flex-shrink: 0; color: #63e3d2; filter: drop-shadow(3px 2px 0 rgba(254,49,92,.8)); }
.sv-brand-mark .sv-icon { width: 33px; height: 33px; }
.sv-nav { display: grid; gap: 9px; }
.sv-nav-item { display: flex; align-items: center; gap: 14px; min-height: 49px; padding: 12px 16px; border-radius: 10px; color: #b0b0ba !important; font-weight: 550; text-align: left; transition: background .18s, color .18s; }
.sv-nav-item:hover { color: white !important; background: #202027; }
.sv-nav-item.is-active { color: white !important; background: #292930; }
.sv-nav-item.is-active > .sv-icon { color: var(--sv-accent); }
.sv-live-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--sv-accent); margin-left: auto; }
.sv-nav-item:not(.is-active) .sv-live-dot { opacity: 0; }
.sv-nav-divider { height: 1px; background: var(--sv-line); margin: 17px 12px; }
.sv-sidebar-bottom { margin-top: auto; padding: 30px 8px 0; }
.sv-sidebar-bottom p { color: #737380; font-size: 12px; line-height: 1.9; margin: 24px 0 18px; }
.sv-powered { font-size: 8px; color: #565661; letter-spacing: 1.2px; }
.sv-publish { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 41px; border: 1px solid #41414a; border-radius: 8px; font-size: 13px; }
.sv-publish:hover { background: #24242c; }
.sv-publish .sv-icon { width: 17px; height: 17px; }
.sv-main { display: flex; flex: 1; flex-direction: column; min-width: 0; padding: 0 37px; }
.sv-topbar { display: flex; align-items: center; justify-content: space-between; min-height: 83px; gap: 22px; }
.sv-search { display: flex; align-items: center; width: min(500px, 68%); gap: 11px; padding: 5px 5px 5px 16px; height: 42px; background: #212128; border: 1px solid #33333e; border-radius: 9px; }
.sv-search > .sv-icon { color: #9c9caa; width: 19px; height: 19px; }
.sv-search input { min-width: 0; width: 100%; color: #fff; background: transparent; border: 0; outline: none; font-size: 13px; }
.sv-search:focus-within { border-color: #777787; }
.sv-search input::placeholder { color: #777785; }
.sv-search button { align-self: stretch; padding: 0 18px; background: #36363f; border-radius: 5px; font-size: 12px; flex-shrink: 0; }
.sv-account { display: flex; align-items: center; gap: 9px; font-size: 12px; color: #c7c7d0 !important; max-width: 190px; }
.sv-account img { border-radius: 50%; object-fit: cover; background: #33333d; }
.sv-account span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sv-account > .sv-icon { width: 19px; height: 19px; }
.sv-toolbar { display: flex; align-items: center; justify-content: space-between; min-height: 49px; gap: 16px; padding-bottom: 13px; }
.sv-tabs { display: flex; align-items: center; gap: 26px; min-width: 0; }
.sv-tabs > button { position: relative; padding: 5px 0; color: #9696a4; font-size: 16px; white-space: nowrap; }
.sv-tabs > button.is-active { color: white; font-weight: 650; }
.sv-tabs > button.is-active::after { content: ""; position: absolute; bottom: -6px; left: 25%; width: 50%; height: 3px; border-radius: 4px; background: var(--sv-accent); }
.sv-list-label { margin-left: 1px; padding-left: 23px; border-left: 1px solid #33333f; color: #747481; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sv-toolbar-actions { display: flex; align-items: center; gap: 21px; flex-shrink: 0; }
.sv-toolbar-actions select { max-width: 140px; color: #a9a9b6; background: transparent; border: 0; font-size: 12px; padding: 4px; }
.sv-toolbar-actions select option { background: #202027; color: white; }
.sv-auto-next { display: flex; align-items: center; gap: 8px; color: #9a9aa8 !important; font-size: 11px !important; white-space: nowrap; padding: 4px 0; }
.sv-switch { width: 25px; height: 14px; padding: 3px; border-radius: 9px; background: #454551; transition: background .15s; }
.sv-switch::after { content: ""; display: block; height: 8px; width: 8px; border-radius: 50%; background: white; transition: transform .15s; }
.sv-auto-next[aria-pressed="true"] .sv-switch { background: var(--sv-accent); }
.sv-auto-next[aria-pressed="true"] .sv-switch::after { transform: translateX(11px); }
.sv-stage { position: relative; min-height: 0; flex: 1; padding-right: 63px; }
.sv-feed { position: relative; width: 100%; height: 100%; overflow-x: hidden; overflow-y: auto; overscroll-behavior-y: contain; scroll-snap-type: y mandatory; scrollbar-width: none; border-radius: 14px; background: #08080b; touch-action: pan-y pinch-zoom; }
.sv-feed::-webkit-scrollbar { display: none; }
.sv-card { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 100%; overflow: hidden; isolation: isolate; scroll-snap-align: start; scroll-snap-stop: always; background: #08080b; }
.sv-card:fullscreen { height: 100%; }
.sv-backdrop { position: absolute; width: 110%; height: 110%; object-fit: cover; opacity: .23; filter: blur(45px); z-index: -2; pointer-events: none; }
.sv-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 35%, transparent, rgba(0,0,0,.45)); z-index: -1; }
.sv-video { display: block; height: 100%; width: 100%; object-fit: contain; cursor: pointer; }
.sv-card::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.08) 25%, rgba(0,0,0,.85)); pointer-events: none; z-index: 1; }
.sv-card-top { position: absolute; top: 21px; left: 24px; right: 24px; z-index: 3; display: flex; justify-content: space-between; gap: 12px; pointer-events: none; }
.sv-collection { display: inline-flex; gap: 7px; align-items: center; max-width: 70%; font-size: 11px; color: #ececf1; padding: 6px 10px; border-radius: 6px; background: rgba(0,0,0,.27); backdrop-filter: blur(10px); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sv-collection .sv-icon { width: 13px; height: 13px; }
.sv-quality { color: #d2d2de; font-size: 10px; letter-spacing: 1.5px; padding-top: 8px; }
.sv-card-info { position: absolute; left: 28px; right: 100px; bottom: 73px; z-index: 3; pointer-events: none; text-shadow: 0 1px 5px rgba(0,0,0,.35); }
.sv-author { display: flex; gap: 10px; align-items: center; margin-bottom: 13px; font-size: 16px; font-weight: 650; }
.sv-author img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(255,255,255,.5); background: #41414b; }
.sv-card-info h2 { margin: 0 0 7px; font-weight: 500; font-size: 15px; line-height: 1.7; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.sv-description { font-size: 12px; color: #c4c4ce; margin: 0 0 6px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.sv-tags { display: flex; flex-wrap: wrap; gap: 8px; color: #ceced8; font-size: 11px; margin-top: 6px; }
.sv-original { display: inline-flex; gap: 6px; align-items: center; margin-top: 11px; font-size: 11px; color: #dddde7 !important; pointer-events: auto; }
.sv-original .sv-icon { width: 12px; height: 12px; }
.sv-actions { position: absolute; right: 25px; bottom: 89px; z-index: 4; display: grid; gap: 19px; }
.sv-action { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 48px; padding: 0; color: #fff; filter: drop-shadow(0 1px 3px rgba(0,0,0,.3)); }
.sv-action .sv-icon { height: 31px; width: 31px; stroke-width: 1.8; transition: transform .15s; }
.sv-action:hover .sv-icon { transform: scale(1.12); }
.sv-action span { font-size: 11px; font-weight: 500; }
.sv-action[data-action="like"].is-active { color: #ff3d67; }
.sv-action[data-action="favorite"].is-active { color: #ffd35d; }
.sv-action.is-active .sv-icon { fill: currentColor; }
.sv-player-controls { position: absolute; bottom: 0; left: 0; right: 0; padding: 0 24px 16px; z-index: 4; }
.sv-progress { display: block; width: 100%; height: 16px; margin: 0 0 8px; appearance: none; -webkit-appearance: none; background: transparent; cursor: pointer; }
.sv-progress::-webkit-slider-runnable-track { height: 3px; border-radius: 3px; background: linear-gradient(to right, #fff var(--sv-progress,0%), rgba(255,255,255,.3) var(--sv-progress,0%)); }
.sv-progress::-moz-range-track { height: 3px; border-radius: 3px; background: rgba(255,255,255,.3); }
.sv-progress::-moz-range-progress { background: white; height: 3px; }
.sv-progress::-webkit-slider-thumb { width: 9px; height: 9px; border-radius: 50%; appearance: none; -webkit-appearance: none; margin-top: -3px; background: white; }
.sv-progress::-moz-range-thumb { width: 9px; height: 9px; border: 0; border-radius: 50%; background: white; }
.sv-control-row { display: flex; align-items: center; gap: 12px; height: 23px; }
.sv-control-row button { display: grid; place-items: center; padding: 0; width: 26px; height: 26px; }
.sv-control-row .sv-icon { width: 19px; height: 19px; }
.sv-time { color: #c8c8d2; font-size: 10px; font-variant-numeric: tabular-nums; }
.sv-view-count { margin-left: auto; font-size: 10px; color: #b2b2be; }
.sv-center-play { display: grid; place-items: center; position: absolute; top: 50%; left: 50%; width: 74px; height: 74px; transform: translate(-50%,-50%); border-radius: 50%; background: rgba(0,0,0,.2) !important; backdrop-filter: blur(4px); z-index: 3; }
.sv-center-play .sv-icon { width: 43px; height: 43px; fill: rgba(255,255,255,.85); stroke: none; }
.sv-video-error { position: absolute; inset: 25% 20%; display: grid; place-content: center; text-align: center; z-index: 5; color: #e3e3eb; font-size: 13px; }
.sv-video-error button { padding: 9px 16px; background: #34343e; border-radius: 6px; margin: 8px auto; }
.sv-heart-burst { position: absolute; left: 50%; top: 44%; width: 80px; height: 80px; color: #ff3d67; z-index: 5; pointer-events: none; animation: sv-heart .75s both; }
.sv-heart-burst .sv-icon { width: 100%; height: 100%; fill: currentColor; }
.sv-page-controls { position: absolute; top: 50%; right: 0; display: grid; gap: 12px; transform: translateY(-50%); text-align: center; }
.sv-page-controls button { display: grid; place-items: center; height: 40px; width: 40px; border: 1px solid #3b3b45; border-radius: 50%; color: #b9b9c7; }
.sv-page-controls button:hover:not(:disabled) { background: #2b2b35; color: white; }
.sv-page-controls > span { font-size: 9px; color: #686877; line-height: 1.9; margin-top: 5px; }
.sv-keyboard-hints { display: flex; align-items: center; gap: 24px; min-height: 40px; color: #656574; font-size: 10px; }
#sv-position { margin-left: auto; margin-right: 63px; font-variant-numeric: tabular-nums; }
.sv-status { display: flex; position: absolute; inset: 0 63px 0 0; flex-direction: column; align-items: center; justify-content: center; border-radius: 14px; padding: 26px; text-align: center; background: radial-gradient(ellipse at 50% 35%, #25202e, #111116 70%); z-index: 6; }
.sv-status h1 { margin: 24px 0 10px; font-size: 21px; font-weight: 550; }
.sv-status p { color: #9a9aa9; margin: 0 0 22px; font-size: 13px; max-width: 380px; }
.sv-spinner { width: 32px; height: 32px; border: 2px solid #393943; border-top-color: var(--sv-accent); border-radius: 50%; animation: sv-spin 1s linear infinite; }
.sv-primary { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 8px 20px; background: var(--sv-accent) !important; color: white !important; border-radius: 7px; font-size: 12px !important; }
.sv-primary:hover { filter: brightness(1.1); }
.sv-loading-more { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); z-index: 7; color: #eeeef5; background: rgba(20,20,28,.85); padding: 7px 16px; border-radius: 20px; font-size: 11px; }
.sv-comments { position: fixed; inset: 0 0 0 auto; margin: 0; width: 390px; max-width: 100%; height: 100%; max-height: 100dvh; border: 0; padding: 0; background: #1a1a22; color: white; box-shadow: -12px 0 80px #0005; }
.sv-comments[open] { display: flex; flex-direction: column; }
.sv-comments::backdrop { background: rgba(0,0,0,.48); }
.sv-comments-header { display: flex; align-items: flex-start; justify-content: space-between; padding: 26px 22px 17px; border-bottom: 1px solid var(--sv-line); }
.sv-comments-header h2 { margin: 0; font-size: 17px; font-weight: 600; }
.sv-comments-header h2 span { margin-left: 7px; font-size: 12px; color: #9393a2; }
.sv-comments-header p { margin: 6px 0 0; color: #777787; font-size: 11px; max-width: 280px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sv-comments-header button { padding: 2px; color: #b7b7c3; }
.sv-comment-list { min-height: 0; flex: 1; overflow-y: auto; padding: 8px 22px; overscroll-behavior: contain; }
.sv-comment { display: flex; gap: 11px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.045); }
.sv-comment > img { flex-shrink: 0; border-radius: 50%; width: 31px; height: 31px; object-fit: cover; background: #363640; }
.sv-comment-body { min-width: 0; }
.sv-comment-author { margin: 0 0 5px; color: #a1a1b0; font-size: 11px; }
.sv-comment-content { margin: 0; font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.7; }
.sv-comment-date { display: block; margin-top: 7px; font-size: 10px; color: #656574; }
.sv-comment-message { color: #9292a2; text-align: center; padding: 50px 10px; font-size: 13px; }
.sv-comments-more { flex-shrink: 0; padding: 12px; color: #a4a4b4 !important; font-size: 11px !important; border-top: 1px solid var(--sv-line) !important; }
.sv-comment-form { padding: 16px 22px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--sv-line); }
.sv-comment-form textarea { width: 100%; resize: none; border: 1px solid #3d3d49; border-radius: 8px; background: #262630; color: white; padding: 10px 12px; font-size: 12px; }
.sv-comment-form > div { display: flex; align-items: center; gap: 10px; justify-content: space-between; margin-top: 10px; }
.sv-comment-form > div > span { font-size: 10px; color: #7e7e90; }
.sv-comment-form > a { width: 100%; }
.sv-toast { position: fixed; top: 20%; left: 50%; transform: translateX(-50%); z-index: 2147483647; padding: 12px 21px; border: 1px solid #ffffff1a; border-radius: 9px; max-width: 88vw; background: rgba(40,40,52,.96); color: white; box-shadow: 0 8px 32px #0004; font-size: 13px; text-align: center; }
.sv-comments[open] ~ .sv-toast { display: none; }
.sv-mobile-nav, .sv-mobile-brand { display: none; }
.sv-no-script { position: fixed; inset: 40% 10% auto; text-align: center; background: #292933; z-index: 100; padding: 30px; border-radius: 10px; }
.sv-no-script a { color: #66e3d6; }
.sv-visually-hidden { position: absolute; height: 1px; width: 1px; clip: rect(0,0,0,0); overflow: hidden; white-space: nowrap; }
@keyframes sv-spin { to { transform: rotate(360deg); } }
@keyframes sv-heart { 0% { transform: translate(-50%,-50%) scale(.2) rotate(-15deg); opacity: 0; } 25% { transform: translate(-50%,-50%) scale(1.2) rotate(-15deg); opacity: 1; } 70% { opacity: 1; } 100% { transform: translate(-50%,-110%) scale(1) rotate(-15deg); opacity: 0; } }
@media (min-width: 1700px) { .sv-main { padding: 0 60px; max-width: 1590px; margin: 0 auto; } .sv-stage { padding-right: 80px; } .sv-status { right: 80px; } }
@media (max-width: 1100px) { .sv-sidebar { width: 180px; padding: 28px 12px 20px; } .sv-main { padding: 0 24px; } .sv-list-label { display: none; } .sv-toolbar-actions { gap: 12px; } }
@media (max-width: 782px) { .admin-bar .sv-app { height: calc(100vh - 46px); height: calc(100dvh - 46px); } .admin-bar #wpadminbar { position: fixed; } }
@media (max-width: 760px) {
  .sv-sidebar { display: none; }
  .sv-app { flex-direction: column; padding-top: env(safe-area-inset-top); }
  .sv-main { min-height: 0; width: 100%; padding: 0; }
  .sv-topbar { min-height: 57px; padding: 5px 15px; gap: 13px; }
  .sv-mobile-brand { display: flex; align-items: center; gap: 4px; white-space: nowrap; font-size: 15px; font-weight: 600; }
  .sv-mobile-brand .sv-icon { width: 21px; height: 21px; color: #62dfd2; }
  .sv-search { margin-left: auto; width: auto; flex: 1; max-width: 450px; height: 33px; border-radius: 7px; gap: 6px; padding-left: 9px; }
  .sv-search .sv-icon { width: 14px; height: 14px; }
  .sv-search input { font-size: 12px; }
  .sv-search button { padding: 0 9px; font-size: 10px; }
  .sv-account { display: none; }
  .sv-toolbar { min-height: 44px; padding: 0 16px 9px; gap: 12px; }
  .sv-tabs { gap: 20px; }
  .sv-tabs > button { font-size: 14px; padding-top: 0; }
  .sv-tabs > button.is-active::after { bottom: -3px; }
  .sv-toolbar-actions { gap: 9px; }
  .sv-toolbar-actions select { font-size: 11px; max-width: 102px; }
  .sv-auto-next { font-size: 10px !important; gap: 5px; }
  .sv-stage { padding-right: 0; }
  .sv-feed, .sv-status { border-radius: 0; }
  .sv-status { right: 0; }
  .sv-status h1 { font-size: 19px; }
  .sv-page-controls, .sv-keyboard-hints, .sv-quality { display: none; }
  .sv-card-top { top: 15px; left: 15px; right: 15px; }
  .sv-collection { font-size: 10px; max-width: 85%; }
  .sv-card-info { left: 16px; right: 79px; bottom: 65px; }
  .sv-author { font-size: 15px; gap: 8px; margin-bottom: 8px; }
  .sv-author img { width: 30px; height: 30px; }
  .sv-card-info h2 { font-size: 14px; line-height: 1.6; -webkit-line-clamp: 2; }
  .sv-description { font-size: 11px; -webkit-line-clamp: 1; }
  .sv-original { margin-top: 6px; font-size: 10px; }
  .sv-actions { right: 12px; bottom: 88px; gap: 18px; }
  .sv-action .sv-icon { width: 30px; height: 30px; }
  .sv-action span { font-size: 10px; }
  .sv-player-controls { padding: 0 15px 12px; }
  .sv-control-row { gap: 8px; }
  .sv-mobile-nav { display: flex; justify-content: space-around; min-height: calc(56px + env(safe-area-inset-bottom)); padding: 7px 7px calc(7px + env(safe-area-inset-bottom)); border-top: 1px solid #292932; background: #121216; }
  .sv-mobile-nav > * { display: flex; flex: 1; align-items: center; justify-content: center; flex-direction: column; gap: 3px; padding: 0; color: #7d7d8c; font-size: 9px; }
  .sv-mobile-nav .sv-icon { height: 20px; width: 20px; }
  .sv-mobile-nav .is-active { color: #fff; }
  .sv-mobile-nav .is-active .sv-icon { color: var(--sv-accent); }
  .sv-comments { inset: auto 0 0; width: 100%; height: 72%; max-height: 85dvh; border-radius: 18px 18px 0 0; }
  .sv-comments-header { padding: 20px 20px 13px; }
  .sv-comment-form { padding: 12px 20px calc(15px + env(safe-area-inset-bottom)); }
}
@media (max-width: 365px) { .sv-mobile-brand span { display: none; } .sv-auto-next > span:last-child { display: none; } .sv-card-info { right: 67px; } }
@media (max-height: 570px) and (min-width: 761px) { .sv-topbar { min-height: 57px; } .sv-toolbar { min-height: 40px; } .sv-actions { gap: 9px; bottom: 62px; } .sv-action .sv-icon { height: 24px; width: 24px; } .sv-card-info h2 { -webkit-line-clamp: 1; } .sv-description, .sv-tags { display: none; } .sv-author { margin-bottom: 4px; } .sv-sidebar-bottom p { display: none; } }
@media (prefers-reduced-motion: reduce) { .leaftheme-short-video-page * { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }
