body {
    margin: 0;
    overflow: hidden;
    background-color: #000;
    color: #fff;
    user-select: none;
    font-family: sans-serif;
}

#canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.panel-scroll {
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.6) rgba(255, 255, 255, 0.08);
}

.panel-scroll::-webkit-scrollbar {
    width: 8px;
}

.panel-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 9999px;
}

.panel-scroll::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.6);
    border-radius: 9999px;
}

.panel-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.85);
}

/* 动态高亮样式 */
.stage-active {
    background-color: rgba(59, 130, 246, 0.2) !important;
    /* bg-blue-500/20 */
    border-color: rgba(96, 165, 250, 0.6) !important;
    /* border-blue-400 */
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
    transform: scale(1.02);
    transition: all 0.3s ease;
}

.stage-active .stage-icon {
    color: #60a5fa !important;
    /* text-blue-400 */
    animation: pulse 2s infinite;
}

.stage-active .stage-text {
    color: white !important;
}

.stage-ongoing {
    background-color: rgba(245, 158, 11, 0.08) !important; /* amber */
    border-color: rgba(245, 158, 11, 0.35) !important;
}

.stage-ongoing .stage-icon {
    color: rgba(251, 191, 36, 1) !important;
}

.stage-badge {
    display: inline-flex;
    align-items: center;
    padding: 1px 6px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
    font-size: 9px;
    line-height: 1;
    white-space: nowrap;
}

.stage-badge--main {
    border-color: rgba(56, 189, 248, 0.35);
    background: rgba(56, 189, 248, 0.12);
    color: rgba(186, 230, 253, 1);
}

.stage-badge--ongoing {
    border-color: rgba(245, 158, 11, 0.35);
    background: rgba(245, 158, 11, 0.12);
    color: rgba(253, 230, 138, 1);
}

.stage-badge--local {
    border-color: rgba(16, 185, 129, 0.35);
    background: rgba(16, 185, 129, 0.12);
    color: rgba(167, 243, 208, 1);
}

.stage-badge--summary {
    border-color: rgba(148, 163, 184, 0.35);
    background: rgba(148, 163, 184, 0.12);
    color: rgba(226, 232, 240, 1);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.asset-item {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.03);
}

.asset-thumb {
    width: 100%;
    max-height: 120px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: zoom-in;
    background: rgba(0, 0, 0, 0.4);
}

.asset-label {
    font-size: 11px;
    color: #cbd5e1;
    margin-top: 6px;
    word-break: break-all;
}

.admin-attachment-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 4px 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.02);
}

.admin-attachment-row button {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(248, 113, 113, 0.4);
    color: #fecaca;
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 10px;
}

#media-preview-modal {
    display: none;
}

#media-preview-modal.modal-open {
    display: flex;
}

#media-preview-content img,
#media-preview-content video {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: #000;
}
