* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: #0f0f23;
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    background: linear-gradient(90deg, #ff0080, #ff8c00);
    padding: 6px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(255, 0, 128, 0.3);
    position: relative;
    z-index: 10;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}



.logo h1 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
}
.live-badge {
    background-color: #ff0000;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 6px;
    animation: heartbeat-breathing 3.5s infinite;
    position: relative;
    transform-origin: center;
}

@keyframes heartbeat-breathing {
    0% {
        transform: scale(1);
        box-shadow: 0 0 8px rgba(255, 0, 0, 0.3);
    }
    30% {
        transform: scale(1.02); /* 第一次轻微膨胀 */
        box-shadow: 0 0 10px rgba(255, 0, 0, 0.4);
    }
    35% {
        transform: scale(1.01); /* 轻微回缩 */
        box-shadow: 0 0 9px rgba(255, 0, 0, 0.35);
    }
    50% {
        transform: scale(1.05); /* 第二次更明显的膨胀 */
        box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
    }
    65% {
        transform: scale(1.07); /* 达到最大 */
        box-shadow: 0 0 20px rgba(255, 0, 0, 0.6);
    }
    70% {
        transform: scale(1.06); /* 轻微停顿 */
        box-shadow: 0 0 18px rgba(255, 0, 0, 0.55);
    }
    85% {
        transform: scale(1.03); /* 开始缓慢收缩 */
        box-shadow: 0 0 12px rgba(255, 0, 0, 0.45);
    }
    100% {
        transform: scale(1); /* 回到原点 */
        box-shadow: 0 0 8px rgba(255, 0, 0, 0.3);
    }
}
.container {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

@media (min-width: 1024px) {
    .container {
        flex-direction: row;
    }
}

.video-section {
    /*flex: 1;*/
    /*display: flex;*/
    /*flex-direction: column;*/
    /*gap: 15px;*/
}

.video-container {
    position: relative;
    background-color: #000;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    aspect-ratio: 10/9;
}

#live-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-info {
    background-color: rgba(30, 30, 46, 0.8);
    padding: 8px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.video-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #fff;
}

.video-stats {
    display: flex;
    gap: 20px;
    color: #aaa;
    font-size: 14px;
}

.chat-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: -20px;
}

@media (min-width: 1024px) {
    .chat-section {
        width: 400px;
    }
}

.chat-container {
    background-color: rgba(30, 30, 46, 0.8);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex: 1;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.chat-header {
    background: linear-gradient(90deg, #1e1e2e, #2a2a3e);
    padding: 8px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #444;
}

.chat-header span {
    color: #ff8c00;
}

.chat-messages {
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 300px;
}

.message {
    display: flex;
    gap: 10px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.message-content {
    flex: 1;
}

.message-header {
    display: flex;
    gap: 8px;
    align-items: baseline;
    margin-bottom: 4px;
}

.username {
    font-weight: 600;
    color: #fff;
}

.user-type {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
}

.host {
    background-color: #ff0080;
    color: white;
}

.moderator {
    background-color: #00aaff;
    color: white;
}

.time {
    color: #888;
    font-size: 12px;
}

.message-text {
    color: #eee;
    line-height: 1.4;
    word-break: break-word;
}

.user-message .username {
    color: #4cd964;
}

.chat-input-area {
    padding: 15px;
    border-top: 1px solid #444;
    display: flex;
    gap: 10px;
}

#message-input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 25px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 14px;
    outline: none;
}

#message-input::placeholder {
    color: #aaa;
}

#send-button {
    background-color: #ff0080;
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

#send-button:hover {
    background-color: #ff3399;
}

.footer {
    text-align: center;
    padding: 15px;
    color: #888;
    font-size: 14px;
    border-top: 1px solid #333;
    margin-top: 20px;
}

.hidden {
    display: none !important;
}

/* 隐藏视频控制条 */
#live-video::-webkit-media-controls {
    display: none !important;
}

#live-video::-webkit-media-controls-enclosure {
    display: none !important;
}

#live-video::-webkit-media-controls-panel {
    display: none !important;
}

#live-video::-webkit-media-controls-play-button {
    display: none !important;
}

#live-video::-webkit-media-controls-timeline {
    display: none !important;
}

#live-video::-webkit-media-controls-current-time-display {
    display: none !important;
}

#live-video::-webkit-media-controls-time-remaining-display {
    display: none !important;
}

#live-video::-webkit-media-controls-timeline-container {
    display: none !important;
}

#live-video::-webkit-media-controls-volume-slider-container {
    display: none !important;
}

#live-video::-webkit-media-controls-volume-slider {
    display: none !important;
}

#live-video::-webkit-media-controls-mute-button {
    display: none !important;
}

#live-video::-webkit-media-controls-toggle-closed-captions-button {
    display: none !important;
}

#live-video::-webkit-media-controls-fullscreen-button {
    display: none !important;
}

/* 音频状态提示 */
.audio-status {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    display: none;
}

/* 直播未开始提示样式 */
#not-live-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(135deg, #0f0f23, #1e1e2e);
}

.not-live-message {
    text-align: center;
    padding: 40px;
    background: rgba(30, 30, 46, 0.8);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.not-live-icon {
    font-size: 80px;
    color: #ff0080;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.not-live-message h2 {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.not-live-message p {
    font-size: 16px;
    color: #aaa;
    line-height: 1.5;
}