/* 直播详情页面样式 */
.live-video-section {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    margin-bottom: 20px;
}

.video-container {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.video-player {
    position: relative;
    background: #000;
}

#liveVideo {
    width: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent);
}

.live-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.live-status {
    background: #ff6b6b;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
}

.viewer-count {
    font-size: 14px;
}

.video-controls {
    display: flex;
    padding: 15px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
}

.control-btn {
    background: white;
    border: 1px solid #ddd;
    padding: 8px 15px;
    margin-right: 10px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.share-btn {
    margin-left: auto;
    margin-right: 0;
}

/* 主播信息面板 */
.anchor-info-panel {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.anchor-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.anchor-header img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.anchor-details {
    flex: 1;
}

.anchor-details h3 {
    margin-bottom: 5px;
    color: #333;
}

.anchor-details p {
    color: #666;
    margin-bottom: 10px;
    font-size: 14px;
}

.anchor-stats {
    display: flex;
    gap: 15px;
}

.anchor-stats span {
    color: #888;
    font-size: 12px;
}

.anchor-stats i {
    margin-right: 5px;
}

.follow-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.follow-btn:hover {
    background: #5a6fd8;
}

/* 聊天和礼物区域 */
.chat-gift-section {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
}

.chat-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    height: 400px;
}

.chat-header {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    color: #333;
    margin: 0;
}

.online-count {
    color: #666;
    font-size: 12px;
}

.chat-messages {
    flex: 1;
    padding: 15px 20px;
    overflow-y: auto;
    max-height: 300px;
}

.chat-message {
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    background: #f8f9fa;
    font-size: 14px;
}

.chat-message.system {
    background: #e3f2fd;
    color: #1976d2;
    text-align: center;
    font-style: italic;
}

.chat-message.user {
    background: #e8f5e8;
    border-left: 3px solid #4caf50;
}

.chat-input {
    padding: 15px 20px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    gap: 10px;
}

.chat-input input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
    font-size: 14px;
}

.chat-input input:focus {
    border-color: #667eea;
}

.chat-input button {
    background: #667eea;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.chat-input button:hover {
    background: #5a6fd8;
}

/* 礼物区域 */
.gift-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 20px;
    height: 400px;
}

.gift-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.gift-header h3 {
    color: #333;
    margin: 0;
}

.balance {
    color: #ff6b6b;
    font-weight: bold;
    font-size: 14px;
}

.gift-selection {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.gift-item {
    text-align: center;
    padding: 15px;
    border: 2px solid #f0f0f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gift-item:hover {
    border-color: #667eea;
    transform: translateY(-2px);
}

.gift-item i {
    font-size: 24px;
    color: #ff6b6b;
    margin-bottom: 5px;
    display: block;
}

.gift-item span {
    display: block;
    font-size: 12px;
    color: #333;
}

.gift-price {
    color: #ff6b6b;
    font-weight: bold;
    margin-top: 5px;
}

.gift-actions {
    text-align: center;
}

.recharge-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.recharge-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* 礼物动画 */
#giftAnimation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

.gift-animation {
    position: absolute;
    font-size: 48px;
    animation: giftFloat 3s ease-out forwards;
}

@keyframes giftFloat {
    0% {
        transform: translateY(100vh) scale(0.5);
        opacity: 0;
    }
    20% {
        transform: translateY(70vh) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) scale(1.5);
        opacity: 0;
    }
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .live-video-section {
        grid-template-columns: 1fr;
    }
    
    .chat-gift-section {
        grid-template-columns: 1fr;
    }
    
    .gift-container {
        height: auto;
    }
}

@media (max-width: 768px) {
    .video-controls {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .control-btn {
        margin-right: 5px;
        margin-bottom: 5px;
    }
    
    .gift-selection {
        grid-template-columns: 1fr;
    }
}