* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

/* 发布者头部 */
.publisher-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.publisher-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255,255,255,0.3);
    flex-shrink: 0;
}

.publisher-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.publisher-name {
    font-size: 18px;
    font-weight: 600;
}

/* 视频列表 */
.video-list {
    padding: 15px;
}

.video-group {
    background: white;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.video-group-title {
    padding: 15px;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.video-group-time {
    font-size: 12px;
    color: #999;
    font-weight: normal;
}

.video-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 15px;
}

.video-item {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: #000;
}

.video-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-item .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

.video-item .lock-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: rgba(255,0,0,0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
}

.video-item .price-tag {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(255,0,0,0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

/* 加载状态 */
.loading {
    text-align: center;
    padding: 40px;
    color: #999;
}

/* 视频播放弹窗 */
.video-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    overflow: auto;
}

.video-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content video {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 100vh;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
}

.close-btn:hover {
    background: rgba(0,0,0,0.8);
}

/* 支付弹窗 */
.payment-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow: auto;
}

.payment-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-content {
    background: white;
    border-radius: 16px;
    padding: 25px;
    width: 90%;
    max-width: 400px;
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.payment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.payment-header h3 {
    font-size: 20px;
    color: #333;
}

.close-payment {
    font-size: 28px;
    color: #999;
    cursor: pointer;
    line-height: 1;
}

.close-payment:hover {
    color: #333;
}

.payment-info {
    margin-bottom: 20px;
}

.payment-info p {
    margin-bottom: 10px;
    color: #666;
}

.payment-info .price {
    color: #ff4444;
    font-size: 24px;
    font-weight: 600;
}

.payment-methods {
    margin-bottom: 15px;
}

.pay-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s;
}

.pay-btn:hover {
    opacity: 0.9;
}

.pay-btn:active {
    opacity: 0.8;
}

.payment-status {
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
}

.payment-status.success {
    background: #d4edda;
    color: #155724;
}

.payment-status.error {
    background: #f8d7da;
    color: #721c24;
}

.payment-status.info {
    background: #d1ecf1;
    color: #0c5460;
}
