/* Universal Artifact Player Styles */
.uap-container {
    margin: 20px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    background: white;
    font-family: system-ui, -apple-system, sans-serif;
}

.uap-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.uap-title {
    font-weight: 500;
    font-size: 14px;
}

.uap-controls {
    display: flex;
    gap: 8px;
}

.uap-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
}

.uap-btn:hover {
    background: rgba(255,255,255,0.3);
}

.uap-body {
    background: #fafafa;
    overflow: auto;
    position: relative;
}

.uap-render {
    width: 100%;
    height: 100%;
}

.uap-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    color: #666;
}

.uap-loading::before {
    content: "";
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border: 2px solid #e0e0e0;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.uap-error {
    padding: 20px;
    margin: 20px;
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 8px;
    color: #c00;
}

/* Dark theme */
.uap-container.dark-theme {
    background: #1a1a1a;
}

.uap-container.dark-theme .uap-body {
    background: #0a0a0a;
}

/* Fullscreen */
.uap-container:fullscreen {
    margin: 0;
    border-radius: 0;
    width: 100vw;
    height: 100vh;
}

.uap-container:fullscreen .uap-body {
    height: calc(100vh - 48px) !important;
}