Files
live/frontend/src/viewer/pages/viewer.css
T

403 lines
6.9 KiB
CSS

.viewer-shell {
min-height: 100vh;
background: #f4f0e8;
color: #211d18;
font-family: "Noto Serif SC", "Songti SC", SimSun, Georgia, serif;
}
.viewer-hero {
max-width: 1180px;
margin: 0 auto;
padding: 88px 40px 72px;
border-bottom: 1px solid #d7cec0;
}
.viewer-eyebrow {
margin-bottom: 18px;
color: #806d56;
font-size: 11px;
font-weight: 600;
letter-spacing: 0.22em;
}
.viewer-logo {
display: block;
max-width: 180px;
height: 36px;
margin-bottom: 24px;
object-fit: contain;
object-position: left center;
}
.viewer-title {
max-width: 850px;
margin: 0;
color: #211d18;
font-size: clamp(42px, 7vw, 76px);
font-weight: 600;
line-height: 1.08;
letter-spacing: -0.035em;
}
.viewer-tagline {
max-width: 680px;
margin: 22px 0 0;
color: #685f54;
font-size: clamp(16px, 2vw, 20px);
line-height: 1.75;
}
.viewer-main {
max-width: 1180px;
margin: 0 auto;
padding: 52px 40px 96px;
}
.viewer-section-heading {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 24px;
margin-bottom: 32px;
}
.viewer-section-heading h2 {
margin: 0;
font-size: 25px;
font-weight: 600;
letter-spacing: -0.02em;
}
.viewer-section-heading span {
color: #84796c;
font-size: 13px;
}
.stream-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 32px 26px;
}
.stream-card {
display: block;
width: 100%;
overflow: hidden;
border: 1px solid #dcd3c7;
border-radius: 8px;
background: #fffdf9;
color: inherit;
font: inherit;
text-align: left;
}
button.stream-card {
padding: 0;
cursor: pointer;
transition: border-color 140ms ease, transform 140ms ease;
}
button.stream-card:hover {
border-color: #a99882;
transform: translateY(-2px);
}
button.stream-card:active {
transform: translateY(0);
}
button.stream-card:focus-visible {
outline: 2px solid #765f45;
outline-offset: 3px;
}
.stream-cover {
position: relative;
display: flex;
aspect-ratio: 16 / 9;
align-items: center;
justify-content: center;
background-color: #29251f;
background-position: center;
background-size: cover;
}
.stream-status {
position: absolute;
top: 14px;
left: 14px;
display: inline-flex;
align-items: center;
min-height: 26px;
padding: 4px 10px;
border-radius: 3px;
font-family: system-ui, sans-serif;
font-size: 11px;
font-weight: 650;
letter-spacing: 0.06em;
}
.stream-status.live {
background: #8f302b;
color: #fff;
}
.stream-status.pending {
background: #27231e;
color: #f8f3ea;
}
.stream-status.ended {
top: auto;
bottom: 14px;
background: rgba(30, 27, 23, 0.82);
color: #e7dfd3;
}
.live-dot {
width: 6px;
height: 6px;
margin-right: 7px;
border-radius: 50%;
background: currentColor;
}
.stream-copy {
min-height: 112px;
padding: 20px 22px 22px;
}
.stream-copy h3 {
overflow: hidden;
margin: 0 0 8px;
font-size: 18px;
font-weight: 600;
line-height: 1.45;
text-overflow: ellipsis;
white-space: nowrap;
}
.stream-copy p {
overflow: hidden;
margin: 0;
color: #766d62;
font-size: 14px;
line-height: 1.6;
text-overflow: ellipsis;
white-space: nowrap;
}
.stream-skeleton {
pointer-events: none;
}
.viewer-footer {
padding: 26px 40px;
border-top: 1px solid #d7cec0;
color: #84796c;
font-size: 12px;
text-align: center;
}
.watch-shell {
min-height: 100vh;
display: flex;
flex-direction: column;
background: #171512;
color: #eee7dc;
font-family: "Noto Serif SC", "Songti SC", SimSun, Georgia, serif;
}
.watch-header {
min-height: 64px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 24px;
padding: 10px 28px;
border-bottom: 1px solid #342f29;
background: #1d1a16;
}
.watch-heading,
.watch-options {
display: flex;
align-items: center;
gap: 16px;
}
.watch-divider {
width: 1px;
height: 18px;
background: rgba(235, 229, 219, 0.1);
}
.watch-title {
color: #ebe5db;
font-size: 14px;
font-weight: 500;
}
.watch-quality { width: 100px; }
.watch-line { width: 150px; }
.watch-stage {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
padding: 36px;
}
.watch-content {
width: 100%;
max-width: 1280px;
}
.watch-frame {
position: relative;
width: 100%;
max-width: 1280px;
max-height: calc(100vh - 136px);
overflow: hidden;
aspect-ratio: 16 / 9;
border: 1px solid #3d3730;
border-radius: 8px;
background: #080706;
}
.watch-video {
width: 100%;
height: 100%;
display: block;
object-fit: contain;
}
.watch-waiting {
position: absolute;
inset: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 16px;
background: rgba(10, 10, 8, 0.92);
}
.watch-waiting .ant-typography { color: #949088; font-size: 17px; }
.watch-details {
margin-top: 24px;
padding: 24px;
border: 1px solid #3d3730;
border-radius: 8px;
background: #1d1a16;
}
.watch-details p { margin: 0 0 20px; color: #b7aea2; line-height: 1.7; }
.watch-details h2 { margin: 0 0 12px; font-size: 16px; }
.chapter-list { display: grid; gap: 8px; }
.chapter-list button {
display: flex;
justify-content: space-between;
width: 100%;
padding: 12px 14px;
border: 1px solid #3d3730;
border-radius: 6px;
background: #24201b;
color: #eee7dc;
cursor: pointer;
text-align: left;
}
.chapter-list button:hover { border-color: #806d56; background: #2b261f; }
.chapter-list time { color: #949088; font-variant-numeric: tabular-nums; }
@media (max-width: 720px) {
.watch-header {
align-items: flex-start;
flex-direction: column;
padding: 14px 16px;
}
.watch-heading,
.watch-options {
width: 100%;
flex-wrap: wrap;
gap: 10px;
}
.watch-title {
min-width: 0;
flex: 1;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.watch-options .ant-tag,
.watch-options .ant-typography { display: none; }
.watch-quality,
.watch-line { flex: 1; width: auto; min-width: 120px; }
.watch-stage {
align-items: flex-start;
padding: 20px 0;
}
.watch-frame {
border-right: 0;
border-left: 0;
border-radius: 0;
}
.watch-details {
margin: 16px;
padding: 18px;
}
}
@media (max-width: 900px) {
.stream-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
@media (max-width: 600px) {
.viewer-hero {
padding: 58px 20px 48px;
}
.viewer-main {
padding: 38px 20px 64px;
}
.viewer-title {
font-size: clamp(38px, 13vw, 54px);
}
.stream-grid {
grid-template-columns: 1fr;
gap: 24px;
}
.viewer-section-heading {
margin-bottom: 24px;
}
.viewer-footer {
padding-inline: 20px;
}
}
@media (prefers-reduced-motion: reduce) {
.viewer-shell *,
.viewer-shell *::before,
.viewer-shell *::after {
scroll-behavior: auto !important;
transition-duration: 0.01ms !important;
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
}
}