* { margin: 0; padding: 0; box-sizing: border-box; }
body {
font-family: Arial, sans-serif;
background: #111;
color: #eee;
padding: 20px;
}
h1 {
text-align: center;
margin-bottom: 30px;
}
.gallery {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 20px;
max-width: 1400px;
margin: 0 auto;
}
.video-card {
background: #1f1f1f;
border-radius: 12px;
overflow: hidden;
cursor: pointer;
transition: transform 0.2s, box-shadow 0.2s;
display: flex;
flex-direction: column;
}
.video-card:hover {
transform: scale(1.04);
box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}
.thumbnail-container {
position: relative;
width: 100%;
padding-top: 56.25%;
background: #000;
overflow: hidden;
}
.thumbnail {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}
.thumbnail-container::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: 40%;
background: linear-gradient(transparent, rgba(0,0,0,0.75));
pointer-events: none;
}
.info {
padding: 12px 14px;
flex-grow: 1;
}
.title {
font-size: 1.05rem;
margin-bottom: 4px;
line-height: 1.3;
}
.duration {
font-size: 0.85rem;
color: #aaa;
}
.modal {
display: none;
position: fixed;
top: 0; left: 0; right: 0; bottom: 0;
background: rgba(0, 0, 0, 0.95);
z-index: 1000;
align-items: center;
justify-content: center;
padding: 20px;
}
.modal-content {
width: 100%;
max-width: 960px;
background: #1f1f1f;
border-radius: 12px;
overflow: hidden;
position: relative;
}
.modal-header {
padding: 12px 20px;
background: #2a2a2a;
display: flex;
justify-content: space-between;
align-items: center;
}
.close-btn {
font-size: 28px;
width: 40px;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
border-radius: 50%;
transition: background 0.2s;
}
.close-btn:hover {
background: #444;
}
video {
width: 100%;
display: block;
background: #000;
}
