This commit is contained in:
186
static/style.css
186
static/style.css
@@ -2,12 +2,198 @@ body {
|
||||
background-color: black;
|
||||
color: white;
|
||||
font-family: sans-serif;
|
||||
margin: 0;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
h1 {
|
||||
text-transform: uppercase;
|
||||
text-align: center;
|
||||
color: #e50914;
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
|
||||
.video-container {
|
||||
max-width: 1000px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.video-box {
|
||||
border: 1px solid white;
|
||||
border-radius: 8px;
|
||||
background-color: #1e1e1e;
|
||||
padding: 15px;
|
||||
display: flex;
|
||||
overflow: hidden;
|
||||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
|
||||
gap: 20px;
|
||||
}
|
||||
|
||||
.thumbnail-container {
|
||||
flex: 0 0 auto;
|
||||
max-width: 40%;
|
||||
margin-right: 20px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.thumbnail-container a {
|
||||
display: block;
|
||||
cursor: pointer;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
transition: opacity 0.2s;
|
||||
}
|
||||
|
||||
.thumbnail-container a:hover {
|
||||
opacity: 0.8;
|
||||
}
|
||||
|
||||
.thumbnail-container a:hover .play-button {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.play-button {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-color: rgba(0, 0, 0, 0.5);
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
opacity: 0;
|
||||
transition: opacity 0.3s ease;
|
||||
}
|
||||
|
||||
.play-symbol {
|
||||
color: white;
|
||||
font-size: 50px;
|
||||
text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
|
||||
.video-thumbnail {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
border-radius: 4px;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.video-info {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.video-title {
|
||||
font-size: 24px;
|
||||
margin-top: 0;
|
||||
margin-bottom: 15px;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
.video-description {
|
||||
flex: 1;
|
||||
font-size: 16px;
|
||||
line-height: 1.5;
|
||||
color: #aaaaaa;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.video-actions {
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.watch-button {
|
||||
background-color: #e50914;
|
||||
color: white;
|
||||
border: none;
|
||||
padding: 10px 20px;
|
||||
border-radius: 4px;
|
||||
cursor: pointer;
|
||||
font-size: 16px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.watch-button:hover {
|
||||
background-color: #f40612;
|
||||
}
|
||||
|
||||
.mark-watched {
|
||||
background-color: transparent;
|
||||
color: #aaaaaa;
|
||||
border: 1px solid #555;
|
||||
padding: 10px 15px;
|
||||
border-radius: 4px;
|
||||
cursor: pointer;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.mark-watched:hover {
|
||||
background-color: #333;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
/* Video Player Styles */
|
||||
.video-player-container {
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.video-player-box {
|
||||
border: 1px solid white;
|
||||
border-radius: 8px;
|
||||
background-color: #1e1e1e;
|
||||
padding: 20px;
|
||||
overflow: hidden;
|
||||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
|
||||
.video-player {
|
||||
margin: 20px 0;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.video-player video {
|
||||
width: 100%;
|
||||
max-height: 70vh;
|
||||
background-color: black;
|
||||
}
|
||||
|
||||
.video-player-info {
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
.back-button-container {
|
||||
max-width: 1200px;
|
||||
margin: 0 auto 20px;
|
||||
}
|
||||
|
||||
.back-button {
|
||||
display: inline-block;
|
||||
color: #aaaaaa;
|
||||
text-decoration: none;
|
||||
padding: 8px 16px;
|
||||
border: 1px solid #555;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.back-button:hover {
|
||||
background-color: #333;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.video-box {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.thumbnail-container {
|
||||
max-width: 100%;
|
||||
margin-bottom: 15px;
|
||||
flex: auto;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user