video / src /mv /styles.css
Ethscriptions's picture
v8:远光照亮整块路面并闪白;喷射气体改为自然粒子气体;新增动感歌词(LRC / 打轴工具,随导出)
71ce0f9 verified
Raw History Blame Contribute Delete
16.3 kB
.mv-root {
--bg: #07080c;
--panel: #0e1118;
--panel2: #141823;
--line: rgba(255, 255, 255, 0.08);
--fg: #ece6da;
--muted: #8b8f9c;
--red: #ff2d55;
--cyan: #3de0ff;
--amber: #ffb35c;
min-height: 100vh;
background:
radial-gradient(1200px 600px at 80% -10%, rgba(255, 45, 85, 0.12), transparent 60%),
radial-gradient(900px 500px at -10% 20%, rgba(61, 224, 255, 0.07), transparent 60%),
var(--bg);
color: var(--fg);
font-family: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', system-ui, sans-serif;
padding: 0 0 48px;
-webkit-font-smoothing: antialiased;
}
.mv-root * {
box-sizing: border-box;
}
.mv-root button {
font: inherit;
cursor: pointer;
}
.mv-root button:disabled {
cursor: not-allowed;
opacity: 0.5;
}
/* header */
.mv-header {
position: sticky;
top: 0;
z-index: 20;
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
padding: 14px clamp(14px, 4vw, 40px);
background: rgba(7, 8, 12, 0.82);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border-bottom: 1px solid var(--line);
}
.mv-brand {
display: flex;
align-items: center;
gap: 12px;
min-width: 0;
}
.mv-logo {
font-family: 'MV Neon', 'ZCOOL QingKe HuangYou', sans-serif;
font-size: 34px;
line-height: 1;
color: #ff6b86;
text-shadow: 0 0 8px #ff2d55, 0 0 22px rgba(255, 45, 85, 0.7);
}
.mv-brand-en {
font-family: 'MV Latin', Impact, sans-serif;
letter-spacing: 0.18em;
font-size: 14px;
color: var(--cyan);
}
.mv-brand-sub {
font-size: 12px;
color: var(--muted);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.mv-nav {
display: flex;
gap: 4px;
}
.mv-nav a {
color: var(--fg);
text-decoration: none;
font-size: 14px;
padding: 6px 12px;
border-radius: 999px;
border: 1px solid transparent;
}
.mv-nav a:hover {
border-color: var(--line);
background: rgba(255, 255, 255, 0.04);
}
/* sections */
.mv-section {
max-width: 1200px;
margin: 0 auto;
padding: 28px clamp(12px, 4vw, 40px) 8px;
scroll-margin-top: 70px;
}
.mv-section h2 {
display: flex;
align-items: baseline;
flex-wrap: wrap;
gap: 10px;
margin: 0 0 14px;
font-family: 'MV Black', 'Noto Sans SC', sans-serif;
font-size: 24px;
letter-spacing: 0.02em;
}
.mv-section h2 small {
font-family: inherit;
font-size: 13px;
font-weight: 400;
color: var(--muted);
}
.mv-h-idx {
font-family: 'MV Latin', Impact, sans-serif;
color: var(--red);
font-size: 20px;
}
.mv-card {
background: linear-gradient(180deg, var(--panel), #0b0d13);
border: 1px solid var(--line);
border-radius: 14px;
padding: clamp(14px, 3vw, 24px);
}
/* segmented */
.mv-seg {
display: inline-flex;
flex-wrap: wrap;
gap: 4px;
padding: 4px;
background: rgba(255, 255, 255, 0.04);
border: 1px solid var(--line);
border-radius: 10px;
}
.mv-seg button {
border: 0;
background: transparent;
color: var(--muted);
padding: 7px 14px;
border-radius: 7px;
font-size: 14px;
}
.mv-seg button.on {
background: var(--red);
color: #fff;
box-shadow: 0 0 18px rgba(255, 45, 85, 0.45);
}
/* player */
.mv-player-head {
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
gap: 10px;
margin-bottom: 14px;
}
.mv-player-head h2 {
margin: 0;
}
.mv-stage-wrap {
background: #000;
border-radius: 14px;
overflow: hidden;
border: 1px solid var(--line);
box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 45, 85, 0.08);
}
.mv-stage-wrap.portrait {
max-width: min(100%, calc((100vh - 200px) * 9 / 16 + 2px));
margin: 0 auto;
}
.mv-stage {
position: relative;
width: 100%;
aspect-ratio: 16 / 9;
background: #000;
cursor: pointer;
user-select: none;
-webkit-tap-highlight-color: transparent;
}
.mv-stage.portrait {
aspect-ratio: 9 / 16;
}
.mv-canvas {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
display: block;
}
.mv-bigplay {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
display: flex;
flex-direction: column;
align-items: center;
gap: 10px;
border: 0;
background: none;
color: #fff;
pointer-events: none;
}
.mv-bigplay svg {
width: 76px;
height: 76px;
padding: 18px;
border-radius: 50%;
background: rgba(255, 45, 85, 0.92);
box-shadow: 0 0 40px rgba(255, 45, 85, 0.7);
}
.mv-bigplay span {
font-size: 14px;
padding: 6px 12px;
border-radius: 999px;
background: rgba(0, 0, 0, 0.55);
}
.mv-scene-tag {
position: absolute;
left: 12px;
top: 12px;
font-size: 12px;
padding: 4px 10px;
background: rgba(0, 0, 0, 0.55);
border-left: 3px solid;
border-radius: 4px;
color: #fff;
pointer-events: none;
opacity: 0.85;
}
.mv-controls {
display: flex;
align-items: center;
gap: 10px;
padding: 10px 12px;
background: #0a0b10;
border-top: 1px solid var(--line);
}
.mv-ctrl {
border: 0;
background: rgba(255, 255, 255, 0.06);
color: #fff;
width: 38px;
height: 38px;
border-radius: 10px;
display: grid;
place-items: center;
flex: none;
}
.mv-time {
font-variant-numeric: tabular-nums;
font-size: 13px;
color: var(--muted);
flex: none;
}
.mv-fps {
font-size: 11px;
color: var(--muted);
width: 44px;
text-align: right;
flex: none;
}
.mv-track {
position: relative;
flex: 1;
height: 26px;
min-width: 60px;
}
.mv-track-segs {
position: absolute;
left: 0;
right: 0;
top: 10px;
height: 6px;
display: flex;
gap: 2px;
opacity: 0.35;
border-radius: 3px;
overflow: hidden;
}
.mv-track-seg {
height: 100%;
}
.mv-track-fill {
position: absolute;
left: 0;
top: 10px;
height: 6px;
background: linear-gradient(90deg, var(--red), #ff7a8f);
border-radius: 3px;
box-shadow: 0 0 10px rgba(255, 45, 85, 0.7);
pointer-events: none;
}
.mv-track input {
position: absolute;
inset: 0;
width: 100%;
margin: 0;
opacity: 0;
cursor: pointer;
}
.mv-stage-wrap.theater {
position: fixed;
inset: 0;
z-index: 100;
border-radius: 0;
max-width: none;
display: flex;
flex-direction: column;
justify-content: center;
}
.mv-stage-wrap.theater .mv-stage {
max-height: calc(100vh - 60px);
width: auto;
margin: 0 auto;
height: 100%;
}
.mv-stage-wrap:fullscreen {
display: flex;
flex-direction: column;
justify-content: center;
border-radius: 0;
max-width: none;
}
.mv-stage-wrap:fullscreen .mv-stage {
max-height: calc(100vh - 60px);
height: 100%;
width: auto;
margin: 0 auto;
}
.mv-chips {
display: flex;
gap: 8px;
overflow-x: auto;
padding: 14px 0 4px;
scrollbar-width: thin;
}
.mv-chip {
flex: none;
display: flex;
align-items: center;
gap: 6px;
background: var(--panel);
border: 1px solid var(--line);
color: var(--fg);
padding: 8px 12px;
border-radius: 10px;
font-size: 13px;
}
.mv-chip i {
width: 8px;
height: 8px;
border-radius: 50%;
}
.mv-chip b {
font-family: 'MV Latin', Impact, sans-serif;
font-weight: 400;
color: var(--muted);
}
.mv-chip em {
font-style: normal;
color: var(--muted);
font-size: 11px;
}
.mv-chip.on {
border-color: var(--red);
background: rgba(255, 45, 85, 0.1);
}
/* export */
.mv-export {
display: grid;
gap: 16px;
}
.mv-opt {
display: flex;
align-items: center;
gap: 14px;
flex-wrap: wrap;
}
.mv-opt label {
width: 70px;
color: var(--muted);
font-size: 14px;
}
.mv-export-meta {
font-size: 13px;
color: var(--muted);
}
.mv-primary {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
border: 0;
border-radius: 12px;
padding: 14px 22px;
font-size: 16px;
font-weight: 700;
color: #fff;
text-decoration: none;
background: linear-gradient(135deg, #ff2d55, #c4142f);
box-shadow: 0 10px 30px rgba(255, 45, 85, 0.35);
}
.mv-primary.sm {
padding: 9px 14px;
font-size: 14px;
border-radius: 10px;
}
.mv-primary.alt {
background: linear-gradient(135deg, #1fb5a8, #127a8a);
box-shadow: 0 10px 30px rgba(31, 181, 168, 0.25);
}
.mv-ghost {
border: 1px solid var(--line);
background: rgba(255, 255, 255, 0.04);
color: var(--fg);
border-radius: 10px;
padding: 9px 14px;
font-size: 14px;
}
.mv-progress {
display: grid;
gap: 10px;
}
.mv-progress-bar {
height: 12px;
border-radius: 6px;
background: rgba(255, 255, 255, 0.06);
overflow: hidden;
}
.mv-progress-bar div {
height: 100%;
background: linear-gradient(90deg, var(--red), var(--amber));
box-shadow: 0 0 16px rgba(255, 45, 85, 0.6);
transition: width 0.2s;
}
.mv-progress-info {
display: flex;
justify-content: space-between;
gap: 10px;
font-size: 13px;
color: var(--muted);
font-variant-numeric: tabular-nums;
}
.mv-progress .mv-ghost {
justify-self: start;
}
.mv-hint {
color: var(--muted);
font-size: 12px;
margin: 6px 0;
}
.mv-warn {
color: #ffb3c0;
background: rgba(255, 45, 85, 0.08);
border: 1px solid rgba(255, 45, 85, 0.25);
padding: 10px 12px;
border-radius: 10px;
font-size: 13px;
margin-top: 8px;
}
.mv-result {
display: flex;
gap: 16px;
align-items: flex-start;
flex-wrap: wrap;
}
.mv-result video {
width: min(100%, 480px);
border-radius: 10px;
background: #000;
}
.mv-result video.portrait {
width: min(100%, 260px);
}
/* copy */
.mv-tabs {
display: flex;
gap: 6px;
flex-wrap: wrap;
margin-bottom: 12px;
}
.mv-tabs button {
border: 1px solid var(--line);
background: var(--panel);
color: var(--fg);
padding: 9px 16px;
border-radius: 10px;
font-size: 15px;
}
.mv-tabs button.on {
border-color: var(--pc);
box-shadow: inset 0 -3px 0 var(--pc);
background: var(--panel2);
}
.mv-copy {
display: grid;
gap: 18px;
border-top: 3px solid var(--pc);
}
.mv-copy-tip {
font-size: 13px;
color: var(--pc);
}
.mv-field {
display: grid;
gap: 8px;
}
.mv-field-head {
display: flex;
align-items: center;
gap: 10px;
}
.mv-field-head label {
font-weight: 700;
font-size: 15px;
}
.mv-field-head span {
font-size: 12px;
padding: 2px 8px;
border-radius: 999px;
font-variant-numeric: tabular-nums;
}
.mv-field-head span.good {
background: rgba(31, 181, 168, 0.15);
color: #6fe3d6;
}
.mv-field-head span.bad {
background: rgba(255, 45, 85, 0.18);
color: #ff8ea3;
}
.mv-copybtn {
margin-left: auto;
border: 1px solid var(--line);
background: rgba(255, 255, 255, 0.05);
color: var(--fg);
border-radius: 8px;
padding: 6px 12px;
font-size: 13px;
}
.mv-copybtn:hover {
border-color: var(--pc);
}
.mv-input {
width: 100%;
background: #07090e;
border: 1px solid var(--line);
border-radius: 10px;
color: var(--fg);
padding: 11px 12px;
font: inherit;
font-size: 15px;
line-height: 1.6;
resize: vertical;
}
.mv-input:focus {
outline: none;
border-color: var(--pc);
}
.mv-alts {
display: flex;
flex-wrap: wrap;
gap: 6px;
}
.mv-alts button {
border: 1px dashed var(--line);
background: transparent;
color: var(--muted);
padding: 6px 10px;
border-radius: 8px;
font-size: 13px;
text-align: left;
}
.mv-alts button.on {
border-style: solid;
border-color: var(--pc);
color: var(--fg);
}
.mv-alts em {
font-style: normal;
opacity: 0.6;
font-size: 11px;
}
.mv-tags {
display: flex;
flex-wrap: wrap;
gap: 6px;
align-items: center;
}
.mv-tags > button {
border: 1px solid var(--line);
background: transparent;
color: var(--muted);
padding: 5px 10px;
border-radius: 999px;
font-size: 13px;
}
.mv-tags > button.on {
background: color-mix(in srgb, var(--pc) 22%, transparent);
border-color: var(--pc);
color: #fff;
}
.mv-addtag {
display: inline-flex;
border: 1px solid var(--line);
border-radius: 999px;
overflow: hidden;
}
.mv-addtag input {
background: transparent;
border: 0;
color: var(--fg);
padding: 5px 10px;
width: 96px;
font: inherit;
font-size: 13px;
}
.mv-addtag input:focus {
outline: none;
}
.mv-addtag button {
border: 0;
background: rgba(255, 255, 255, 0.06);
color: var(--fg);
padding: 0 10px;
}
.mv-tagtext {
margin: 0;
white-space: pre-wrap;
word-break: break-all;
font-family: inherit;
font-size: 13px;
color: var(--muted);
background: #07090e;
border-radius: 8px;
padding: 8px 10px;
}
/* covers */
.mv-cover-bar {
display: flex;
justify-content: space-between;
gap: 10px;
flex-wrap: wrap;
margin-bottom: 14px;
}
.mv-cover-actions {
display: flex;
gap: 6px;
flex-wrap: wrap;
}
.mv-cover-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
gap: 14px;
align-items: start;
}
.mv-cover {
position: relative;
border-radius: 12px;
overflow: hidden;
border: 2px solid transparent;
background: var(--panel);
cursor: pointer;
transition: transform 0.15s, border-color 0.15s;
}
.mv-cover:hover {
transform: translateY(-2px);
}
.mv-cover.on {
border-color: var(--red);
box-shadow: 0 0 24px rgba(255, 45, 85, 0.35);
}
.mv-cover img {
display: block;
width: 100%;
background: #000;
}
.mv-cover.r169 img {
aspect-ratio: 16 / 9;
}
.mv-cover.r43 img {
aspect-ratio: 4 / 3;
}
.mv-cover.r34 img {
aspect-ratio: 3 / 4;
}
.mv-cover-check {
position: absolute;
top: 8px;
right: 8px;
width: 26px;
height: 26px;
border-radius: 50%;
border: 2px solid #fff;
background: rgba(0, 0, 0, 0.4);
display: grid;
place-items: center;
font-weight: 700;
color: #fff;
}
.mv-cover.on .mv-cover-check {
background: var(--red);
border-color: var(--red);
}
.mv-cover-meta {
display: flex;
align-items: center;
gap: 8px;
padding: 8px 10px;
font-size: 13px;
}
.mv-cover-meta span {
color: var(--muted);
font-size: 12px;
}
.mv-cover-meta button {
margin-left: auto;
border: 1px solid var(--line);
background: transparent;
color: var(--fg);
border-radius: 6px;
padding: 3px 8px;
font-size: 12px;
}
.mv-lightbox {
position: fixed;
inset: 0;
z-index: 200;
background: rgba(0, 0, 0, 0.88);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 14px;
padding: 20px;
}
.mv-lightbox img {
max-width: 100%;
max-height: calc(100vh - 110px);
border-radius: 8px;
}
.mv-lightbox-bar {
display: flex;
align-items: center;
gap: 10px;
flex-wrap: wrap;
justify-content: center;
font-size: 14px;
}
.mv-footer {
max-width: 1200px;
margin: 40px auto 0;
padding: 0 clamp(12px, 4vw, 40px);
color: var(--muted);
font-size: 12px;
line-height: 1.8;
text-align: center;
}
.mv-toast {
position: fixed;
left: 50%;
bottom: 28px;
transform: translateX(-50%);
z-index: 300;
background: rgba(20, 22, 30, 0.95);
border: 1px solid rgba(255, 45, 85, 0.4);
color: #fff;
padding: 10px 18px;
border-radius: 999px;
font-size: 14px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
@media (max-width: 720px) {
.mv-header {
padding: 10px 12px;
}
.mv-logo {
font-size: 28px;
}
.mv-brand-sub {
display: none;
}
.mv-nav a {
padding: 6px 8px;
font-size: 13px;
}
.mv-section h2 {
font-size: 20px;
}
.mv-stage-wrap.portrait {
max-width: min(100%, calc((100vh - 170px) * 9 / 16 + 2px));
}
.mv-fps {
display: none;
}
.mv-opt label {
width: 100%;
}
.mv-cover-grid {
grid-template-columns: repeat(2, 1fr);
gap: 10px;
}
.mv-primary {
width: 100%;
}
.mv-cover-actions .mv-primary {
width: auto;
}
}
.mv-badge {
font-size: 12px;
color: var(--muted);
border: 1px solid var(--line);
border-radius: 999px;
padding: 4px 10px;
}
.mv-lyrics {
display: grid;
gap: 12px;
}
.mv-lyrics-bar {
display: flex;
flex-wrap: wrap;
gap: 8px;
align-items: center;
}
.mv-lyrics-offset {
display: inline-flex;
align-items: center;
gap: 6px;
font-size: 13px;
color: var(--muted);
}
.mv-lyrics-offset b {
color: var(--fg);
font-variant-numeric: tabular-nums;
min-width: 44px;
text-align: center;
}
.mv-tap {
display: grid;
gap: 12px;
text-align: center;
padding: 10px 0;
}
.mv-tap-prog {
color: var(--muted);
font-size: 13px;
}
.mv-tap-now {
font-family: 'MV Black', 'PingFang SC', sans-serif;
font-size: clamp(22px, 4vw, 40px);
color: #fff;
text-shadow: 0 0 18px rgba(255, 45, 85, 0.7);
}
.mv-tap-next {
color: var(--muted);
font-size: 16px;
}
.mv-tap .mv-lyrics-bar {
justify-content: center;
}