* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.background-live-player-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.tcplayer-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}

/* TCPlayer 内部元素样式 */
.tcplayer {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
}

.tcplayer video {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    background: #000;
}

.tcplayer-container {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
}

/* 隐藏 TCPlayer 控制栏 */
.tcplayer .tcp-controls,
.tcplayer .tcplayer-controls,
.tcplayer .tcp-control-bar,
.tcplayer .tcp-ui,
.tcplayer .tcp-controls-container {
    display: none !important;
}

.tcplayer .tcp-poster {
    display: none !important;
}

.debug-panel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 400px;
    background: rgba(0, 0, 0, 0.95);
    border: 3px solid #00ff00;
    border-radius: 10px;
    z-index: 9999;
    font-size: 12px;
    color: #fff;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}

.debug-header {
    padding: 8px 12px;
    background: rgba(0, 255, 0, 0.2);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    border-bottom: 1px solid #00ff00;
    font-size: 13px;
}

.debug-toggle {
    font-size: 12px;
}

.debug-body {
    padding: 8px;
}

.debug-item {
    padding: 6px 8px;
    border-bottom: 1px solid rgba(0, 255, 0, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.debug-item-full {
    flex-direction: column;
    gap: 5px;
}

.debug-label {
    color: #00ff00;
    font-weight: bold;
    flex-shrink: 0;
}

.debug-value {
    color: #fff;
    text-align: right;
    word-break: break-all;
}

.debug-value-small {
    font-size: 9px;
    line-height: 1.4;
    color: #ccc;
}

.debug-value-error {
    color: #ff0000;
    font-weight: bold;
}

.debug-value-pre {
    font-family: 'Courier New', monospace;
    font-size: 10px;
    line-height: 1.4;
    white-space: pre-wrap;
    word-break: break-all;
    background: rgba(255, 0, 0, 0.1);
    padding: 8px;
    border-radius: 4px;
    margin-top: 5px;
    max-height: 200px;
    overflow-y: auto;
}

/* 播放按钮样式 */
.play-button-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    cursor: pointer;
}

.play-button {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease-in;
}

.play-button svg {
    margin-left: 4px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.play-button:active {
    transform: scale(0.95);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Loading 样式 */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10001;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-tip {
    margin-top: 20px;
    font-size: 16px;
    color: #fff;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* 错误提示样式 */
.error-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10002;
    padding: 20px;
    box-sizing: border-box;
}

.error-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 30px 20px;
    max-width: 90%;
    width: 400px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.3s ease-in;
}

.error-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.error-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.error-message {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
    white-space: pre-line;
    word-break: break-word;
}

.error-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.error-button {
    padding: 10px 24px;
    font-size: 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.error-button {
    background: #007AFF;
    color: white;
}

.error-button:hover {
    background: #0056CC;
    transform: translateY(-1px);
}

.error-button:active {
    transform: translateY(0);
}

.error-button-secondary {
    background: #E5E5EA;
    color: #333;
}

.error-button-secondary:hover {
    background: #D1D1D6;
}