544 lines
9.4 KiB
CSS
544 lines
9.4 KiB
CSS
/* Live Stream Page */
|
|
.live-page {
|
|
padding: 40px 0;
|
|
min-height: calc(100vh - 300px);
|
|
background-color: var(--bg-gray);
|
|
}
|
|
|
|
.live-wrapper {
|
|
display: grid;
|
|
grid-template-columns: 1fr 400px;
|
|
gap: 30px;
|
|
}
|
|
|
|
/* Video Section */
|
|
.live-video-section {
|
|
background-color: #fff;
|
|
border-radius: 12px;
|
|
overflow: hidden;
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
|
|
}
|
|
|
|
.live-video-container {
|
|
padding: 0;
|
|
}
|
|
|
|
.video-player {
|
|
position: relative;
|
|
width: 100%;
|
|
padding-top: 56.25%; /* 16:9 aspect ratio */
|
|
background-color: #000;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.video-placeholder {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
color: #fff;
|
|
}
|
|
|
|
.live-indicator {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
background-color: rgba(255, 255, 255, 0.95);
|
|
color: #e91e63;
|
|
padding: 10px 20px;
|
|
border-radius: 25px;
|
|
font-size: 16px;
|
|
font-weight: 700;
|
|
margin-bottom: 30px;
|
|
animation: pulse-live 2s infinite;
|
|
}
|
|
|
|
@keyframes pulse-live {
|
|
0%, 100% {
|
|
transform: scale(1);
|
|
box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
|
|
}
|
|
50% {
|
|
transform: scale(1.05);
|
|
box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
|
|
}
|
|
}
|
|
|
|
.live-dot {
|
|
display: inline-block;
|
|
width: 12px;
|
|
height: 12px;
|
|
background-color: #e91e63;
|
|
border-radius: 50%;
|
|
animation: blink-dot 1.5s infinite;
|
|
}
|
|
|
|
@keyframes blink-dot {
|
|
0%, 100% {
|
|
opacity: 1;
|
|
}
|
|
50% {
|
|
opacity: 0.3;
|
|
}
|
|
}
|
|
|
|
.play-button {
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.play-button:hover {
|
|
transform: scale(1.1);
|
|
opacity: 0.9;
|
|
}
|
|
|
|
.video-info {
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
text-align: center;
|
|
}
|
|
|
|
/* Video Stats */
|
|
.video-stats {
|
|
display: flex;
|
|
justify-content: space-around;
|
|
padding: 25px;
|
|
background-color: #fff;
|
|
border-top: 1px solid var(--border-color);
|
|
}
|
|
|
|
.stat-item {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 5px;
|
|
}
|
|
|
|
.stat-icon {
|
|
font-size: 24px;
|
|
}
|
|
|
|
.stat-value {
|
|
font-size: 24px;
|
|
font-weight: 700;
|
|
color: var(--primary-color);
|
|
}
|
|
|
|
.stat-label {
|
|
font-size: 12px;
|
|
color: var(--text-light);
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
/* Video Description */
|
|
.video-description {
|
|
padding: 25px;
|
|
background-color: #fff;
|
|
border-top: 1px solid var(--border-color);
|
|
}
|
|
|
|
.video-description h2 {
|
|
font-size: 20px;
|
|
font-weight: 700;
|
|
margin-bottom: 15px;
|
|
color: var(--text-color);
|
|
}
|
|
|
|
.video-description p {
|
|
font-size: 14px;
|
|
line-height: 1.8;
|
|
color: var(--text-light);
|
|
}
|
|
|
|
/* Sidebar */
|
|
.live-sidebar {
|
|
display: flex;
|
|
flex-direction: column;
|
|
background-color: #fff;
|
|
border-radius: 12px;
|
|
overflow: hidden;
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
|
|
max-height: calc(100vh - 200px);
|
|
}
|
|
|
|
.sidebar-tabs {
|
|
display: flex;
|
|
border-bottom: 2px solid var(--border-color);
|
|
background-color: #fff;
|
|
}
|
|
|
|
.tab-btn {
|
|
flex: 1;
|
|
padding: 15px 20px;
|
|
background-color: transparent;
|
|
border: none;
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
color: var(--text-light);
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
position: relative;
|
|
}
|
|
|
|
.tab-btn:hover {
|
|
color: var(--primary-color);
|
|
background-color: var(--bg-gray);
|
|
}
|
|
|
|
.tab-btn.active {
|
|
color: var(--primary-color);
|
|
}
|
|
|
|
.tab-btn.active::after {
|
|
content: '';
|
|
position: absolute;
|
|
bottom: -2px;
|
|
left: 0;
|
|
right: 0;
|
|
height: 2px;
|
|
background-color: var(--primary-color);
|
|
}
|
|
|
|
.tab-content {
|
|
display: none;
|
|
flex: 1;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.tab-content.active {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
/* Chat Container */
|
|
.chat-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: calc(100vh - 340px);
|
|
}
|
|
|
|
.chat-messages {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: 20px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 15px;
|
|
}
|
|
|
|
.chat-message {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 5px;
|
|
animation: slideIn 0.3s ease;
|
|
}
|
|
|
|
@keyframes slideIn {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(10px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
.chat-message-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.chat-username {
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: var(--primary-color);
|
|
}
|
|
|
|
.chat-time {
|
|
font-size: 11px;
|
|
color: var(--text-light);
|
|
}
|
|
|
|
.chat-text {
|
|
font-size: 14px;
|
|
line-height: 1.5;
|
|
color: var(--text-color);
|
|
padding: 10px 12px;
|
|
background-color: var(--bg-gray);
|
|
border-radius: 8px;
|
|
word-break: break-word;
|
|
}
|
|
|
|
.chat-message.system .chat-text {
|
|
background-color: #e3f2fd;
|
|
color: #1976d2;
|
|
text-align: center;
|
|
}
|
|
|
|
.chat-input-container {
|
|
display: flex;
|
|
gap: 10px;
|
|
padding: 15px 20px;
|
|
background-color: #fff;
|
|
border-top: 1px solid var(--border-color);
|
|
}
|
|
|
|
.chat-input-container input {
|
|
flex: 1;
|
|
padding: 12px 15px;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 25px;
|
|
font-size: 14px;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.chat-input-container input:focus {
|
|
outline: none;
|
|
border-color: var(--primary-color);
|
|
box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
|
|
}
|
|
|
|
.btn-send {
|
|
width: 44px;
|
|
height: 44px;
|
|
border-radius: 50%;
|
|
background-color: var(--primary-color);
|
|
border: none;
|
|
color: #fff;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: all 0.3s ease;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.btn-send:hover {
|
|
background-color: var(--primary-dark);
|
|
transform: scale(1.05);
|
|
}
|
|
|
|
.btn-send:active {
|
|
transform: scale(0.95);
|
|
}
|
|
|
|
/* Live Products */
|
|
.live-products {
|
|
overflow-y: auto;
|
|
padding: 20px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 15px;
|
|
height: calc(100vh - 340px);
|
|
}
|
|
|
|
.live-product-item {
|
|
display: flex;
|
|
gap: 12px;
|
|
padding: 12px;
|
|
background-color: #fff;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 8px;
|
|
transition: all 0.3s ease;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.live-product-item:hover {
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
|
|
border-color: var(--primary-color);
|
|
}
|
|
|
|
.live-product-image {
|
|
width: 80px;
|
|
height: 80px;
|
|
flex-shrink: 0;
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
background-color: var(--bg-gray);
|
|
}
|
|
|
|
.live-product-image img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.live-product-info {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.live-product-title {
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: var(--text-color);
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.live-product-price {
|
|
display: flex;
|
|
align-items: baseline;
|
|
gap: 8px;
|
|
}
|
|
|
|
.live-product-current-price {
|
|
font-size: 18px;
|
|
font-weight: 700;
|
|
color: var(--primary-color);
|
|
}
|
|
|
|
.live-product-original-price {
|
|
font-size: 13px;
|
|
color: var(--text-light);
|
|
text-decoration: line-through;
|
|
}
|
|
|
|
.live-product-btn {
|
|
padding: 6px 12px;
|
|
font-size: 12px;
|
|
background-color: var(--primary-color);
|
|
color: #fff;
|
|
border: none;
|
|
border-radius: 15px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
align-self: flex-start;
|
|
}
|
|
|
|
.live-product-btn:hover {
|
|
background-color: var(--primary-dark);
|
|
}
|
|
|
|
/* Scrollbar Styling */
|
|
.chat-messages::-webkit-scrollbar,
|
|
.live-products::-webkit-scrollbar {
|
|
width: 6px;
|
|
}
|
|
|
|
.chat-messages::-webkit-scrollbar-track,
|
|
.live-products::-webkit-scrollbar-track {
|
|
background: var(--bg-gray);
|
|
}
|
|
|
|
.chat-messages::-webkit-scrollbar-thumb,
|
|
.live-products::-webkit-scrollbar-thumb {
|
|
background: var(--text-light);
|
|
border-radius: 3px;
|
|
}
|
|
|
|
.chat-messages::-webkit-scrollbar-thumb:hover,
|
|
.live-products::-webkit-scrollbar-thumb:hover {
|
|
background: var(--primary-color);
|
|
}
|
|
|
|
/* Responsive Design */
|
|
@media (max-width: 1200px) {
|
|
.live-wrapper {
|
|
grid-template-columns: 1fr 350px;
|
|
}
|
|
|
|
.live-product-image {
|
|
width: 70px;
|
|
height: 70px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 992px) {
|
|
.live-wrapper {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.live-sidebar {
|
|
max-height: 500px;
|
|
}
|
|
|
|
.chat-container,
|
|
.live-products {
|
|
height: 400px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.live-page {
|
|
padding: 20px 0;
|
|
}
|
|
|
|
.live-wrapper {
|
|
gap: 20px;
|
|
}
|
|
|
|
.video-stats {
|
|
padding: 15px;
|
|
}
|
|
|
|
.stat-icon {
|
|
font-size: 20px;
|
|
}
|
|
|
|
.stat-value {
|
|
font-size: 20px;
|
|
}
|
|
|
|
.stat-label {
|
|
font-size: 10px;
|
|
}
|
|
|
|
.video-description {
|
|
padding: 15px;
|
|
}
|
|
|
|
.video-description h2 {
|
|
font-size: 18px;
|
|
}
|
|
|
|
.video-description p {
|
|
font-size: 13px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.live-indicator {
|
|
font-size: 14px;
|
|
padding: 8px 16px;
|
|
}
|
|
|
|
.play-button svg {
|
|
width: 60px;
|
|
height: 60px;
|
|
}
|
|
|
|
.video-info {
|
|
font-size: 16px;
|
|
}
|
|
|
|
.chat-messages,
|
|
.live-products {
|
|
padding: 15px;
|
|
}
|
|
|
|
.live-product-item {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.live-product-image {
|
|
width: 100%;
|
|
height: 180px;
|
|
}
|
|
}
|