- Add new related videos section with styling for shorts and regular videos - Implement logic to load and display related videos based on current video category - Restructure video page layout to accommodate new related videos section - Add shuffle functionality for video recommendations
557 lines
8.8 KiB
CSS
557 lines
8.8 KiB
CSS
.video-content-wrapper {
|
|
display: flex;
|
|
gap: 24px;
|
|
padding: 24px;
|
|
background-color: #121212;
|
|
flex: 1;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.video-main-section {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.video-player {
|
|
width: 100%;
|
|
aspect-ratio: 16 / 9;
|
|
margin-bottom: 20px;
|
|
border-radius: 20px;
|
|
position: static;
|
|
border: 1px solid #000000;
|
|
overflow: hidden;
|
|
box-shadow: 0 2px 8px rgb(48, 48, 48);
|
|
padding: 1px;
|
|
background-color: #000000;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.video-player video {
|
|
width: 100%;
|
|
height: 100%;
|
|
border-radius: 20px;
|
|
}
|
|
|
|
.video-info-container {
|
|
width: 100%;
|
|
margin-bottom: 20px;
|
|
padding: 1px;
|
|
border: 1px solid #000000;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.video-title {
|
|
font-size: 20px;
|
|
font-weight: 600;
|
|
margin: 0 0 12px 0;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.video-channel-info {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.channel-left {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.channel-avatar {
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 50%;
|
|
background-color: #606060;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.channel-avatar img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.channel-avatar i {
|
|
font-size: 20px;
|
|
color: #ffffff;
|
|
}
|
|
|
|
.channel-details {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.channel-name {
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
color: #ffffff;
|
|
}
|
|
|
|
.channel-subscribers {
|
|
font-size: 12px;
|
|
color: #aaaaaa;
|
|
}
|
|
|
|
.subscribe-btn {
|
|
background-color: #cc0000;
|
|
color: #ffffff;
|
|
border: none;
|
|
padding: 10px 16px;
|
|
border-radius: 18px;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: background-color 0.2s;
|
|
}
|
|
|
|
.subscribe-btn:hover {
|
|
background-color: #ff0000;
|
|
}
|
|
|
|
.subscribe-btn.subscribed {
|
|
background-color: #272727;
|
|
color: #aaaaaa;
|
|
}
|
|
|
|
.subscribe-btn.subscribed:hover {
|
|
background-color: #3d3d3d;
|
|
}
|
|
|
|
.video-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.like-dislike-buttons {
|
|
display: flex;
|
|
background-color: #272727;
|
|
border-radius: 18px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.action-btn {
|
|
background-color: #272727;
|
|
color: #ffffff;
|
|
border: none;
|
|
padding: 8px 16px;
|
|
border-radius: 18px;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
transition: background-color 0.2s;
|
|
}
|
|
|
|
.action-btn:hover {
|
|
background-color: #3d3d3d;
|
|
}
|
|
|
|
.like-btn {
|
|
border-radius: 18px 0 0 18px;
|
|
padding-right: 12px;
|
|
}
|
|
|
|
.dislike-btn {
|
|
border-radius: 0 18px 18px 0;
|
|
padding-left: 12px;
|
|
}
|
|
|
|
.like-btn i,
|
|
.dislike-btn i {
|
|
font-size: 16px;
|
|
}
|
|
|
|
.more-options {
|
|
position: relative;
|
|
}
|
|
|
|
.more-dropdown {
|
|
position: absolute;
|
|
top: 100%;
|
|
right: 0;
|
|
background-color: #272727;
|
|
border-radius: 12px;
|
|
padding: 8px 0;
|
|
min-width: 180px;
|
|
display: none;
|
|
z-index: 1000;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
.more-dropdown.show {
|
|
display: block;
|
|
}
|
|
|
|
.more-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 10px 16px;
|
|
cursor: pointer;
|
|
color: #ffffff;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.more-item:hover {
|
|
background-color: #3d3d3d;
|
|
}
|
|
|
|
.more-item i {
|
|
font-size: 16px;
|
|
color: #aaaaaa;
|
|
}
|
|
|
|
.video-stats {
|
|
display: flex;
|
|
gap: 12px;
|
|
font-size: 14px;
|
|
color: #aaaaaa;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.video-description {
|
|
background-color: #272727;
|
|
border-radius: 12px;
|
|
padding: 12px;
|
|
position: relative;
|
|
}
|
|
|
|
.description-toggle {
|
|
position: absolute;
|
|
top: 12px;
|
|
right: 12px;
|
|
width: 24px;
|
|
height: 24px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
color: #ffffff;
|
|
}
|
|
|
|
.description-toggle:hover {
|
|
background-color: #3d3d3d;
|
|
border-radius: 50%;
|
|
}
|
|
|
|
.video-description p {
|
|
margin: 0;
|
|
font-size: 14px;
|
|
color: #ffffff;
|
|
line-height: 1.6;
|
|
max-height: 60px;
|
|
overflow: hidden;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 3;
|
|
-webkit-box-orient: vertical;
|
|
}
|
|
|
|
.video-description p.expanded {
|
|
max-height: none;
|
|
display: block;
|
|
}
|
|
|
|
.comments-section {
|
|
width: 100%;
|
|
margin-bottom: 40px;
|
|
padding: 1px;
|
|
border: 1px solid #000000;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.comments-header {
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
color: #ffffff;
|
|
margin: 0 0 20px 0;
|
|
}
|
|
|
|
.add-comment {
|
|
display: flex;
|
|
gap: 12px;
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.comment-avatar {
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 50%;
|
|
background-color: #606060;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
overflow: hidden;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.comment-avatar img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.comment-avatar i {
|
|
font-size: 20px;
|
|
color: #ffffff;
|
|
}
|
|
|
|
.comment-input-container {
|
|
flex: 1;
|
|
}
|
|
|
|
.comment-input {
|
|
width: 100%;
|
|
background-color: transparent;
|
|
border: none;
|
|
border-bottom: 1px solid #303030;
|
|
color: #ffffff;
|
|
font-size: 14px;
|
|
padding: 8px 0;
|
|
outline: none;
|
|
}
|
|
|
|
.comment-input::placeholder {
|
|
color: #aaaaaa;
|
|
}
|
|
|
|
.comment-input:focus {
|
|
border-bottom-color: #ffffff;
|
|
}
|
|
|
|
.comments-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 20px;
|
|
}
|
|
|
|
.comment-item {
|
|
display: flex;
|
|
gap: 12px;
|
|
}
|
|
|
|
.comment-content {
|
|
flex: 1;
|
|
}
|
|
|
|
.comment-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.comment-author {
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: #ffffff;
|
|
}
|
|
|
|
.comment-time {
|
|
font-size: 12px;
|
|
color: #aaaaaa;
|
|
}
|
|
|
|
.comment-text {
|
|
font-size: 14px;
|
|
color: #ffffff;
|
|
margin: 0 0 8px 0;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.comment-actions {
|
|
display: flex;
|
|
gap: 8px;
|
|
}
|
|
|
|
.comment-action-btn {
|
|
background: none;
|
|
border: none;
|
|
color: #aaaaaa;
|
|
cursor: pointer;
|
|
padding: 4px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.comment-action-btn:hover {
|
|
color: #ffffff;
|
|
}
|
|
|
|
.comment-action-btn i {
|
|
font-size: 16px;
|
|
}
|
|
|
|
.related-videos-section {
|
|
width: 400px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 24px;
|
|
overflow-y: auto;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.section-title {
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
color: #ffffff;
|
|
margin: 0 0 12px 0;
|
|
}
|
|
|
|
.shorts-section {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.shorts-list {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
gap: 12px;
|
|
}
|
|
|
|
.short-item {
|
|
position: relative;
|
|
width: 100%;
|
|
padding-top: 177.78%; /* 9:16 ratio */
|
|
background-color: #272727;
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
cursor: pointer;
|
|
transition: transform 0.2s ease, box-shadow 0.2s ease;
|
|
}
|
|
|
|
.short-item:hover {
|
|
transform: translateY(-4px);
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
.short-thumbnail {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
.short-thumbnail img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.short-info {
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
padding: 8px;
|
|
background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
|
|
}
|
|
|
|
.short-title {
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: #ffffff;
|
|
margin: 0 0 4px 0;
|
|
line-height: 1.4;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.short-channel {
|
|
font-size: 12px;
|
|
color: #aaaaaa;
|
|
margin: 0 0 2px 0;
|
|
}
|
|
|
|
.short-views {
|
|
font-size: 12px;
|
|
color: #aaaaaa;
|
|
margin: 0;
|
|
}
|
|
|
|
.regular-videos-section {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.regular-videos-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
.regular-video-item {
|
|
display: flex;
|
|
gap: 12px;
|
|
cursor: pointer;
|
|
transition: background-color 0.2s;
|
|
border-radius: 12px;
|
|
padding: 8px;
|
|
}
|
|
|
|
.regular-video-item:hover {
|
|
background-color: #272727;
|
|
}
|
|
|
|
.regular-video-thumbnail {
|
|
width: 168px;
|
|
height: 94px;
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
flex-shrink: 0;
|
|
background-color: #272727;
|
|
}
|
|
|
|
.regular-video-thumbnail img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.regular-video-info {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: flex-start;
|
|
}
|
|
|
|
.regular-video-title {
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: #ffffff;
|
|
margin: 0 0 6px 0;
|
|
line-height: 1.4;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.regular-video-channel {
|
|
font-size: 12px;
|
|
color: #aaaaaa;
|
|
margin: 0 0 4px 0;
|
|
}
|
|
|
|
.regular-video-meta {
|
|
font-size: 12px;
|
|
color: #aaaaaa;
|
|
margin: 0;
|
|
}
|