325 lines
No EOL
5.7 KiB
CSS
325 lines
No EOL
5.7 KiB
CSS
/* ===== Video Card (Standard) ===== */
|
|
.yt-video-card {
|
|
cursor: pointer;
|
|
border-radius: var(--yt-radius-lg);
|
|
overflow: hidden;
|
|
transition: transform 0.1s;
|
|
animation: fadeIn 0.3s ease forwards;
|
|
/* Animation from style.css */
|
|
}
|
|
|
|
/* Stagger animation */
|
|
.yt-video-card:nth-child(1) {
|
|
animation-delay: 0.05s;
|
|
}
|
|
|
|
.yt-video-card:nth-child(2) {
|
|
animation-delay: 0.1s;
|
|
}
|
|
|
|
.yt-video-card:nth-child(3) {
|
|
animation-delay: 0.15s;
|
|
}
|
|
|
|
.yt-video-card:nth-child(4) {
|
|
animation-delay: 0.2s;
|
|
}
|
|
|
|
.yt-video-card:nth-child(5) {
|
|
animation-delay: 0.25s;
|
|
}
|
|
|
|
.yt-video-card:nth-child(6) {
|
|
animation-delay: 0.3s;
|
|
}
|
|
|
|
.yt-video-card:hover {
|
|
transform: scale(1.02);
|
|
}
|
|
|
|
.yt-thumbnail-container {
|
|
position: relative;
|
|
width: 100%;
|
|
aspect-ratio: 16/9;
|
|
border-radius: var(--yt-radius-lg);
|
|
overflow: hidden;
|
|
background: var(--yt-bg-secondary);
|
|
}
|
|
|
|
.yt-thumbnail {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
opacity: 0;
|
|
transition: opacity 0.5s ease, transform 0.3s ease;
|
|
}
|
|
|
|
.yt-thumbnail.loaded {
|
|
opacity: 1;
|
|
}
|
|
|
|
.yt-video-card:hover .yt-thumbnail {
|
|
transform: scale(1.05);
|
|
}
|
|
|
|
.yt-duration {
|
|
position: absolute;
|
|
bottom: 4px;
|
|
right: 4px;
|
|
background: rgba(0, 0, 0, 0.8);
|
|
color: white;
|
|
padding: 2px 4px;
|
|
border-radius: var(--yt-radius-sm);
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.yt-video-details {
|
|
display: flex;
|
|
gap: 12px;
|
|
padding: 12px 0;
|
|
}
|
|
|
|
.yt-video-meta {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.yt-video-title {
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
line-height: 1.4;
|
|
color: var(--yt-text-primary);
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2;
|
|
line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.yt-channel-name {
|
|
font-size: 12px;
|
|
color: var(--yt-text-secondary);
|
|
margin-bottom: 2px;
|
|
}
|
|
|
|
.yt-channel-name:hover {
|
|
color: var(--yt-text-primary);
|
|
}
|
|
|
|
.yt-video-stats {
|
|
font-size: 12px;
|
|
color: var(--yt-text-secondary);
|
|
}
|
|
|
|
/* ===== Shorts Card & Container ===== */
|
|
.yt-section {
|
|
margin-bottom: 32px;
|
|
padding: 0 16px;
|
|
}
|
|
|
|
.yt-section-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.yt-section-header h2 {
|
|
font-size: 20px;
|
|
font-weight: 600;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.yt-section-header h2 i {
|
|
color: var(--yt-accent-red);
|
|
}
|
|
|
|
.yt-section-title-link:hover {
|
|
color: var(--yt-text-primary);
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.yt-shorts-container {
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.yt-shorts-arrow {
|
|
position: absolute;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 50%;
|
|
background: var(--yt-bg-primary);
|
|
border: 1px solid var(--yt-border);
|
|
color: var(--yt-text-primary);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
z-index: 10;
|
|
transition: all 0.2s;
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
.yt-shorts-arrow:hover {
|
|
background: var(--yt-bg-secondary);
|
|
transform: translateY(-50%) scale(1.1);
|
|
}
|
|
|
|
.yt-shorts-left {
|
|
left: -20px;
|
|
}
|
|
|
|
.yt-shorts-right {
|
|
right: -20px;
|
|
}
|
|
|
|
.yt-shorts-grid {
|
|
display: flex;
|
|
gap: 12px;
|
|
overflow-x: auto;
|
|
padding: 8px 0;
|
|
scroll-behavior: smooth;
|
|
scrollbar-width: none;
|
|
flex: 1;
|
|
}
|
|
|
|
.yt-shorts-grid::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
|
|
.yt-short-card {
|
|
flex-shrink: 0;
|
|
width: 180px;
|
|
cursor: pointer;
|
|
transition: transform 0.2s;
|
|
}
|
|
|
|
.yt-short-card:hover {
|
|
transform: scale(1.02);
|
|
}
|
|
|
|
.yt-short-thumb {
|
|
width: 180px;
|
|
height: 320px;
|
|
border-radius: 12px;
|
|
object-fit: cover;
|
|
background: var(--yt-bg-secondary);
|
|
opacity: 0;
|
|
transition: opacity 0.5s ease;
|
|
}
|
|
|
|
.yt-short-thumb.loaded {
|
|
opacity: 1;
|
|
}
|
|
|
|
.yt-short-title {
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
margin-top: 8px;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2;
|
|
line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.yt-short-views {
|
|
font-size: 12px;
|
|
color: var(--yt-text-secondary);
|
|
margin-top: 4px;
|
|
}
|
|
|
|
/* ===== Horizontal Video Card ===== */
|
|
.yt-video-card-horizontal {
|
|
display: flex;
|
|
gap: 8px;
|
|
margin-bottom: 8px;
|
|
cursor: pointer;
|
|
border-radius: var(--yt-radius-md);
|
|
transition: background 0.2s;
|
|
padding: 6px;
|
|
}
|
|
|
|
.yt-video-card-horizontal:hover {
|
|
background: var(--yt-bg-hover);
|
|
}
|
|
|
|
.yt-thumb-container-h {
|
|
position: relative;
|
|
width: 140px;
|
|
aspect-ratio: 16/9;
|
|
border-radius: var(--yt-radius-md);
|
|
overflow: hidden;
|
|
flex-shrink: 0;
|
|
background: var(--yt-bg-secondary);
|
|
}
|
|
|
|
.yt-thumb-container-h img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.yt-details-h {
|
|
flex: 1;
|
|
min-width: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
}
|
|
|
|
.yt-title-h {
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
line-height: 1.3;
|
|
color: var(--yt-text-primary);
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2;
|
|
line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
margin-bottom: 2px;
|
|
}
|
|
|
|
.yt-meta-h {
|
|
font-size: 12px;
|
|
color: var(--yt-text-secondary);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.yt-video-card {
|
|
border-radius: 0;
|
|
padding: 4px !important;
|
|
margin-bottom: 4px !important;
|
|
}
|
|
|
|
.yt-thumbnail-container {
|
|
border-radius: 6px !important;
|
|
/* V4 Override */
|
|
}
|
|
|
|
.yt-video-details {
|
|
padding: 6px 8px 12px !important;
|
|
}
|
|
|
|
.yt-video-title {
|
|
font-size: 13px !important;
|
|
line-height: 1.2 !important;
|
|
}
|
|
|
|
.yt-shorts-arrow {
|
|
display: none;
|
|
}
|
|
} |