/* 坐标依据videos/persistent-video-player展开原件与index23378；不移动iframe宿主。 */
.videos-page {
  width:100%;max-width:1024px;margin:0 auto;padding:24px 16px 64px;
}
.video-catalog-card,[data-current-video-info] {--video-card-muted:#ebe7dc}
.dark .video-catalog-card,.dark [data-current-video-info] {--video-card-muted:#27342d}
[data-current-video-info] {font-family:var(--article-nav-sans)}
.video-info-top {display:flex;flex-direction:column;gap:12px}
.video-badges {display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.video-provider {display:inline-flex;align-items:center;gap:4px;border-radius:calc(.35rem * .8);background:color-mix(in oklab,var(--primary) 10%,transparent);color:var(--primary);padding:2px 10px;font:500 12px/16px var(--article-nav-mono)}
.video-provider svg {width:12px;height:12px}
.video-duration {border-radius:calc(.35rem * .8);background:var(--video-card-muted);color:var(--muted);padding:2px 8px;font:12px/16px var(--article-nav-mono)}
.video-info-top h1 {margin:20px 0 0;font-size:24px;line-height:32px;font-weight:700;letter-spacing:-.025em}
.video-description {margin:8px 0 0;font-size:14px;line-height:1.625;color:var(--muted);white-space:normal;overflow-wrap:anywhere}
.video-external {display:inline-flex;align-items:center;gap:6px;align-self:flex-start;flex-shrink:0;border:1px solid color-mix(in oklab,var(--fg) 15%,transparent);border-radius:.35rem;padding:8px 14px;font-size:12px;font-weight:500;line-height:16px;background:var(--bg);color:var(--fg)}
.video-external:hover {background:var(--video-card-muted);color:var(--fg)}
.video-external svg {width:14px;height:14px;color:var(--muted)}
.video-tags {display:flex;flex-wrap:wrap;gap:6px;margin-top:16px;padding-top:16px}
.video-tags span {border:1px solid color-mix(in oklab,var(--fg) 10%,transparent);border-radius:calc(.35rem * .8);background:color-mix(in oklab,var(--video-card-muted) 40%,transparent);color:var(--muted);padding:2px 8px;font:12px/16px var(--article-nav-mono)}
.video-catalog {margin-top:48px}
.video-catalog-heading {display:flex;align-items:center;justify-content:space-between;gap:16px}
.video-catalog-heading h2 {margin:0;font-size:20px;line-height:28px;font-weight:700;letter-spacing:-.025em}
.video-catalog-heading>span {font:12px/16px "Maple Mono",monospace;color:var(--muted)}
.video-catalog-grid {display:grid;grid-template-columns:minmax(0,1fr);gap:24px;margin-top:24px}
.video-catalog-card {display:flex;flex-direction:column;justify-content:space-between;overflow:hidden;font-family:var(--article-nav-sans);border-radius:calc(.35rem * 1.4);border:1px solid color-mix(in oklab,var(--fg) 10%,transparent);background:color-mix(in oklab,var(--bg) 60%,transparent);transition:border-color .2s,background-color .2s}
.video-catalog-card:not(.is-active):hover {border-color:color-mix(in oklab,var(--fg) 20%,transparent);background:var(--bg)}
.video-catalog-card.is-active {border-color:var(--primary);background:color-mix(in oklab,var(--primary) 5%,transparent);box-shadow:none}
.video-card-body {padding:20px}
.video-card-meta {display:flex;align-items:center;justify-content:space-between;gap:8px}
.video-card-meta time {font:11.52px/1.5 var(--article-nav-mono);color:var(--muted)}
.video-card-meta .video-duration {font:11.2px/1.5 var(--article-nav-mono);border-radius:calc(.35rem * .8);background:var(--video-card-muted)}
.video-card-body h3 {margin:12px 0 0;font-size:16px;line-height:1.375;font-weight:600;letter-spacing:-.025em}
.video-card-body>p {display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;margin:8px 0 0;font-size:12px;line-height:1.625;color:var(--muted);white-space:normal;overflow-wrap:anywhere}
.video-card-bottom {display:flex;align-items:center;justify-content:space-between;border-top:1px solid color-mix(in oklab,var(--fg) 10%,transparent);padding:12px 16px 16px}
.video-card-tags {display:flex;flex-wrap:wrap;gap:4px}
.video-card-tags span {border-radius:calc(.35rem * .6);background:color-mix(in oklab,var(--video-card-muted) 60%,transparent);color:var(--muted);padding:2px 6px;font:10.4px/1.5 var(--article-nav-mono)}
.video-play-button {display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;gap:6px;height:28px;padding:0 10px;border:1px solid var(--border);border-radius:calc(.35rem * .8);font-size:12px;font-weight:500;line-height:16px;background:var(--bg)}
.video-play-button svg {width:12px;height:12px;fill:currentColor}
.video-catalog-card:not(.is-active) .video-play-button:hover {background:var(--video-card-muted)}
.video-catalog-card.is-active .video-play-button {border-color:transparent;background:var(--primary);color:#fbf9f1}
.video-catalog-card.is-active .video-play-button:hover {background:color-mix(in oklab,var(--primary) 80%,transparent)}
.dark .video-catalog-card:not(.is-active) .video-play-button {border-color:#ece8dc42;background:color-mix(in oklab,#ece8dc42 30%,transparent)}
.dark .video-catalog-card:not(.is-active) .video-play-button:hover {background:color-mix(in oklab,#ece8dc42 50%,transparent)}
.dark .video-catalog-card.is-active .video-play-button {color:#122018}
.video-play-button:disabled {cursor:not-allowed}
.video-unavailable {color:#dc2626!important}
.video-privacy {margin-top:32px;font-size:11px;color:var(--muted)}
#video-player-root {position:relative;z-index:1;flex-shrink:0;font-family:var(--article-nav-sans);--player-muted:#ebe7dc;--player-destructive:#b4493d}
.dark #video-player-root {--player-muted:#27342d;--player-destructive:#de746a}
body[data-section=videos] #video-player-root[hidden]+#main {padding-top:calc(max(.75rem,env(safe-area-inset-top)) + 3.5rem)}
#video-player-root.on-videos {width:100%;max-width:1024px;margin:0 auto;padding:calc(max(.75rem,env(safe-area-inset-top)) + 3.5rem + 30px) 16px 0}
#video-player-root.is-floating {position:fixed;right:16px;bottom:16px;z-index:40;width:288px;box-shadow:0 25px 50px -12px rgba(0,0,0,.25);transition:all .3s ease-out}
.video-player-shell {overflow:hidden;border:1px solid color-mix(in oklab,var(--fg) 15%,transparent);border-radius:calc(.35rem * 1.8);background:var(--bg);box-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1)}
.video-player-bar {display:flex;align-items:center;justify-content:space-between;height:44px;padding:6px 12px;border-bottom:1px solid color-mix(in oklab,var(--fg) 10%,transparent);background:color-mix(in oklab,var(--bg) 90%,transparent);backdrop-filter:blur(12px)}
.video-player-label {display:flex;min-width:0;align-items:center;gap:8px}
.video-player-label>svg {width:16px;height:16px;color:var(--primary)}
.video-player-label>span {overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:12px;line-height:16px;font-weight:500}
.video-player-actions {display:flex;align-items:center;gap:4px;flex-shrink:0}
.video-player-actions>* {display:grid;place-items:center;width:28px;height:28px;border-radius:calc(.35rem * .8);color:var(--muted)}
.video-player-actions>*:hover {background:var(--player-muted);color:var(--fg)}
.video-player-actions svg {width:16px;height:16px}
.video-player-actions>a svg {width:14px;height:14px}
.video-player-actions [data-player-close]:hover {background:color-mix(in oklab,var(--player-destructive) 10%,transparent);color:var(--player-destructive)}
.video-iframe-wrapper {position:relative;width:100%;aspect-ratio:16/9;background:color-mix(in oklab,#000 90%,transparent)}
.video-iframe-wrapper iframe {position:absolute;inset:0;display:block;width:100%;height:100%;border:0}
#video-player-root.is-minimized .video-player-shell {height:48px}
.video-player-error {padding:12px;font-size:12px;line-height:20px;color:#dc2626;background:var(--bg)}
.video-player-error button,.video-player-error a {display:inline-block;margin-right:12px;color:var(--primary);text-decoration:underline}
#video-player-root.is-floating[data-provider=youtube] .video-iframe-wrapper {min-height:200px}
@media(min-width:640px) {
  .videos-page {padding:32px 24px 120px}
  .video-info-top {flex-direction:row;align-items:flex-start;justify-content:space-between}
  .video-description {font-size:16px}
  .video-catalog-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
  #video-player-root.on-videos {padding:calc(max(.75rem,env(safe-area-inset-top)) + 3.5rem + 60px) 24px 0}
  #video-player-root.is-floating {width:320px}
}
@media(min-width:768px) {
  #video-player-root.on-videos {padding-top:calc(max(2.25rem,env(safe-area-inset-top)) + 3.75rem + 60px)}
  body[data-section=videos] #video-player-root[hidden]+#main {padding-top:calc(max(2.25rem,env(safe-area-inset-top)) + 3.75rem)}
}
@media(min-width:1024px) {
  .videos-page {padding:40px 32px 120px}
  .video-catalog-grid {grid-template-columns:repeat(3,minmax(0,1fr))}
  #video-player-root.on-videos {padding-left:32px;padding-right:32px}
}
@media(prefers-reduced-motion:reduce) {#video-player-root,.video-catalog-card {transition:none}}
