717 lines
No EOL
13 KiB
CSS
717 lines
No EOL
13 KiB
CSS
:root {
|
|
--background: #000000;
|
|
--foreground: #ffffff;
|
|
--card: #0a0a0a;
|
|
--card-foreground: #ffffff;
|
|
--popover: #0a0a0a;
|
|
--popover-foreground: #ffffff;
|
|
--primary: #ffffff;
|
|
--primary-foreground: #000000;
|
|
--secondary: #1a1a1a;
|
|
--secondary-foreground: #ffffff;
|
|
--muted: #1a1a1a;
|
|
--muted-foreground: #a1a1aa;
|
|
--accent: #1a1a1a;
|
|
--accent-foreground: #ffffff;
|
|
--destructive: #dc2626;
|
|
--destructive-foreground: #ffffff;
|
|
--border: #27272a;
|
|
--input: #27272a;
|
|
--ring: #ffffff;
|
|
--radius: 0.5rem;
|
|
}
|
|
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
background-color: var(--background);
|
|
color: var(--foreground);
|
|
font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
line-height: 1.5;
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
}
|
|
|
|
header {
|
|
border-bottom: 1px solid var(--border);
|
|
background-color: var(--background);
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 50;
|
|
backdrop-filter: blur(8px);
|
|
background-color: rgba(0, 0, 0, 0.8);
|
|
}
|
|
|
|
.header-content {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 1rem 1.5rem;
|
|
max-width: 1400px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.logo {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
cursor: pointer;
|
|
transition: opacity 0.2s;
|
|
}
|
|
|
|
.logo:hover {
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.logo h1 {
|
|
font-size: 1.25rem;
|
|
font-weight: 700;
|
|
color: var(--foreground);
|
|
}
|
|
|
|
.logo-icon {
|
|
color: var(--foreground);
|
|
font-size: 1.125rem;
|
|
}
|
|
|
|
.search-container {
|
|
display: flex;
|
|
align-items: center;
|
|
flex: 1;
|
|
max-width: 32rem;
|
|
margin: 0 2rem;
|
|
}
|
|
|
|
.search-form {
|
|
display: flex;
|
|
width: 100%;
|
|
position: relative;
|
|
}
|
|
|
|
.search-input {
|
|
flex: 1;
|
|
height: 2.5rem;
|
|
padding: 0 1rem;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
border-top-right-radius: 0;
|
|
border-bottom-right-radius: 0;
|
|
background-color: var(--background);
|
|
color: var(--foreground);
|
|
font-size: 0.875rem;
|
|
transition: border-color 0.2s, box-shadow 0.2s;
|
|
}
|
|
|
|
.search-input:focus {
|
|
outline: none;
|
|
border-color: var(--ring);
|
|
box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
|
|
}
|
|
|
|
.search-input::placeholder {
|
|
color: var(--muted-foreground);
|
|
}
|
|
|
|
.search-button {
|
|
height: 2.5rem;
|
|
padding: 0 1rem;
|
|
border: 1px solid var(--border);
|
|
border-left: none;
|
|
border-radius: var(--radius);
|
|
border-top-left-radius: 0;
|
|
border-bottom-left-radius: 0;
|
|
background-color: var(--secondary);
|
|
color: var(--secondary-foreground);
|
|
cursor: pointer;
|
|
transition: background-color 0.2s, border-color 0.2s;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.search-button:hover {
|
|
background-color: var(--accent);
|
|
}
|
|
|
|
.github-button {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 2.5rem;
|
|
height: 2.5rem;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
background-color: var(--background);
|
|
color: var(--foreground);
|
|
text-decoration: none;
|
|
transition: background-color 0.2s, border-color 0.2s;
|
|
}
|
|
|
|
.github-button:hover {
|
|
background-color: var(--secondary);
|
|
}
|
|
|
|
.container {
|
|
max-width: 1400px;
|
|
margin: 0 auto;
|
|
padding: 2rem 1.5rem;
|
|
}
|
|
|
|
.page {
|
|
opacity: 0;
|
|
visibility: hidden;
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
transition: opacity 0.2s ease-in-out;
|
|
}
|
|
|
|
.page.active {
|
|
opacity: 1;
|
|
visibility: visible;
|
|
position: relative;
|
|
}
|
|
|
|
.trending-grid,
|
|
.search-grid,
|
|
.channel-videos-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
|
|
gap: 1.5rem;
|
|
}
|
|
|
|
.related-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
|
|
gap: 1rem;
|
|
}
|
|
|
|
.video-card {
|
|
background-color: var(--card);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
overflow: hidden;
|
|
cursor: pointer;
|
|
transition: border-color 0.2s, box-shadow 0.2s;
|
|
}
|
|
|
|
.video-card:hover {
|
|
border-color: var(--muted-foreground);
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
.thumbnail-container {
|
|
position: relative;
|
|
aspect-ratio: 16 / 9;
|
|
overflow: hidden;
|
|
background-color: var(--muted);
|
|
}
|
|
|
|
.thumbnail {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
transition: transform 0.2s;
|
|
}
|
|
|
|
.video-card:hover .thumbnail {
|
|
transform: scale(1.02);
|
|
}
|
|
|
|
.duration {
|
|
position: absolute;
|
|
bottom: 0.5rem;
|
|
right: 0.5rem;
|
|
background-color: rgba(0, 0, 0, 0.8);
|
|
color: white;
|
|
padding: 0.125rem 0.375rem;
|
|
border-radius: 0.25rem;
|
|
font-size: 0.75rem;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.video-info {
|
|
padding: 1rem;
|
|
}
|
|
|
|
.video-title {
|
|
font-size: 0.875rem;
|
|
font-weight: 600;
|
|
margin-bottom: 0.5rem;
|
|
line-height: 1.25;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
color: var(--card-foreground);
|
|
}
|
|
|
|
.video-meta {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.uploader {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
color: var(--muted-foreground);
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.uploader-avatar {
|
|
width: 1.5rem;
|
|
height: 1.5rem;
|
|
border-radius: 50%;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.video-stats {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
font-size: 0.75rem;
|
|
color: var(--muted-foreground);
|
|
}
|
|
|
|
.stat {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.25rem;
|
|
}
|
|
|
|
.video-player-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1.5rem;
|
|
}
|
|
|
|
.player-wrapper {
|
|
position: relative;
|
|
aspect-ratio: 16 / 9;
|
|
background-color: #000;
|
|
border-radius: var(--radius);
|
|
border: 1px solid var(--border);
|
|
}
|
|
|
|
.player-wrapper video {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: contain;
|
|
background-color: #000;
|
|
}
|
|
|
|
.preparation-overlay {
|
|
position: absolute;
|
|
inset: 0;
|
|
background-color: rgba(0, 0, 0, 0.9);
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 1rem;
|
|
z-index: 10;
|
|
}
|
|
|
|
.preparation-status {
|
|
font-size: 0.875rem;
|
|
font-weight: 500;
|
|
color: var(--foreground);
|
|
text-align: center;
|
|
}
|
|
|
|
.preparation-progress-container {
|
|
width: 16rem;
|
|
height: 0.25rem;
|
|
background-color: var(--muted);
|
|
border-radius: 0.125rem;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.preparation-progress-bar {
|
|
height: 100%;
|
|
background-color: var(--primary);
|
|
border-radius: 0.125rem;
|
|
transition: width 0.3s ease;
|
|
width: 0%;
|
|
}
|
|
|
|
.reload-button {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
height: 2.25rem;
|
|
padding: 0 1rem;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
background-color: var(--secondary);
|
|
color: var(--secondary-foreground);
|
|
font-size: 0.875rem;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: background-color 0.2s;
|
|
}
|
|
|
|
.reload-button:hover {
|
|
background-color: var(--accent);
|
|
}
|
|
|
|
.video-detail {
|
|
background-color: var(--card);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
padding: 1.5rem;
|
|
}
|
|
|
|
.video-detail-title {
|
|
font-size: 1.5rem;
|
|
font-weight: 700;
|
|
margin-bottom: 1rem;
|
|
line-height: 1.25;
|
|
}
|
|
|
|
.video-detail-meta {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: start;
|
|
margin-bottom: 1.5rem;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.video-detail-uploader {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
cursor: pointer;
|
|
transition: opacity 0.2s;
|
|
}
|
|
|
|
.video-detail-uploader:hover {
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.uploader-avatar-large {
|
|
width: 3rem;
|
|
height: 3rem;
|
|
border-radius: 50%;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.uploader-info {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.uploader-name {
|
|
font-weight: 600;
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.uploaded-date {
|
|
font-size: 0.875rem;
|
|
color: var(--muted-foreground);
|
|
}
|
|
|
|
.video-detail-stats {
|
|
display: flex;
|
|
gap: 1.5rem;
|
|
align-items: center;
|
|
}
|
|
|
|
.detail-stat {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
color: var(--muted-foreground);
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.video-description {
|
|
color: var(--muted-foreground);
|
|
line-height: 1.6;
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.search-heading {
|
|
margin-bottom: 1.5rem;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.search-query {
|
|
font-size: 1.5rem;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.search-count {
|
|
font-size: 0.875rem;
|
|
color: var(--muted-foreground);
|
|
background-color: var(--muted);
|
|
padding: 0.25rem 0.5rem;
|
|
border-radius: 0.25rem;
|
|
}
|
|
|
|
.channel-header {
|
|
background-color: var(--card);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
overflow: hidden;
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
.channel-banner-container {
|
|
height: 10rem;
|
|
background-color: var(--muted);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.channel-banner {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.channel-info {
|
|
padding: 1.5rem;
|
|
display: flex;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.channel-avatar-container {
|
|
flex-shrink: 0;
|
|
margin-top: -2rem;
|
|
}
|
|
|
|
.channel-avatar {
|
|
width: 5rem;
|
|
height: 5rem;
|
|
border-radius: 50%;
|
|
border: 3px solid var(--background);
|
|
background-color: var(--muted);
|
|
}
|
|
|
|
.channel-details {
|
|
flex: 1;
|
|
}
|
|
|
|
.channel-title-container {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.channel-title {
|
|
font-size: 1.5rem;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.channel-verified {
|
|
color: var(--muted-foreground);
|
|
}
|
|
|
|
.channel-stats {
|
|
color: var(--muted-foreground);
|
|
font-size: 0.875rem;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.channel-description {
|
|
color: var(--muted-foreground);
|
|
line-height: 1.6;
|
|
font-size: 0.875rem;
|
|
white-space: pre-line;
|
|
max-height: 6rem;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.load-more-container {
|
|
display: flex;
|
|
justify-content: center;
|
|
margin-top: 2rem;
|
|
}
|
|
|
|
.load-more-button {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
height: 2.5rem;
|
|
padding: 0 1.5rem;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
background-color: var(--secondary);
|
|
color: var(--secondary-foreground);
|
|
font-size: 0.875rem;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: background-color 0.2s;
|
|
}
|
|
|
|
.load-more-button:hover {
|
|
background-color: var(--accent);
|
|
}
|
|
|
|
.section-title {
|
|
font-size: 1.25rem;
|
|
font-weight: 700;
|
|
margin-bottom: 1.5rem;
|
|
padding-bottom: 0.5rem;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.loading-container {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
min-height: 20rem;
|
|
}
|
|
|
|
.loader {
|
|
width: 2rem;
|
|
height: 2rem;
|
|
border: 2px solid var(--muted);
|
|
border-top: 2px solid var(--foreground);
|
|
border-radius: 50%;
|
|
animation: spin 1s linear infinite;
|
|
}
|
|
|
|
@keyframes spin {
|
|
0% {
|
|
transform: rotate(0deg);
|
|
}
|
|
|
|
100% {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
|
|
.skeleton {
|
|
background: linear-gradient(90deg,
|
|
var(--muted) 25%,
|
|
var(--secondary) 50%,
|
|
var(--muted) 75%);
|
|
background-size: 200% 100%;
|
|
animation: shimmer 1.5s infinite;
|
|
border-radius: var(--radius);
|
|
}
|
|
|
|
@keyframes shimmer {
|
|
0% {
|
|
background-position: 200% 0;
|
|
}
|
|
|
|
100% {
|
|
background-position: -200% 0;
|
|
}
|
|
}
|
|
|
|
.skeleton-video {
|
|
aspect-ratio: 16 / 9;
|
|
}
|
|
|
|
.skeleton-title {
|
|
height: 1rem;
|
|
margin: 0.5rem 0;
|
|
width: 90%;
|
|
}
|
|
|
|
.skeleton-uploader {
|
|
height: 0.875rem;
|
|
width: 60%;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.skeleton-stats {
|
|
height: 0.75rem;
|
|
width: 40%;
|
|
}
|
|
|
|
.no-results {
|
|
text-align: center;
|
|
padding: 3rem 1rem;
|
|
color: var(--muted-foreground);
|
|
}
|
|
|
|
.no-results i {
|
|
margin-bottom: 1rem;
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.animated-item {
|
|
opacity: 0;
|
|
transform: translateY(1rem);
|
|
transition: opacity 0.4s ease, transform 0.4s ease;
|
|
}
|
|
|
|
.animated-item.visible {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.header-content {
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.search-container {
|
|
order: 3;
|
|
margin: 0;
|
|
width: 100%;
|
|
}
|
|
|
|
.container {
|
|
padding: 1rem;
|
|
}
|
|
|
|
.trending-grid,
|
|
.search-grid,
|
|
.channel-videos-grid {
|
|
grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
|
|
gap: 1rem;
|
|
}
|
|
|
|
.related-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.video-detail-meta {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.video-detail-stats {
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.channel-info {
|
|
flex-direction: column;
|
|
align-items: center;
|
|
text-align: center;
|
|
}
|
|
|
|
.channel-avatar-container {
|
|
margin-top: -3rem;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
|
|
.trending-grid,
|
|
.search-grid,
|
|
.channel-videos-grid,
|
|
.related-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.video-detail-title {
|
|
font-size: 1.25rem;
|
|
}
|
|
} |