639 lines
56 KiB
CSS
639 lines
56 KiB
CSS
/* Author: fruit.com.cn */
|
|
:root {
|
|
--bg: #0f0f0f;
|
|
--surface: #181818;
|
|
--line: #303030;
|
|
--text: #f1f1f1;
|
|
--muted: #aaa;
|
|
--accent: #ff4b3e;
|
|
--sidebar: 240px;
|
|
--topbar: 56px;
|
|
--focus-ring: 0 0 0 3px #1c62b966;
|
|
}
|
|
html,
|
|
body,
|
|
#root { min-width: 0; }
|
|
|
|
body { overflow-x: hidden; background: var(--bg); color: var(--text); font-family: Roboto, Arial, Helvetica, sans-serif; }
|
|
|
|
button,
|
|
a,
|
|
input,
|
|
[role="button"] { -webkit-tap-highlight-color: transparent; }
|
|
|
|
:where(button, a, input, [role="button"]):focus-visible { outline: 2px solid #8ab4f8; outline-offset: 2px; box-shadow: var(--focus-ring); }
|
|
|
|
/* 顶部栏:左中右三段,搜索框居中 */
|
|
.topbar { position: sticky; top: 0; z-index: 30; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px) minmax(0, 1fr); align-items: center; column-gap: 16px; height: var(--topbar); padding: 0 16px; background: var(--bg); border-bottom: 0; box-shadow: none; }
|
|
.topbar-left { display: flex; align-items: center; gap: 16px; min-width: 0; }
|
|
.topbar-menu { width: 40px; height: 40px; border-radius: 50%; color: var(--text); cursor: pointer; }
|
|
.topbar-menu:hover, .notification-button:hover, .mobile-search:hover { background: #272727; }
|
|
.brand { display: flex; align-items: center; height: 40px; min-width: 0; }
|
|
.brand img { width: 90px; height: 30px; object-fit: contain; }
|
|
.topbar-center { display: flex; align-items: center; gap: 8px; min-width: 0; }
|
|
.search-form { display: flex; flex: 1; min-width: 0; height: 40px; max-width: none; margin: 0; border-radius: 20px; }
|
|
.search-field { position: relative; display: flex; flex: 1; min-width: 0; }
|
|
.search-form input { width: 100%; height: 40px; padding: 0 42px 0 16px; border: 1px solid #303030; border-radius: 20px 0 0 20px; background: #121212; color: var(--text); font-size: 14px; }
|
|
.search-form input::placeholder { color: #888; }
|
|
.search-form input:focus { outline: none; border-color: #1c62b9; box-shadow: inset 0 0 0 1px #1c62b9; }
|
|
.search-form button { flex: none; display: grid; place-items: center; width: 64px; height: 40px; border: 1px solid #303030; border-left: 0; border-radius: 0 20px 20px 0; background: #222; color: var(--text); cursor: pointer; }
|
|
.search-form button:hover { background: #303030; }
|
|
.search-form button:active,
|
|
.search-clear:active,
|
|
.create-button:active,
|
|
.language-trigger:active,
|
|
.youtube-category-chip:active,
|
|
.watch-actions button:active { transform: scale(.97); }
|
|
.search-form .search-field .search-clear { position: absolute; right: 8px; top: 50%; display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: #303030; color: #ddd; transform: translateY(-50%); cursor: pointer; }
|
|
.search-form .search-field .search-clear:hover { background: #444; }
|
|
.search-empty { display: grid; place-items: center; gap: 8px; padding: 56px 0; color: #aaa; }
|
|
.search-empty b { color: #fff; font-size: 16px; font-weight: 500; }
|
|
.top-actions { display: flex; align-items: center; justify-self: end; gap: 10px; min-width: 0; color: var(--text); }
|
|
.mobile-search { display: none; }
|
|
.create-wrap { position: relative; }
|
|
.create-button { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border: 0; border-radius: 18px; background: #272727; color: var(--text); font-weight: 600; cursor: pointer; }
|
|
.create-button:hover { background: #343434; }
|
|
.create-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 60; min-width: 208px; padding: 8px; border: 1px solid #303030; border-radius: 12px; background: #212121; box-shadow: 0 12px 32px #000a; transform-origin: top right; animation: ymb-pop-in .18s cubic-bezier(.2, .7, .3, 1) both; }
|
|
.create-menu button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: 8px; background: transparent; color: var(--text); font-size: 14px; text-align: left; cursor: pointer; }
|
|
.create-menu button:hover { background: #3a3a3a; }
|
|
.upload-backdrop { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px; background: #000a; }
|
|
.upload-dialog { width: min(560px, 100%); max-height: calc(100vh - 48px); overflow-y: auto; padding: 22px 24px 24px; border: 1px solid #303030; border-radius: 16px; background: #1c1c1c; box-shadow: 0 24px 64px #000c; }
|
|
.upload-dialog header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
|
|
.upload-dialog h2 { margin: 0; color: #fff; font-size: 20px; font-weight: 600; }
|
|
.upload-drop { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 20px; padding: 36px 20px; border: 1px dashed #3f3f3f; border-radius: 12px; background: #ffffff08; color: #c9c9c9; text-align: center; cursor: pointer; transition: border-color .18s ease, background .18s ease; }
|
|
.upload-drop:hover, .upload-drop.dragging { border-color: #7aa7ff; background: #1f6feb1a; }
|
|
.upload-drop b { max-width: 100%; color: #fff; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
|
|
.upload-drop small { color: #9a9a9a; font-size: 12px; }
|
|
.upload-field { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
|
|
.upload-field span { color: #cfcfcf; font-size: 13px; }
|
|
.upload-field input { height: 42px; padding: 0 14px; border: 1px solid #3a3a3a; border-radius: 10px; background: #121212; color: #fff; font-size: 14px; }
|
|
.upload-field input:focus { border-color: #7aa7ff; outline: none; }
|
|
.upload-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
|
|
.upload-cancel, .upload-submit { height: 38px; padding: 0 18px; border: 0; border-radius: 999px; font-size: 14px; font-weight: 600; cursor: pointer; }
|
|
.upload-cancel { background: #2c2c2c; color: #eaeaea; }
|
|
.upload-cancel:hover { background: #3a3a3a; }
|
|
.upload-submit { background: #fff; color: #111; }
|
|
.upload-submit:disabled { opacity: .4; cursor: not-allowed; }
|
|
.upload-done { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 32px 8px 8px; color: #4ade80; text-align: center; }
|
|
.upload-done h3 { margin: 4px 0 0; color: #fff; font-size: 18px; font-weight: 600; }
|
|
.upload-done p { margin: 0; color: #a8a8a8; font-size: 13px; }
|
|
.upload-done .upload-submit { margin-top: 12px; }
|
|
.notification-button { width: 40px; height: 40px; border-radius: 50%; }
|
|
.language-trigger { height: 40px; padding: 0 10px; gap: 6px; border: 0; border-radius: 999px; background: transparent; color: var(--text); font-size: 12px; font-weight: 600; }
|
|
.language-trigger:hover, .language-trigger[aria-expanded="true"] { background: #272727; color: #fff; }
|
|
.language-trigger svg { color: #b9b9b9; }
|
|
.language-trigger .language-code { color: #fff; font-size: 12px; font-weight: 600; }
|
|
.language-trigger .language-flag { display: inline-flex; flex: none; width: 20px; height: 20px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 1px #ffffff1f; }
|
|
.language-flag svg { display: block; width: 100%; height: 100%; }
|
|
.language-trigger .language-chevron { color: #8a8a8a; }
|
|
.profile-chip { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #065fd4; color: #fff; }
|
|
|
|
/* 侧边栏:展开 240px,收起 72px 图标 + 文字 */
|
|
.sidebar { position: fixed; top: var(--topbar); bottom: 0; left: 0; z-index: 20; width: var(--sidebar); padding: 12px; overflow-y: auto; background: var(--bg); border: 0; box-shadow: none; color: var(--text); transition: width .24s ease, padding .24s ease, transform .24s ease; }
|
|
.sidebar::-webkit-scrollbar { width: 8px; }
|
|
.sidebar::-webkit-scrollbar-thumb { background: #4d4d4d; border-radius: 4px; }
|
|
.sidebar.closed { width: 72px; padding: 4px 4px 12px; }
|
|
.sidebar-group { display: grid; gap: 2px; }
|
|
.sidebar a, .genre-link { display: flex; align-items: center; gap: 24px; width: 100%; min-height: 40px; padding: 8px 12px; border: 0; border-radius: 10px; background: transparent; color: var(--text); font-size: 14px; text-align: left; cursor: pointer; }
|
|
.sidebar a svg, .genre-link svg { flex: none; width: 24px; height: 24px; }
|
|
.sidebar a:hover, .genre-link:hover, .sidebar a.active { background: #272727; color: #fff; }
|
|
.sidebar small { display: none; }
|
|
.nav-rule { height: 1px; margin: 12px 0; background: var(--line); }
|
|
.sidebar.closed a, .sidebar.closed .genre-link { flex-direction: column; justify-content: center; gap: 6px; height: 74px; min-height: 0; padding: 16px 0; border-radius: 10px; font-size: 10px; line-height: 1.2; }
|
|
.sidebar.closed a svg, .sidebar.closed .genre-link svg { width: 24px; height: 24px; }
|
|
.sidebar.closed .nav-rule { display: block; margin: 8px 12px; }
|
|
|
|
/* 内容区 */
|
|
.content { max-width: none; margin: 0; padding: 12px 24px 80px calc(var(--sidebar) + 24px); transition: padding-left .24s ease; }
|
|
.content-wide { padding-left: calc(72px + 24px); }
|
|
.content,
|
|
.content-wide,
|
|
.youtube-home-feed,
|
|
.youtube-shorts-shelf,
|
|
.video-grid,
|
|
.media-card,
|
|
.media-copy { min-width: 0; }
|
|
.site-footer { padding: 28px 0 8px; color: #717171; font-size: 12px; text-align: center; }
|
|
.youtube-home-feed, .youtube-shorts-shelf { margin-bottom: 40px; }
|
|
.youtube-category-bar { position: sticky; top: var(--topbar); z-index: 10; display: flex; gap: 12px; overflow-x: auto; padding: 12px 0; background: var(--bg); scrollbar-width: none; }
|
|
.youtube-category-bar::-webkit-scrollbar { display: none; }
|
|
.youtube-category-chip { flex: none; border: 0; border-radius: 8px; padding: 8px 14px; background: #272727; color: #fff; white-space: nowrap; cursor: pointer; font-size: 14px; font-weight: 500; }
|
|
.youtube-category-chip:hover { background: #3f3f3f; }
|
|
.youtube-category-chip.active { background: #f1f1f1; color: #0f0f0f; }
|
|
.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 16px; }
|
|
.media-card { min-width: 0; }
|
|
.media-thumb { border-radius: 12px; background: #222; }
|
|
.media-thumb img { display: block; }
|
|
.media-meta { align-items: flex-start; gap: 12px; padding-top: 12px; }
|
|
.channel-avatar { width: 36px; height: 36px; background: #734c67; color: #fff; font-size: 14px; }
|
|
.media-copy { min-width: 0; flex: 1; }
|
|
.media-title { display: -webkit-box; overflow: hidden; color: #fff; font-size: 16px; font-weight: 500; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
|
|
.media-meta small { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.5; }
|
|
.media-more { flex: none; border: 0; background: transparent; color: #fff; padding: 4px; cursor: pointer; }
|
|
|
|
/* Shorts 集合 */
|
|
.youtube-shorts-shelf { padding: 24px 0 26px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
|
|
.youtube-shelf-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
|
|
.youtube-shelf-heading h2 { display: flex; align-items: center; gap: 9px; margin: 0; color: #fff; font-size: 22px; }
|
|
.youtube-shelf-heading button { border: 0; background: transparent; color: #ff8a82; font-size: 14px; font-weight: 600; cursor: pointer; }
|
|
.shorts-mark { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: var(--accent); color: #fff; font-size: 12px; }
|
|
.shorts-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
|
|
.shorts-row .media-thumb { aspect-ratio: 9 / 16; border-radius: 12px; }
|
|
.shorts-row .media-meta { display: none; }
|
|
.short-media-title { display: -webkit-box; overflow: hidden; margin-top: 9px; color: var(--text); font-size: 14px; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
|
|
|
|
/* 提示与语言菜单 */
|
|
.api-note { margin: 0 0 16px; padding: 10px 12px; border: 0; border-radius: 8px; background: #181818; color: var(--muted); font-size: 13px; }
|
|
.api-note.warning { background: #241a1a; color: #e6b8b3; }
|
|
.language-menu { top: 48px; width: 208px; padding: 8px; border: 1px solid #333; border-radius: 14px; background: #1f1f1f; box-shadow: 0 20px 50px #000a; transform-origin: top right; animation: ymb-pop-in .18s cubic-bezier(.2, .7, .3, 1) both; }
|
|
.language-menu-header { padding: 7px 10px 8px; color: #8a8a8a; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
|
|
.language-menu button { gap: 10px; padding: 10px; border-radius: 9px; color: #ddd; }
|
|
.language-menu button:hover { background: #2b2b2b; color: #fff; }
|
|
.language-menu button.selected { background: #ffffff0f; color: #fff; }
|
|
.language-option-label { flex: 1; font-size: 14px; }
|
|
.language-option-check { flex: none; color: #ff8a82; }
|
|
.language-menu .language-flag { display: inline-flex; flex: none; width: 22px; height: 22px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 1px #ffffff1f; }
|
|
|
|
/* Shorts:客户端式全屏竖滑视频流 */
|
|
.shorts-stage { position: fixed; top: var(--topbar); left: var(--sidebar); right: 0; bottom: 0; z-index: 6; margin: 0; overflow: hidden; background: #000; }
|
|
.shorts-stage-wide { left: 72px; }
|
|
.shorts-scroll { height: 100%; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior-y: contain; scrollbar-width: none; }
|
|
.shorts-scroll::-webkit-scrollbar { display: none; }
|
|
.short-slide { position: relative; height: 100%; overflow: hidden; background: #050505; scroll-snap-align: start; scroll-snap-stop: always; }
|
|
.short-slide-stage { position: relative; display: flex; align-items: center; justify-content: center; width: min(100%, calc((100vh - var(--topbar) - 24px) * 9 / 16)); height: 100%; margin: 0 auto; padding: 12px 0; }
|
|
.short-column { display: flex; flex-direction: column; justify-content: center; width: 100%; height: 100%; }
|
|
.short-player-wrap { position: relative; flex: 1; min-height: 0; }
|
|
.short-player-wrap::after { content: ''; position: absolute; inset: auto 0 0; display: none; height: 32%; background: linear-gradient(transparent, #000b); pointer-events: none; }
|
|
.short-slide-player { width: 100%; height: 100%; overflow: hidden; border-radius: 16px; background: #000; transform: translateZ(0); isolation: isolate; }
|
|
.short-slide-player .vp, .short-slide-player .video-player { border-radius: inherit; }
|
|
.short-slide-player .video-player { width: 100%; height: 100%; object-fit: contain; }
|
|
.short-slide-placeholder { position: relative; display: grid; place-items: center; width: 100%; height: 100%; }
|
|
.short-slide-placeholder img { width: 100%; height: 100%; object-fit: cover; opacity: .4; }
|
|
.short-slide-placeholder span { position: absolute; padding: 10px 14px; border-radius: 8px; background: #000b; color: #fff; }
|
|
.short-slide-info { position: absolute; right: calc(100% + 24px); bottom: 12px; width: clamp(0px, calc((100vw - var(--sidebar) - 100%) / 2 - 24px), 340px); margin: 0; padding: 0; pointer-events: auto; text-shadow: none; }
|
|
.short-channel { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; pointer-events: auto; }
|
|
.short-avatar { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: #065fd4; color: #fff; font-size: 14px; font-weight: 700; }
|
|
.short-channel-name { color: #fff; font-size: 14px; font-weight: 600; }
|
|
.short-follow { border: 0; border-radius: 16px; padding: 6px 14px; background: #fff; color: #111; font-size: 12px; font-weight: 600; cursor: pointer; }
|
|
.short-follow.followed { background: #ffffff2b; color: #fff; }
|
|
.short-slide-info h1 { display: -webkit-box; overflow: hidden; margin: 6px 0 5px; color: #fff; font-size: 18px; font-weight: 600; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
|
|
.short-rail { position: absolute; left: calc(100% + 16px); bottom: 20px; z-index: 4; display: grid; gap: 16px; justify-items: center; }
|
|
.short-rail button { display: grid; justify-items: center; gap: 5px; border: 0; padding: 0; background: transparent; color: #fff; cursor: pointer; }
|
|
.short-rail .rail-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #ffffff1f; color: #fff; }
|
|
.short-rail button:hover .rail-icon { background: #ffffff33; }
|
|
.short-rail button.active .rail-icon { background: #ff0033; color: #fff; }
|
|
.short-rail small { color: #eee; font-size: 11px; line-height: 1.2; text-shadow: 0 1px 6px #000; }
|
|
.shorts-toast { position: fixed; left: 50%; bottom: 28px; z-index: 80; transform: translateX(-50%); max-width: calc(100vw - 32px); padding: 10px 16px; border-radius: 8px; background: #fff; color: #111; font-size: 13px; word-break: break-all; }
|
|
.shorts-state { position: absolute; top: 20px; left: 50%; z-index: 8; transform: translateX(-50%); padding: 10px 14px; border-radius: 8px; background: #111c; color: #ddd; font-size: 13px; white-space: nowrap; }
|
|
.shorts-state.warning { color: #ffb0a8; }
|
|
|
|
/* 评论面板 */
|
|
.comments-backdrop { position: fixed; top: var(--topbar); right: 0; bottom: 0; left: 0; z-index: 70; border: 0; background: #0008; }
|
|
.comments-sheet { position: fixed; top: var(--topbar); right: 0; bottom: 0; z-index: 71; display: flex; flex-direction: column; width: min(420px, 100%); background: #181818; border-left: 1px solid #303030; }
|
|
.comments-header { display: flex; align-items: center; justify-content: space-between; padding: 16px; border-bottom: 1px solid #303030; }
|
|
.comments-header h2 { margin: 0; color: #fff; font-size: 16px; font-weight: 600; }
|
|
.comments-header button { display: grid; place-items: center; border: 0; background: transparent; color: #fff; cursor: pointer; }
|
|
.comments-list { flex: 1; display: grid; align-content: start; gap: 16px; padding: 16px; overflow-y: auto; }
|
|
.comments-note { margin: 0; color: #aaa; font-size: 13px; }
|
|
.comments-note.warning { color: #ffb0a8; }
|
|
.comment-row { display: flex; gap: 10px; }
|
|
.comment-avatar { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: #734c67; color: #fff; font-size: 13px; font-weight: 700; }
|
|
.comment-body { min-width: 0; }
|
|
.comment-body b { color: #fff; font-size: 13px; }
|
|
.comment-body p { margin: 4px 0; color: #eee; font-size: 14px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
|
|
.comment-body small { color: #888; font-size: 11px; }
|
|
.comment-form { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid #303030; }
|
|
.comment-form input { flex: 1; min-width: 0; height: 40px; padding: 0 14px; border: 1px solid #3b3b3b; border-radius: 20px; background: #121212; color: #fff; }
|
|
.comment-form button { display: grid; place-items: center; width: 44px; height: 40px; border: 0; border-radius: 20px; background: #ff0033; color: #fff; cursor: pointer; }
|
|
.comment-form button:disabled { opacity: .35; cursor: not-allowed; }
|
|
/* 播放页 */
|
|
.watch-page { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 36px; max-width: 1320px; margin: 0 auto; padding: 8px 0 48px; align-items: start; }
|
|
.watch-primary { min-width: 0; }
|
|
.watch-stage { position: relative; display: grid; place-items: center; padding: 22px 20px; overflow: hidden; border-radius: 24px; background: radial-gradient(120% 90% at 50% 0%, #1d1e25, #09090b 72%); box-shadow: 0 30px 80px #0006, inset 0 1px 0 #ffffff0d; }
|
|
.watch-stage::before { content: ''; position: absolute; inset: -35%; background-image: var(--watch-poster); background-position: center; background-size: cover; filter: blur(56px) saturate(1.4); opacity: .4; transform: scale(1.15); pointer-events: none; }
|
|
.watch-stage::after { content: ''; position: absolute; inset: 0; background: radial-gradient(72% 72% at 50% 46%, #00000000 20%, #08080ae0 92%); pointer-events: none; }
|
|
.watch-player { position: relative; z-index: 1; width: auto; max-width: 100%; height: min(64vh, 620px); aspect-ratio: 9 / 16; overflow: hidden; border-radius: 18px; background: #000; box-shadow: 0 40px 100px #000e; touch-action: none; transform: translateZ(0); isolation: isolate; }
|
|
.watch-player .vp, .watch-player .video-player { border-radius: inherit; }
|
|
.watch-player .video-player { width: 100%; height: 100%; object-fit: contain; }
|
|
.watch-player-placeholder { position: relative; display: grid; place-items: center; width: 100%; height: 100%; }
|
|
.watch-player-placeholder img { width: 100%; height: 100%; object-fit: cover; opacity: .4; }
|
|
.watch-player-placeholder span { position: absolute; padding: 10px 14px; border-radius: 999px; background: #000b; color: #fff; font-size: 13px; backdrop-filter: blur(6px); }
|
|
.watch-swipe-tip { position: absolute; top: 12px; right: 12px; z-index: 2; display: none; padding: 5px 10px; border-radius: 999px; background: #0009; color: #ddd; font-size: 11px; pointer-events: none; }
|
|
@media (max-width: 760px) { .watch-swipe-tip { display: block; } }
|
|
.watch-arrows { position: absolute; top: 50%; right: 12px; z-index: 3; display: grid; gap: 8px; transform: translateY(-50%); }
|
|
.watch-arrows button { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #0009; color: #fff; font-size: 16px; cursor: pointer; box-shadow: 0 8px 22px #0008; backdrop-filter: blur(6px); }
|
|
.watch-arrows button:disabled { opacity: .35; cursor: not-allowed; }
|
|
@media (max-width: 760px) { .watch-arrows { display: none; } }
|
|
.watch-meta { display: flex; align-items: center; gap: 10px; margin: 22px 2px 10px; color: #9a9a9a; font-size: 12.5px; }
|
|
.watch-badge { padding: 4px 10px; border-radius: 999px; background: #ffffff10; color: #eaeaea; font-size: 12px; font-weight: 600; letter-spacing: .02em; }
|
|
.watch-title { margin: 0 0 18px; color: #fff; font-size: 26px; font-weight: 700; line-height: 1.35; letter-spacing: -.015em; }
|
|
.watch-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0 16px; border-top: 1px solid #ffffff0d; border-bottom: 1px solid #ffffff0d; }
|
|
.watch-channel { display: flex; align-items: center; gap: 12px; min-width: 0; }
|
|
.watch-avatar { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, #2b6cff, #7a3cff); color: #fff; font-size: 15px; font-weight: 700; box-shadow: 0 0 0 2px #0f0f0f, 0 0 0 3px #ffffff1f; }
|
|
.watch-channel-copy { min-width: 0; }
|
|
.watch-channel-copy b { color: #f5f5f5; font-size: 14px; font-weight: 600; }
|
|
.watch-subscribe { margin-left: 2px; border: 0; border-radius: 999px; padding: 9px 20px; background: #fff; color: #0b0b0b; font-size: 13px; font-weight: 700; cursor: pointer; transition: transform .18s ease, background .18s ease; }
|
|
.watch-subscribe:hover { transform: translateY(-1px); }
|
|
.watch-subscribe.followed { background: #ffffff14; color: #e8e8e8; box-shadow: inset 0 0 0 1px #ffffff24; }
|
|
.watch-actions { display: flex; align-items: center; gap: 8px; }
|
|
.watch-actions button { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: #ffffff0f; color: #f0f0f0; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .18s ease, transform .16s ease; }
|
|
.watch-actions button:hover { background: #ffffff1e; transform: translateY(-1px); }
|
|
.watch-actions button.active { background: #ff2d55; color: #fff; }
|
|
.watch-description { margin-top: 18px; padding: 18px 20px; border-radius: 16px; background: linear-gradient(180deg, #17171a, #111113); color: #c7c7c7; font-size: 14px; line-height: 1.75; box-shadow: 0 16px 40px #0005; }
|
|
.watch-description p { margin: 0; white-space: pre-wrap; }
|
|
.watch-side { position: sticky; top: calc(var(--topbar) + 16px); min-width: 0; padding: 18px; border-radius: 20px; background: linear-gradient(180deg, #151518, #101012); box-shadow: 0 24px 60px #0006, inset 0 1px 0 #ffffff0a; }
|
|
.watch-side h2 { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 14px; color: #fff; font-size: 15px; font-weight: 600; letter-spacing: .01em; }
|
|
.watch-episode-count { padding: 3px 9px; border-radius: 999px; background: #ffffff0d; color: #9a9a9a; font-size: 11px; font-weight: 600; }
|
|
.watch-episode-list { display: grid; gap: 6px; max-height: calc(100vh - var(--topbar) - 150px); overflow-y: auto; padding-right: 4px; scrollbar-width: thin; scrollbar-color: #3a3a3a transparent; }
|
|
.watch-episode-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px; border: 0; border-radius: 12px; background: transparent; text-align: left; cursor: pointer; transition: background .18s ease; }
|
|
.watch-episode-item:hover { background: #ffffff0a; }
|
|
.watch-episode-item.active { background: #ffffff12; box-shadow: 0 10px 28px #0007; }
|
|
.watch-episode-thumb { position: relative; flex: none; width: 96px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 8px; background: #222; }
|
|
.watch-episode-thumb img { width: 100%; height: 100%; object-fit: cover; }
|
|
.watch-episode-thumb b { position: absolute; right: 4px; bottom: 4px; padding: 1px 4px; border-radius: 3px; background: #000c; color: #fff; font-size: 11px; font-weight: 600; }
|
|
.watch-episode-lock { position: absolute; inset: 0; display: grid; place-items: center; background: #000a; color: #fff; backdrop-filter: blur(2px); }
|
|
.watch-episode-copy { display: grid; gap: 3px; min-width: 0; align-content: center; }
|
|
.watch-episode-copy b { color: #f2f2f2; font-size: 13px; font-weight: 600; }
|
|
.watch-episode-copy small { color: #8f8f8f; font-size: 11.5px; }
|
|
.watch-side-card { display: flex; align-items: flex-start; gap: 10px; }
|
|
.watch-side-thumb { position: relative; flex: none; width: 112px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px; background: #222; }
|
|
.watch-skeleton-player { width: min(100%, 372px); aspect-ratio: 9 / 16; margin: 0 auto; border-radius: 18px; }
|
|
.watch-skeleton-title { width: 72%; height: 26px; margin-top: 22px; }
|
|
.watch-skeleton-row { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
|
|
.watch-skeleton-channel { width: 160px; height: 36px; border-radius: 18px; }
|
|
.watch-skeleton-description { height: 96px; margin-top: 18px; border-radius: 16px; }
|
|
.watch-skeleton-heading { width: 90px; height: 18px; margin-bottom: 16px; }
|
|
@media (max-width: 1180px) { .watch-page { grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; } }
|
|
@media (max-width: 980px) { .watch-page { display: block; } .watch-side { margin-top: 28px; } }
|
|
|
|
/* 观看记录 */
|
|
.history-heading { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 20px; }
|
|
.history-heading h1 { margin: 0; color: #fff; font-size: 22px; font-weight: 600; }
|
|
.history-heading button { border: 0; background: transparent; color: #ff8a82; font-size: 14px; font-weight: 600; cursor: pointer; }
|
|
.history-card { min-width: 0; }
|
|
.history-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; background: #222; }
|
|
.history-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
|
|
.history-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: #ffffff26; }
|
|
.history-progress i { display: block; height: 100%; background: #ff0033; }
|
|
.history-title { display: -webkit-box; overflow: hidden; margin-top: 10px; color: #fff; font-size: 15px; font-weight: 500; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
|
|
.history-card small { display: block; margin-top: 4px; color: #aaa; font-size: 12px; }
|
|
|
|
/* 骨架屏 */
|
|
.skeleton { display: block; border-radius: 8px; background: #272727; animation: skeleton-pulse 1.5s ease-in-out infinite; }
|
|
@keyframes skeleton-pulse { 0%, 100% { opacity: .45; } 50% { opacity: .85; } }
|
|
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; opacity: .6; } }
|
|
.skeleton-card { pointer-events: none; }
|
|
.skeleton-thumb { width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; }
|
|
.skeleton-thumb.compact { aspect-ratio: 9 / 16; }
|
|
.skeleton-meta { display: flex; gap: 12px; padding-top: 12px; }
|
|
.skeleton-avatar { flex: none; width: 36px; height: 36px; border-radius: 50%; }
|
|
.skeleton-lines { flex: 1; display: grid; gap: 8px; padding-top: 2px; }
|
|
.skeleton-line { width: 92%; height: 15px; }
|
|
.skeleton-line.short { width: 58%; height: 12px; }
|
|
.skeleton-short-title { width: 90%; height: 14px; margin-top: 10px; }
|
|
.skeleton-chip { flex: none; width: 72px; height: 34px; border-radius: 8px; }
|
|
.skeleton-chip:first-child { width: 54px; }
|
|
.history-skeleton .skeleton-line { width: 88%; height: 15px; margin-top: 10px; }
|
|
.history-skeleton .skeleton-line.short { width: 46%; height: 12px; }
|
|
.shorts-skeleton { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
|
|
.shorts-skeleton-wrap { position: relative; width: min(100%, calc((100vh - var(--topbar) - 170px) * 9 / 16)); height: 100%; padding: 12px 0; }
|
|
.shorts-skeleton-screen { width: 100%; height: 100%; border-radius: 12px; }
|
|
.shorts-skeleton-rail { position: absolute; right: -62px; bottom: 120px; display: grid; gap: 16px; }
|
|
.skeleton-dot { width: 46px; height: 46px; border-radius: 50%; }
|
|
.shorts-skeleton-copy { position: absolute; right: 4px; bottom: 30px; left: 4px; display: grid; gap: 8px; }
|
|
|
|
/* 关于 YMB */
|
|
.about-page { max-width: 1080px; margin: 0 auto; padding: 8px 0 40px; counter-reset: about-section; }
|
|
|
|
/* Hero:极光渐变 + 高级质感 */
|
|
.about-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); gap: 40px; align-items: center; overflow: hidden; padding: 64px 56px; border-radius: 30px; background: radial-gradient(130% 150% at 8% -10%, #182947 0%, #0d0e12 44%, #170b12 100%); box-shadow: 0 50px 130px #0008, inset 0 1px 0 #ffffff12; isolation: isolate; }
|
|
.about-hero::before { content: ''; position: absolute; top: -280px; right: -160px; width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(circle, #2f6bff4d, transparent 62%); filter: blur(8px); pointer-events: none; }
|
|
.about-hero::after { content: ''; position: absolute; bottom: -320px; left: 18%; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(circle, #ff2d5540, transparent 64%); filter: blur(8px); pointer-events: none; }
|
|
.about-hero-copy, .about-hero-visual { position: relative; z-index: 2; }
|
|
.about-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: #ffffff12; color: #bfd8ff; font-size: 11px; font-weight: 700; letter-spacing: .16em; backdrop-filter: blur(8px); }
|
|
.about-kicker::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #8ec5ff; box-shadow: 0 0 12px #8ec5ff; animation: about-pulse 2.4s ease-in-out infinite; }
|
|
@keyframes about-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.8); } }
|
|
.about-hero h1 { max-width: 620px; margin: 20px 0 14px; font-size: 58px; font-weight: 800; line-height: 1.04; letter-spacing: -.035em; background: linear-gradient(115deg, #ffffff 15%, #b9d3ff 52%, #ffb7c6 88%); -webkit-background-clip: text; background-clip: text; color: transparent; }
|
|
.about-hero p { max-width: 560px; margin: 0; color: #b6bcc8; font-size: 15.5px; line-height: 1.75; }
|
|
.about-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
|
|
.about-primary, .about-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 22px; border-radius: 999px; font-size: 14px; font-weight: 700; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
|
|
.about-primary { background: linear-gradient(120deg, #ffffff, #e8eeff); color: #0b0c10; box-shadow: 0 10px 30px #0008; }
|
|
.about-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px #000a; }
|
|
.about-secondary { background: #ffffff10; color: #fff; backdrop-filter: blur(8px); }
|
|
.about-secondary:hover { transform: translateY(-2px); background: #ffffff20; }
|
|
.about-stores { display: flex; flex-direction: column; gap: 10px; margin-top: 30px; }
|
|
.about-stores-label { color: #8b90a0; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
|
|
.about-stores-row { display: flex; flex-wrap: wrap; gap: 12px; }
|
|
.store-badge { display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 20px 0 16px; border-radius: 12px; background: #000; color: #fff; box-shadow: inset 0 0 0 1px #ffffff47, 0 12px 28px #00000059; transition: transform .22s cubic-bezier(.34, 1.56, .64, 1), box-shadow .22s ease; }
|
|
.store-badge:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px #ffffff73, 0 18px 36px #00000073; }
|
|
.store-badge svg { flex: none; }
|
|
.store-badge-copy { display: flex; flex-direction: column; line-height: 1.1; }
|
|
.store-badge-copy small { color: #cfcfcf; font-size: 9.5px; letter-spacing: .04em; }
|
|
.store-badge-copy b { color: #fff; font-size: 17px; letter-spacing: .01em; }
|
|
.about-values { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
|
|
.about-values span { padding: 6px 12px; border-radius: 999px; background: #ffffff10; color: #c3c8d4; font-size: 12px; }
|
|
.about-hero-visual { display: grid; place-items: center; min-height: 360px; }
|
|
.about-phone { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; width: 200px; height: 350px; border-radius: 34px; background: linear-gradient(165deg, #123264, #14151b 58%, #360f1c); box-shadow: 0 0 0 8px #ffffff06, 0 46px 100px #000b, inset 0 1px 0 #ffffff26; animation: about-float-y 6.5s ease-in-out infinite; }
|
|
.about-phone::before { content: ''; position: absolute; top: 13px; width: 48px; height: 4px; border-radius: 2px; background: #ffffff33; }
|
|
.about-phone-glow { position: absolute; inset: 14px; border-radius: 24px; background: radial-gradient(circle at 50% 28%, #2f6bff38, transparent 62%); }
|
|
.about-phone-logo { position: relative; color: #fff; font-size: 36px; font-weight: 800; letter-spacing: -.04em; }
|
|
.about-phone-play { position: relative; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: linear-gradient(135deg, #ff2d55, #d1003a); color: #fff; box-shadow: 0 12px 34px #ff003355, inset 0 1px 0 #ffffff40; }
|
|
.about-phone small { position: relative; color: #a9ccff; font-size: 10px; font-weight: 700; letter-spacing: .28em; }
|
|
@keyframes about-float-y { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
|
|
.about-float { position: absolute; z-index: 3; padding: 7px 12px; border-radius: 999px; background: #191a20e6; color: #e9edf5; font-size: 11px; white-space: nowrap; box-shadow: 0 12px 28px #0009; backdrop-filter: blur(10px); }
|
|
.about-float-a { top: 22px; left: 4px; animation: about-float-y 7.2s ease-in-out infinite; }
|
|
.about-float-b { top: 48%; right: -8px; animation: about-float-y 8s ease-in-out .6s infinite; }
|
|
.about-float-c { bottom: 26px; left: 16px; animation: about-float-y 7.6s ease-in-out .3s infinite; }
|
|
|
|
/* 内容分区 */
|
|
.about-section { position: relative; margin-top: 64px; }
|
|
.about-section::before { counter-increment: about-section; content: '0' counter(about-section); position: absolute; top: -30px; left: -6px; color: #ffffff0d; font-size: 76px; font-weight: 800; line-height: 1; letter-spacing: -.05em; pointer-events: none; }
|
|
.about-section > h2 { position: relative; margin: 0 0 14px; color: #fff; font-size: 27px; font-weight: 700; letter-spacing: -.01em; }
|
|
.about-lead { position: relative; max-width: 760px; margin: 0; color: #b7bac3; font-size: 15.5px; line-height: 1.85; }
|
|
.about-pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }
|
|
.about-pillar { position: relative; overflow: hidden; padding: 28px; border-radius: 20px; background: linear-gradient(180deg, #191a20, #101013); box-shadow: 0 20px 44px #0006; transition: transform .26s ease, box-shadow .26s ease; }
|
|
.about-pillar::before { content: ''; position: absolute; top: -60px; right: -40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, #2f6bff2e, transparent 70%); pointer-events: none; }
|
|
.about-pillar:hover { transform: translateY(-5px); box-shadow: 0 32px 64px #000b; }
|
|
.about-pillar-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(135deg, #1f6feb38, #ff2d5533); color: #c3dbff; }
|
|
.about-pillar h3 { margin: 20px 0 8px; color: #fff; font-size: 17px; font-weight: 700; }
|
|
.about-pillar p { margin: 0; color: #a4a8b3; font-size: 13px; line-height: 1.75; }
|
|
.about-roadmap { position: relative; margin: 26px 0 0; padding: 0 0 0 26px; list-style: none; }
|
|
.about-roadmap::before { content: ''; position: absolute; left: 17px; top: 10px; bottom: 18px; width: 1px; background: linear-gradient(180deg, #4d8dff66, #ff2d5544 55%, transparent); }
|
|
.about-roadmap li { display: flex; gap: 18px; padding: 14px 0 20px; }
|
|
.about-step-index { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: #0f0f13; box-shadow: 0 0 0 1px #ffffff1a, 0 0 20px #2f6bff2e; color: #9ecbff; font-size: 12px; font-weight: 700; }
|
|
.about-roadmap b { display: block; margin-bottom: 5px; color: #f2f4f8; font-size: 15px; font-weight: 700; }
|
|
.about-roadmap p { margin: 0; color: #a4a8b3; font-size: 13px; line-height: 1.75; }
|
|
.about-cta { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; overflow: hidden; margin-top: 64px; padding: 40px; border-radius: 26px; background: radial-gradient(120% 160% at 0% 0%, #16294a, #101014 52%, #2a0f18); box-shadow: 0 40px 100px #0007, inset 0 1px 0 #ffffff10; }
|
|
.about-cta::before { content: ''; position: absolute; top: -160px; right: -80px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, #ff2d5533, transparent 65%); pointer-events: none; }
|
|
.about-cta h2 { position: relative; margin: 0 0 8px; color: #fff; font-size: 26px; font-weight: 700; letter-spacing: -.015em; }
|
|
.about-cta p { position: relative; margin: 0; max-width: 560px; color: #b6bac4; font-size: 14px; line-height: 1.75; }
|
|
.about-cta .about-primary { position: relative; }
|
|
|
|
@media (max-width: 860px) { .about-hero { grid-template-columns: 1fr; padding: 40px 32px; } .about-hero-visual { display: none; } .about-hero h1 { font-size: 38px; } }
|
|
|
|
@media (max-width: 900px) { .short-rail { left: calc(100% + 8px); } }
|
|
@media (min-width: 1700px) { .video-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
|
|
@media (max-width: 1180px) { .create-button { width: 40px; height: 40px; padding: 0; border-radius: 50%; justify-content: center; } .create-button span { display: none; } }
|
|
@media (max-width: 1020px) and (min-width: 761px) {
|
|
.topbar { display: flex; column-gap: 12px; }
|
|
.topbar-left { flex: none; }
|
|
.topbar-center { flex: 1; }
|
|
.top-actions { margin-left: 0; }
|
|
}
|
|
@media (max-width: 1180px) and (min-width: 761px) { .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .shorts-row { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
|
|
|
|
@media (max-width: 760px) {
|
|
.topbar { display: flex; align-items: center; gap: 8px; height: var(--topbar); padding: 0 8px; }
|
|
.topbar-left { flex: 1; gap: 4px; }
|
|
.topbar-menu { width: 40px; height: 40px; }
|
|
.brand img { width: 74px; height: 28px; }
|
|
.topbar-center { display: contents; }
|
|
.create-button, .notification-button { display: none; }
|
|
.mobile-search { display: grid; width: 40px; height: 40px; border-radius: 50%; color: var(--text); }
|
|
.top-actions { gap: 6px; margin-left: auto; }
|
|
.language-switcher { display: block; }
|
|
.language-trigger { width: auto; height: 36px; padding: 0 10px; justify-content: center; gap: 0; }
|
|
.language-trigger .language-code { font-size: 12px; }
|
|
.search-form { display: none; }
|
|
.search-form.open { position: absolute; top: var(--topbar); left: 0; right: 0; z-index: 40; display: flex; max-width: none; height: auto; margin: 0; padding: 8px 12px; border-radius: 0; background: var(--bg); border-bottom: 1px solid #222; }
|
|
.search-form.open input { height: 40px; border-radius: 20px 0 0 20px; }
|
|
.search-form.open button { height: 40px; border-radius: 0 20px 20px 0; }
|
|
.content, .content-wide { padding: 0 12px calc(24px + env(safe-area-inset-bottom)); }
|
|
.youtube-category-bar { top: var(--topbar); margin: 0 -12px; padding: 10px 12px; gap: 8px; }
|
|
.youtube-category-chip { padding: 7px 12px; font-size: 13px; }
|
|
.video-grid { width: 100%; min-width: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 10px; }
|
|
.video-grid > .media-card { width: 100%; min-width: 0; }
|
|
.media-meta { gap: 8px; padding-top: 9px; }
|
|
.channel-avatar { width: 28px; height: 28px; font-size: 12px; }
|
|
.media-title { font-size: 14px; }
|
|
.media-meta small { font-size: 12px; }
|
|
.media-more { display: none; }
|
|
.youtube-shorts-shelf { margin: 20px -12px 32px; padding: 16px 12px 22px; }
|
|
.youtube-shelf-heading h2 { font-size: 20px; }
|
|
.shorts-row { display: flex; gap: 10px; overflow-x: auto; margin: 0; padding-bottom: 2px; }
|
|
.shorts-row .media-card { flex: 0 0 150px; min-width: 150px; }
|
|
.shorts-row .media-thumb { aspect-ratio: 9 / 16; }
|
|
.shorts-stage, .shorts-stage-wide { left: 0; bottom: 0; }
|
|
.short-slide { padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: #212121; }
|
|
.short-slide-stage { display: block; width: 100%; padding: 0; }
|
|
.short-column { display: block; height: 100%; }
|
|
.short-player-wrap { position: static; flex: none; height: 100%; }
|
|
.short-player-wrap::after { display: block; }
|
|
.short-slide-player { border-radius: 20px; box-shadow: 0 22px 54px #000a; }
|
|
.short-slide-info { position: absolute; left: 26px; right: 94px; bottom: 30px; width: auto; margin: 0; padding: 0; pointer-events: none; text-shadow: 0 2px 14px #000; }
|
|
.short-channel { gap: 8px; margin-bottom: 8px; }
|
|
.short-avatar { width: 32px; height: 32px; font-size: 13px; }
|
|
.short-channel-name { font-size: 13px; }
|
|
.short-follow { padding: 5px 12px; font-size: 11px; }
|
|
.short-rail { left: auto; right: 18px; bottom: 84px; gap: 12px; }
|
|
.short-rail .rail-icon { width: 42px; height: 42px; }
|
|
.short-rail small { font-size: 10px; }
|
|
.shorts-stage .feed-arrows { display: none; }
|
|
.shorts-toast { bottom: calc(20px + env(safe-area-inset-bottom)); }
|
|
.shorts-skeleton-wrap { width: 100%; height: 100%; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); }
|
|
.shorts-skeleton-screen { border-radius: 14px; }
|
|
.shorts-skeleton-rail { right: 18px; bottom: 112px; gap: 12px; }
|
|
.skeleton-dot { width: 42px; height: 42px; }
|
|
.shorts-skeleton-copy { right: 94px; bottom: 30px; left: 26px; }
|
|
.comments-sheet { top: auto; left: 0; right: 0; bottom: 0; width: auto; height: min(82vh, 640px); border-top: 1px solid #303030; border-left: 0; border-radius: 16px 16px 0 0; }
|
|
.comments-backdrop { top: 0; }
|
|
.upload-backdrop { padding: 12px; }
|
|
.upload-dialog { padding: 18px; }
|
|
.about-page { padding: 4px 0 16px; }
|
|
.about-hero { padding: 32px 22px; border-radius: 22px; }
|
|
.about-section { margin-top: 44px; }
|
|
.about-section::before { top: -20px; font-size: 52px; }
|
|
.about-hero h1 { font-size: 32px; }
|
|
.about-hero p { font-size: 14px; }
|
|
.about-hero-actions { margin-top: 20px; }
|
|
.about-stores { margin-top: 22px; }
|
|
.about-stores-row { gap: 10px; }
|
|
.store-badge { height: 50px; padding: 0 16px 0 13px; gap: 8px; }
|
|
.store-badge-copy b { font-size: 15px; }
|
|
.about-values { margin-top: 20px; }
|
|
.about-section { margin-top: 32px; }
|
|
.about-section > h2 { font-size: 21px; }
|
|
.about-pillars { grid-template-columns: 1fr; gap: 12px; }
|
|
.about-pillar { padding: 20px; }
|
|
.about-cta { flex-direction: column; align-items: flex-start; padding: 24px 20px; }
|
|
.about-cta .about-primary { width: 100%; }
|
|
.short-slide-info h1 { font-size: 16px; }
|
|
.shorts-state { top: 12px; }
|
|
.watch-page { max-width: none; padding: 0; }
|
|
.watch-stage { margin: 0 2px; padding: 16px 10px; border-radius: 18px; }
|
|
.watch-player { height: min(62vh, 520px); border-radius: 16px; }
|
|
.watch-skeleton-player { width: min(100%, 260px); }
|
|
.watch-meta { margin: 16px 2px 8px; font-size: 12px; }
|
|
.watch-title { font-size: 19px; margin-bottom: 14px; }
|
|
.watch-toolbar { gap: 12px; padding: 12px 0; }
|
|
.watch-channel { width: 100%; }
|
|
.watch-actions { width: 100%; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
|
|
.watch-actions::-webkit-scrollbar { display: none; }
|
|
.watch-actions button { flex: none; }
|
|
.watch-description { padding: 14px 16px; font-size: 13px; }
|
|
.watch-side { position: static; margin-top: 24px; padding: 14px; border-radius: 16px; }
|
|
.watch-episode-list { max-height: none; }
|
|
.history-heading h1 { font-size: 20px; }
|
|
.sidebar { display: none; top: var(--topbar); bottom: 0; z-index: 50; width: min(240px, calc(100vw - 56px)); padding: 12px; overflow-y: auto; background: var(--bg); box-shadow: 0 0 24px #000a; }
|
|
.sidebar.open { display: block; }
|
|
.sidebar.closed { display: none; }
|
|
.scrim { position: fixed; inset: 0; z-index: 45; background: #0006; border: 0; }
|
|
}
|
|
|
|
/* 路由懒加载占位 */
|
|
.route-loading { min-height: 60vh; }
|
|
|
|
/* 自定义视频控件 */
|
|
.vp { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; background: #000; outline: none; }
|
|
.vp .video-player { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
|
|
.vp.is-playing:not(.show-controls) { cursor: none; }
|
|
.vp-controls { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; flex-direction: column-reverse; padding: 38px 14px 0; background: linear-gradient(transparent, #000000bd 42%, #000000f2); opacity: 0; transform: translateY(10px); transition: opacity .24s ease, transform .28s cubic-bezier(.22, .61, .36, 1); pointer-events: none; }
|
|
.vp.show-controls .vp-controls { opacity: 1; transform: none; pointer-events: auto; }
|
|
.vp.show-controls .vp-progress { animation: vp-rise .34s cubic-bezier(.22, .61, .36, 1) both; }
|
|
.vp.show-controls .vp-row { animation: vp-rise .38s cubic-bezier(.22, .61, .36, 1) .05s both; }
|
|
@keyframes vp-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
|
|
.vp-progress { position: relative; display: flex; align-items: flex-end; height: 14px; cursor: pointer; touch-action: none; }
|
|
.vp-progress-track { position: relative; width: 100%; height: 4px; overflow: hidden; border-radius: 999px; background: #ffffff24; box-shadow: inset 0 1px 2px #0006; transition: height .18s ease; }
|
|
.vp-progress:hover .vp-progress-track { height: 6px; }
|
|
.vp-buffered { position: absolute; top: 0; bottom: 0; left: 0; background: #ffffff38; transition: width .3s ease; }
|
|
.vp-played { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 999px; background: linear-gradient(90deg, #ffffff, #ffd9e2); box-shadow: 0 0 12px #ffffff66; transition: width .12s linear; }
|
|
.vp-thumb { position: absolute; bottom: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px #ffffff1f, 0 0 16px #ffffff73; transform: translate(-50%, 50%) scale(0); transition: transform .2s cubic-bezier(.34, 1.56, .64, 1), box-shadow .2s ease; pointer-events: none; }
|
|
.vp-progress:hover .vp-thumb, .vp-progress:active .vp-thumb { transform: translate(-50%, 50%) scale(1); }
|
|
.vp-progress-tip { position: absolute; top: -30px; z-index: 5; padding: 3px 8px; border-radius: 7px; background: #0d0d0ff2; color: #fff; font-size: 11px; font-variant-numeric: tabular-nums; transform: translateX(-50%); pointer-events: none; box-shadow: 0 8px 20px #000a; backdrop-filter: blur(8px); animation: vp-tip-in .16s ease both; }
|
|
@keyframes vp-tip-in { from { opacity: 0; transform: translate(-50%, 4px); } to { opacity: 1; transform: translate(-50%, 0); } }
|
|
.vp-row { display: flex; align-items: center; gap: 8px; margin-top: 0; padding-bottom: 4px; color: #fff; }
|
|
.vp-btn { position: relative; display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: #fff; cursor: pointer; transition: background .2s ease, box-shadow .2s ease, transform .16s cubic-bezier(.34, 1.56, .64, 1); }
|
|
.vp-btn svg { transition: transform .18s ease; }
|
|
.vp-btn:hover { background: #ffffff22; box-shadow: inset 0 0 0 1px #ffffff1a, 0 4px 14px #0006; }
|
|
.vp-btn:hover svg { transform: scale(1.08); }
|
|
.vp-btn:active { transform: scale(.9); }
|
|
.vp-time { color: #d6d6d6; font-size: 12px; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
|
|
.vp-spacer { flex: 1; }
|
|
.vp-volume { position: relative; display: flex; align-items: center; }
|
|
.vp-volume-slider { position: absolute; left: 50%; bottom: 44px; z-index: 5; display: flex; align-items: center; width: 104px; height: 34px; padding: 0 12px; border-radius: 999px; background: #0d0d0ff2; box-shadow: 0 16px 36px #000c, inset 0 1px 0 #ffffff14; opacity: 0; visibility: hidden; transform: translate(-50%, 8px) scale(.94); transition: opacity .18s ease, transform .24s cubic-bezier(.34, 1.56, .64, 1), visibility .18s; backdrop-filter: blur(12px); }
|
|
.vp-volume-slider.open { opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); }
|
|
.vp-volume-slider input { width: 100%; height: 3px; border-radius: 999px; background: #ffffff3d; outline: none; cursor: pointer; -webkit-appearance: none; appearance: none; }
|
|
.vp-volume-slider input::-webkit-slider-thumb { width: 10px; height: 10px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px #ffffff26; -webkit-appearance: none; appearance: none; }
|
|
.vp-spinner { position: absolute; inset: 0; z-index: 2; width: 36px; height: 36px; margin: auto; border: 3px solid #ffffff26; border-top-color: #fff; border-radius: 50%; filter: drop-shadow(0 0 10px #ffffff40); animation: vp-spin .8s linear infinite; }
|
|
@keyframes vp-spin { to { transform: rotate(360deg); } }
|
|
.vp-big-play { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; width: 64px; height: 64px; margin: auto; border: 0; border-radius: 50%; background: #000000a6; color: #fff; backdrop-filter: blur(8px); cursor: pointer; transition: transform .22s cubic-bezier(.34, 1.56, .64, 1), background .2s ease, box-shadow .2s ease; animation: vp-pop .3s cubic-bezier(.34, 1.56, .64, 1) both; }
|
|
.vp-big-play:hover { transform: scale(1.08); background: #000000cc; box-shadow: 0 0 0 8px #ffffff14, 0 16px 40px #000a; }
|
|
.vp-big-play:active { transform: scale(.96); }
|
|
@keyframes vp-pop { from { opacity: 0; transform: scale(.82); } to { opacity: 1; transform: scale(1); } }
|
|
.vp-sound-hint { position: absolute; top: 12px; left: 50%; z-index: 5; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 0; border-radius: 999px; background: #000000b8; color: #fff; font-size: 12px; cursor: pointer; transform: translateX(-50%); backdrop-filter: blur(8px); box-shadow: 0 10px 26px #0008; }
|
|
.vp-sound-hint:hover { background: #000000d6; }
|
|
.vp-error { position: absolute; left: 50%; bottom: 54px; z-index: 4; max-width: 82%; padding: 10px 16px; border-radius: 999px; background: #241919ee; color: #ffd4cf; font-size: 12px; cursor: pointer; transform: translateX(-50%); backdrop-filter: blur(8px); }
|
|
@media (max-width: 760px) {
|
|
.vp-controls { padding: 30px 8px 0; }
|
|
.vp-row { gap: 2px; padding: 0 2px 2px; }
|
|
.vp-row .vp-time, .vp-volume { display: none; }
|
|
.vp-progress { height: 12px; }
|
|
.vp-progress-track, .vp-progress:hover .vp-progress-track { height: 3px; border-radius: 0; }
|
|
.vp-thumb { display: none; }
|
|
.vp-btn { width: 36px; height: 36px; }
|
|
.vp-big-play { width: 56px; height: 56px; }
|
|
}
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.vp-controls, .vp-btn, .vp-btn svg, .vp-thumb, .vp-played, .vp-buffered, .vp-big-play, .vp-volume-slider { transition: none; }
|
|
.vp.show-controls .vp-progress, .vp.show-controls .vp-row, .vp-big-play, .vp-progress-tip { animation: none; }
|
|
.about-phone, .about-float-a, .about-float-b, .about-float-c, .about-kicker::before { animation: none; }
|
|
}
|
|
|
|
/* 点赞 / 收藏反馈特效 */
|
|
@keyframes ymb-like-pop {
|
|
0% { transform: scale(1); }
|
|
30% { transform: scale(1.34) rotate(-7deg); }
|
|
62% { transform: scale(.92) rotate(3deg); }
|
|
100% { transform: scale(1) rotate(0); }
|
|
}
|
|
@keyframes ymb-like-ring {
|
|
0% { opacity: .5; transform: scale(.96); }
|
|
100% { opacity: 0; transform: scale(1.32); }
|
|
}
|
|
@keyframes ymb-like-count {
|
|
0% { transform: translateY(0); }
|
|
35% { transform: translateY(-5px); }
|
|
100% { transform: translateY(0); }
|
|
}
|
|
.watch-actions button, .short-rail button { position: relative; }
|
|
.watch-actions button.active svg,
|
|
.short-rail button.active .rail-icon svg { animation: ymb-like-pop .46s cubic-bezier(.34, 1.56, .64, 1); }
|
|
.watch-actions button.active > span,
|
|
.short-rail button.active small { display: inline-block; animation: ymb-like-count .46s ease; }
|
|
.watch-actions button.active::after { content: ''; position: absolute; inset: 0; border-radius: inherit; border: 1px solid #fff; pointer-events: none; animation: ymb-like-ring .5s ease-out forwards; }
|
|
.short-rail .rail-icon { position: relative; }
|
|
.short-rail button.active .rail-icon::after { content: ''; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid #fff; pointer-events: none; animation: ymb-like-ring .5s ease-out forwards; }
|
|
|
|
/* 进入播放页:从点击位置放大封面(高斯模糊)铺满,再淡出 */
|
|
.hero-transition { position: fixed; z-index: 1200; overflow: hidden; border-radius: 12px; pointer-events: none; transform-origin: top left; background: #09090b; box-shadow: 0 30px 80px #000a; animation: none; }
|
|
.hero-transition img { display: block; width: 100%; height: 100%; object-fit: cover; filter: blur(18px); transform: scale(1.14); }
|
|
.hero-transition::after { content: ''; position: absolute; inset: 0; background: radial-gradient(110% 110% at 50% 42%, #00000000 28%, #09090bcc 100%); }
|
|
|
|
/* 进入播放页:播放器轻微放大淡入 */
|
|
@keyframes ymb-player-in {
|
|
from { opacity: 0; transform: scale(.955); }
|
|
to { opacity: 1; transform: none; }
|
|
}
|
|
.watch-stage { animation: ymb-player-in .46s cubic-bezier(.2, .7, .3, 1) both; }
|
|
@media (prefers-reduced-motion: reduce) { .watch-stage { animation: none; } }
|
|
|
|
/* 页面动效:仅使用 transform / opacity,走合成层,不影响布局与滚动性能 */
|
|
@keyframes ymb-pop-in {
|
|
from { opacity: 0; transform: translateY(-4px) scale(.96); }
|
|
to { opacity: 1; transform: none; }
|
|
}
|
|
@keyframes ymb-page-in {
|
|
from { opacity: 0; transform: translateY(8px); }
|
|
to { opacity: 1; transform: none; }
|
|
}
|
|
@keyframes ymb-card-in {
|
|
from { opacity: 0; transform: translateY(14px) scale(.992); }
|
|
to { opacity: 1; transform: none; }
|
|
}
|
|
@keyframes ymb-shelf-in {
|
|
from { opacity: 0; transform: translateY(20px); }
|
|
to { opacity: 1; transform: none; }
|
|
}
|
|
.content > * { animation: ymb-page-in .3s cubic-bezier(.2, .7, .3, 1) both; }
|
|
.content > .hero-transition { animation: none; }
|
|
.video-grid .media-card,
|
|
.shorts-row .media-card { animation: ymb-card-in .34s cubic-bezier(.2, .7, .3, 1) both; }
|
|
.video-grid .media-card:nth-child(1) { animation-delay: .02s; }
|
|
.video-grid .media-card:nth-child(2) { animation-delay: .05s; }
|
|
.video-grid .media-card:nth-child(3) { animation-delay: .08s; }
|
|
.video-grid .media-card:nth-child(4) { animation-delay: .11s; }
|
|
.video-grid .media-card:nth-child(5) { animation-delay: .14s; }
|
|
.video-grid .media-card:nth-child(6) { animation-delay: .17s; }
|
|
.video-grid .media-card:nth-child(7) { animation-delay: .2s; }
|
|
.video-grid .media-card:nth-child(8) { animation-delay: .23s; }
|
|
.shorts-row .media-card:nth-child(1) { animation-delay: .04s; }
|
|
.shorts-row .media-card:nth-child(2) { animation-delay: .08s; }
|
|
.shorts-row .media-card:nth-child(3) { animation-delay: .12s; }
|
|
.shorts-row .media-card:nth-child(4) { animation-delay: .16s; }
|
|
.shorts-row .media-card:nth-child(5) { animation-delay: .2s; }
|
|
.media-thumb { position: relative; overflow: hidden; transition: box-shadow .25s ease; }
|
|
.media-thumb::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 18px 42px #0008; opacity: 0; transition: opacity .25s ease; pointer-events: none; }
|
|
.media-card:hover .media-thumb::after { opacity: 1; }
|
|
.media-thumb img { transition: transform .45s cubic-bezier(.2, .7, .3, 1); }
|
|
.media-card:hover .media-thumb img { transform: scale(1.045); }
|
|
.media-thumb .thumb-play { transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), opacity .3s ease; }
|
|
.media-card:hover .thumb-play { transform: scale(1.08); }
|
|
.youtube-category-chip { transition: background .18s ease, color .18s ease, transform .16s ease; }
|
|
.youtube-category-chip:active { transform: scale(.96); }
|
|
@media (hover: none) {
|
|
.media-card:hover .media-thumb img { transform: none; }
|
|
}
|
|
@supports (animation-timeline: view()) {
|
|
.youtube-home-feed > *,
|
|
.youtube-shorts-shelf {
|
|
animation: ymb-shelf-in linear both;
|
|
animation-timeline: view();
|
|
animation-range: entry 0% entry 55%;
|
|
}
|
|
}
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.content > *, .video-grid .media-card, .shorts-row .media-card,
|
|
.youtube-home-feed > *, .youtube-shorts-shelf { animation: none; }
|
|
.media-thumb img, .media-thumb::after, .thumb-play, .sidebar, .content, .create-menu, .language-menu { transition: none; animation: none; }
|
|
}
|